Home
last modified time | relevance | path

Searched refs:num (Results 1 – 25 of 331) sorted by relevance

12345678910>>...14

/arkcompiler/ets_runtime/test/aottest/ts_inline_deopt_loop/
Dts_inline_deopt_loop.ts24 let num = resources[index % resources.length];
25 if (num % 2 == 0) {
26 num += 2
28 num += 1
30 num = num / 2;
32 num += resources[i] * i;
33 if (num % 2 == 0) {
34 num += 2
36 num += 1
38 num = num / 2;
[all …]
/arkcompiler/ets_runtime/test/aottest/ts_multi_inline_deopt/
Dts_multi_inline_deopt.ts24 let num = resources[index % resources.length];
25 if (num % 2 == 0) {
26 num += 2
28 num += 1
30 num = num / 2;
32 num += resources[i] * i;
33 if (num % 2 == 0) {
34 num += 2
36 num += 1
38 num = num / 2;
[all …]
/arkcompiler/ets_frontend/ets2panda/test/runtime/ets/
Dtrailing-lambda-with-capture.ets23 let num = 2
28 assert num == 2: "expected: " + 2 + " actual: " + num;
30 num++
32 assert num == 3: "expected: " + 3 + " actual: " + num;
36 num++ // This capture will cause crash issue(#I80K99)
41 num++;
42 assert num == 4: "expected: " + 4 + " actual: " + num;
47 num++;
51 assert num == 6: "expected: " + 6 + " actual: " + num;
54 if (num < 7) {
[all …]
Dstatic-invoke.ets16 const num: int = 1;
21 return num;
38 return num;
43 assert A() == num : "expected: " + num + " actual: " + A();
44 assert B() == num : "expected: " + num + " actual: " + B();
47 assert d == num : "expected: " + num + " actual: " + d;
65 static instantiate<T extends Y>(factory: ()=>T, num: int): T {
66 num++;
Dtrailing-lambda.ets68 function f_overload(num: Int, callback: ()=>void): Int {
72 function f_overload(num: Int): Int {
73 return num;
77 let num = f_overload(1)
81 assert num == 0: "expected: " + 0 + " actual: " + num;
135 let num: int = 3;
136 assert num == 3: "expected: " + 3 + " actual: " + num;
138 num++;
139 assert num == 4: "expected: " + 4 + " actual: " + num;
141 num++;
[all …]
/arkcompiler/ets_frontend/ets2panda/test/compiler/ets/
Dunion_types_1.ets17 num: int = 41;
21 num: int = 42;
25 num: int = 43;
26 constructor(num: int) {
27 this.num = num;
30 return this.num;
37 assert xx.num_to_return() == 777: "Error! The num field of class `C` must be 777";
42 assert x.num == 777: "Error! The num field of union must be 777";
43 let a: int = x.num + 3;
45 x.num += 223;
[all …]
Dunion_types_2.ets19 num: int = 42;
23 num: int = 43;
24 constructor(num: int) {
25 this.num = num;
28 return this.num;
33 x.num; // CTE - `A` doesn't have field `num`
Dunion_types_5.ets20 num: int = 42
23 num: int = 43
28 assert x.num == 42: "Error! num field must be 42";
30 assert x.num == 43: "Error! num field must be 43";
38 assert x.union0.num == 42: "Error! x.union0.num field must be 42";
40 assert x.union0.num == 43: "Error! x.union0.num field must be 43";
/arkcompiler/ets_frontend/es2panda/test/compiler/ts/cases/compiler/
Dtest-ts-generic-tag-template-string-escape-error.ts20 const num = 2021; constant
21 const result = fn<number | string>`${str}${num} \ubuntu`;
22 const result1 = fn<number | string>`${str}${num} \123`;
23 const result2 = fn<number | string>`${str}${num} \0123`;
24 const result3 = fn<number | string>`${str}${num} \u{11ffff}`;
25 const result31 = fn<number | string>`${str}${num} \u{10ff}`;
26 const result4 = fn<number | string>`${str}${num} \u{12dd`;
27 const result41 = fn<number | string>`${str}${num} \u12dd`;
28 const result5 = fn<number | string>`${str}${num} \xgg`;
29 const result6 = fn<number | string>`${str}${num} \xaa`;
Dtest-ts-static-blocks-in-class2.ts24 static num: number = 0; property in PrivateFoo
26 return PrivateFoo.num;
29 return PrivateFoo.num;
33 PrivateFoo.num += addResult();
Dtest-ts-static-blocks-in-class5.ts24 static num: number = 0; variable
26 return PrivateFoo.num;
29 return PrivateFoo.num;
33 PrivateFoo.num += addResult();
/arkcompiler/ets_frontend/ts2panda/src/
DcompilerStatistics.ts30 private relatedInsns: { name: string, num: number }[] = [];
33 constructor(instSize: number, relatedInsns?: { name: string, num: number }) {
40 add(num: number): void {
41 this.count += num;
42 this.relatedInsns.forEach(relatedInsn => { relatedInsn.num += num });
45 set(num: number): void {
46 this.count = num;
47 this.relatedInsns.forEach(relatedInsn => { relatedInsn.num = num });
62 getRelatedInsns(): { name: string, num: number }[] {
97 savedSize += (relatedInsn.num) * item.getInstSize();
[all …]
DregAllocator.ts45 let num = this.getFreeVreg();
46 vreg.num = num;
69 let num = 0;
72 if ((<VReg>operands[j]).num >= (1 << format[j][1])) {
73 num++;
77 return num;
87 if (vOrigin.num >= (1 << format[j][1])) {
122 if ((<VReg>operands[rangeRegOffset]).num >= level) {
128 let startNum = (<VReg>operands[rangeRegOffset]).num;
131 if ((startNum + 1) != (<VReg>operands[i]).num) {
[all …]
/arkcompiler/runtime_core/compiler/tests/js/
DregallocTest.js17 function func(num) { argument
18 if (num > 0) {
19 num = 0;
21 num += 1;
23 return num;
27 const num = 1;
30 num1 += num;
/arkcompiler/ets_runtime/test/aottest/ldobjbyname/
Dldobjbyname.ts20 num : number,
23 num : 1,
27 print(obj.num);
30 obj.num = 10;
33 print(obj.num);
/arkcompiler/runtime_core/static_core/verification/absint/
Dreg_context.h161 EnumerateAllRegs([&](int num, const auto &av) { in InconsistentRegsNums()
163 result.push_back(num); in InconsistentRegsNums()
169 bool IsRegDefined(int num) const in IsRegDefined() argument
171 return regs_.InValidRange(num) && !regs_[num].IsNone(); in IsRegDefined()
173 bool IsValid(int num) const in IsValid() argument
175 return regs_.InValidRange(num); in IsValid()
177 bool WasConflictOnReg(int num) const in WasConflictOnReg() argument
179 return conflictingRegs_.count(num) > 0; in WasConflictOnReg()
188 EnumerateAllRegs([this](int num, auto &atv) { in RemoveInconsistentRegs()
190 conflictingRegs_.insert(num); in RemoveInconsistentRegs()
[all …]
/arkcompiler/ets_frontend/ets2panda/lexer/token/
Dnumber.h61 explicit Number(util::StringView str, double num) noexcept : str_(str), num_(num) {} in Number() argument
62 explicit Number(uint32_t num) noexcept : Number(static_cast<int32_t>(num)) {} in Number() argument
63 explicit Number(int32_t num) noexcept : num_(num) {} in Number() argument
64 explicit Number(uint64_t num) noexcept : Number(static_cast<int64_t>(num)) {} in Number() argument
65 explicit Number(int64_t num) noexcept : num_(num) {} in Number() argument
66 explicit Number(float num) noexcept : num_(num) {} in Number() argument
67 explicit Number(double num) noexcept : num_(num) {} in Number() argument
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_util/include/
Dmpl_logging.h148 void EmitLogForUser(enum LogNumberCode num, enum LogLevel ll, const char *fmt, ...) const;
149 void EmitLogForUser(enum LogNumberCode num, enum LogLevel ll, const std::string &message) const;
248 #define INFO(num, fmt, ...) \ argument
251 logInfo.EmitLogForUser(num, kLlInfo, fmt, ##__VA_ARGS__); \
255 #define INFO_V(verbose, num, fmt, ...) \ argument
258 logInfo.EmitLogForUser(num, kLlInfo, fmt, ##__VA_ARGS__); \
262 #define WARN(num, fmt, ...) \ argument
265 logInfo.EmitLogForUser(num, kLlWarn, fmt, ##__VA_ARGS__); \
269 #define ERR(num, fmt, ...) \ argument
272 logInfo.EmitLogForUser(num, kLlErr, fmt, ##__VA_ARGS__); \
[all …]
/arkcompiler/ets_frontend/es2panda/ir/expressions/literals/
DnumberLiteral.h35 explicit NumberLiteral(double num) : Literal(AstNodeType::NUMBER_LITERAL), number_(num) {} in NumberLiteral() argument
36 explicit NumberLiteral(double num, util::StringView str) in NumberLiteral() argument
37 : Literal(AstNodeType::NUMBER_LITERAL), number_(num), str_(str) in NumberLiteral()
77 explicit UserTypeIndexLiteral(double num, util::StringView str) : NumberLiteral(num, str) {} in UserTypeIndexLiteral() argument
87 explicit BuiltinTypeIndexLiteral(double num) : NumberLiteral(num) {} in BuiltinTypeIndexLiteral() argument
/arkcompiler/ets_runtime/test/aottest/typedarray_load_store/
Dtypedarray_load_store.ts45 let num: number = 1;
48 num += integerIndexes[i % num & length];
49 res[i % resLength] += resources[i % num & length];
91 let num: number = 1;
94 num += integerIndexes[i % num & length];
95 res[i % resLength] += resources[i % num & length];
/arkcompiler/ets_runtime/test/aottest/ts_multi_inline_recursive/
Dts_multi_inline_recursive.ts23 function bar(num: number) {
24 if (num == 0) {
28 num--;
29 bar(num);
/arkcompiler/runtime_core/static_core/compiler/optimizer/
Dpass_manager_statistics.h40 auto AddInlinedMethods(size_t num) in AddInlinedMethods() argument
42 inlinedMethods_ += num; in AddInlinedMethods()
49 auto AddPbcInstNum(uint64_t num) in AddPbcInstNum() argument
51 pbcInstNum_ += num; in AddPbcInstNum()
53 auto SetPbcInstNum(uint64_t num) in SetPbcInstNum() argument
55 pbcInstNum_ = num; in SetPbcInstNum()
/arkcompiler/runtime_core/compiler/optimizer/
Dpass_manager_statistics.h40 auto AddInlinedMethods(size_t num) in AddInlinedMethods() argument
42 inlined_methods_ += num; in AddInlinedMethods()
49 auto AddPbcInstNum(uint64_t num) in AddPbcInstNum() argument
51 pbc_inst_num_ += num; in AddPbcInstNum()
53 auto SetPbcInstNum(uint64_t num) in SetPbcInstNum() argument
55 pbc_inst_num_ = num; in SetPbcInstNum()
/arkcompiler/runtime_core/static_core/models/thread_pool/
Dthread_pool.tla167 procedure scale(num)
171 assert num \in 0..max_workers;
173 if num > num_workers then goto scale_add_workers;
174 elsif num < num_workers then goto scale_del_workers;
178 while num_workers < num do
188 while num_workers > num do
371 VARIABLES worker_num_, worker_num, num, n, task
375 worker_num, num, n, task >>
393 /\ num = [ self \in ProcSet |-> defaultInitValue]
410 worker_num_, worker_num, num,
[all …]
/arkcompiler/ets_runtime/test/typeinfer/assertTypeRules/
DassertTypeRules.ts40 function add(num : number, str : string) : string {
41 return num + str;
51 let num = 1;
52 AssertType(num, "int");

12345678910>>...14