| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/07.expressions/04.array_literal/ |
| D | arr_expr.params.yaml | 18 function foo(cnt: int): int { 19 return 100 * cnt; 22 let cnt: int = 0 23 …let a: int[] = [foo(++cnt) + cnt++, ++cnt + foo(--cnt), cnt++ - foo(cnt--), foo(++cnt) + ++cnt, 2 … 29 function foo(cnt: int): int[] { 30 let res: int[] = new int[cnt] 37 let cnt: int = 0 38 let a: int[][] = [foo(cnt++), foo(cnt++), foo(cnt++), foo(cnt++), foo(cnt++)]
|
| D | arr_abrupt.params.yaml | 18 function foo(cnt: int): int { 19 return arr[cnt] 22 let cnt: int = 0 25 a = [foo(cnt++), foo(cnt++), foo(cnt++), foo(cnt++), foo(cnt++)]
|
| /arkcompiler/runtime_core/static_core/tests/cts-generator/runner/ |
| D | result.rb | 19 @@stats = { passed: { cnt: 0, files: [] }, 20 failed: { cnt: 0, files: [] }, 21 core: { cnt: 0, files: [] }, 22 compilation_error: { cnt: 0, files: [] }, 23 quickening_error: { cnt: 0, files: [] }, 24 excluded: { cnt: 0, files: [] } } 31 @@stats[:compilation_error][:cnt] += 1 39 @@stats[:quickening_error][:cnt] += 1 47 @@stats[:compilation_error][:cnt] += 1 55 @@stats[:passed][:cnt] += 1 [all …]
|
| /arkcompiler/runtime_core/tests/cts-generator/runner/ |
| D | result.rb | 19 @@stats = { passed: { cnt: 0, files: [] }, 20 failed: { cnt: 0, files: [] }, 21 core: { cnt: 0, files: [] }, 22 compilation_error: { cnt: 0, files: [] }, 23 quickening_error: { cnt: 0, files: [] }, 24 excluded: { cnt: 0, files: [] }} 31 @@stats[:compilation_error][:cnt] += 1 39 @@stats[:quickening_error][:cnt] += 1 47 @@stats[:compilation_error][:cnt] += 1 55 @@stats[:passed][:cnt] += 1 [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/checked/ |
| D | escape_deoptimization.sts | 22 function foo(obj: A, cnt: int): int { 24 return arr[cnt] 60 let cnt: int = 0 65 a = [foo(obj, cnt++), foo(obj, cnt++), foo(obj, cnt++), foo(obj, cnt++), foo(obj, cnt++)];
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/07.expressions/04.array_literal/02.type_inference_from-types_of_elements/ |
| D | arr_inf2.params.yaml | 43 let cnt: number = 0 46 return cnt++ 49 return ++cnt 52 return cnt-- 59 let cnt: number = 0 62 return cnt++ 65 return ++cnt 68 return cnt--
|
| /arkcompiler/ets_runtime/ecmascript/compiler/aot_file/ |
| D | elf_checker.cpp | 350 for (size_t cnt = 0; cnt < scnCnt; ++cnt) { in GetElfItem() local 351 elfItemField.sections.data()[cnt].index = cnt; in GetElfItem() 352 elfItemField.sections.data()[cnt].elf = elf; in GetElfItem() 354 elfItemField.sections.data()[cnt].shdr.e32 = in GetElfItem() 355 reinterpret_cast<llvm::ELF::Elf32_Shdr*>(&elfItemField.shdr[cnt]); in GetElfItem() 357 elfItemField.sections.data()[cnt].shdr.e64 = in GetElfItem() 358 reinterpret_cast<llvm::ELF::Elf64_Shdr*>(&elfItemField.shdr[cnt]); in GetElfItem() 361 if (SECUREC_LIKELY(elfItemField.shdr[cnt].sh_offset < maxSize) && in GetElfItem() 362 … SECUREC_LIKELY(elfItemField.shdr[cnt].sh_size <= maxSize - elfItemField.shdr[cnt].sh_offset)) { in GetElfItem() 363 … elfItemField.sections.data()[cnt].rawDataBase = elfItemField.sections.data()[cnt].dataBase = in GetElfItem() [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/17.experimental_features/06.statements/02.multiple_catch_clauses_in_try_statements/ |
| D | exec.params.yaml | 19 function foo(e: Ex, cnt: int): Ex throws { 20 if (cnt > 0) throw foo(e, --cnt); 36 function foo(e: Ex, cnt: int): Ex { 37 if (cnt > 0) throw foo(e, --cnt);
|
| /arkcompiler/runtime_core/tests/cts-coverage-tool/lib/ |
| D | spec.rb | 228 cnt = 0 230 cnt += proc_test_instruction(ti, spec_group, file) 232 cnt 250 cnt = 0 252 cnt += proc_test_description(tda, spec_group, file) 254 cnt 273 cnt = 0 275 cnt += proc_test_exception(te, spec_group, file) 277 cnt 296 cnt = 0 [all …]
|
| /arkcompiler/runtime_core/static_core/tests/cts-coverage-tool/lib/ |
| D | spec.rb | 228 cnt = 0 230 cnt += proc_test_instruction(ti, spec_group, file) 232 cnt 250 cnt = 0 252 cnt += proc_test_description(tda, spec_group, file) 254 cnt 273 cnt = 0 275 cnt += proc_test_exception(te, spec_group, file) 277 cnt 296 cnt = 0 [all …]
|
| /arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_me/include/ |
| D | bb.h | 382 const BB *GetPred(size_t cnt) const in GetPred() argument 384 DEBUG_ASSERT(cnt < pred.size(), "out of range in BB::GetPred"); in GetPred() 385 return pred.at(cnt); in GetPred() 388 BB *GetPred(size_t cnt) in GetPred() argument 390 DEBUG_ASSERT(cnt < pred.size(), "out of range in BB::GetPred"); in GetPred() 391 return pred.at(cnt); in GetPred() 394 void SetPred(size_t cnt, BB *pp) in SetPred() argument 396 CHECK_FATAL(cnt < pred.size(), "out of range in BB::SetPred"); in SetPred() 397 pred[cnt] = pp; in SetPred() 441 const BB *GetSucc(size_t cnt) const in GetSucc() argument [all …]
|
| /arkcompiler/ets_runtime/test/aottest/useless_gate_elimination/ |
| D | useless_gate_elimination.js | 18 let cnt = 0; variable 21 cnt = cnt + i + j;
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/08.statements/15.try_statements/03.try_statement_execution/ |
| D | exec.params.yaml | 20 function foo(e: Er, cnt: int): Er { 21 if (cnt > 0) throw foo(e, --cnt);
|
| /arkcompiler/ets_frontend/ets2panda/lexer/token/ |
| D | sourceLocation.cpp | 36 range.cnt++; in AddCol() 91 if (diff < range.cnt) { in GetLocation() 96 diff -= range.cnt * range.byteSize; in GetLocation() 97 col += range.cnt; in GetLocation()
|
| /arkcompiler/ets_frontend/es2panda/lexer/token/ |
| D | sourceLocation.cpp | 37 range.cnt++; in AddCol() 91 if (diff < (range.cnt * range.byteSize)) { in GetLocation() 96 diff -= range.cnt * range.byteSize; in GetLocation() 97 col += range.cnt; in GetLocation()
|
| /arkcompiler/ets_runtime/test/aottest/func_profile_type_info/ |
| D | func_profile_type_info.ts | 19 let cnt: number = 10; 26 for (let i: number = 0; i < cnt; ++i) { 58 let cnt: number = 100; 60 for (let i: number = 0; i < cnt; ++i) {
|
| /arkcompiler/ets_frontend/ets2panda/test/parser/ets/ |
| D | promiseCasting.sts | 42 let cnt = 0 44 cnt += (await ps[i] as Promise<(p: int) => int>)(i) // <- complains on this line 46 assert cnt == 90
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/17.experimental_features/16.coroutines/01.create_and_launch_coroutine/ |
| D | c.params.yaml | 185 let cnt = 0 186 for (let v of arr) cnt += (await v) 187 assert cnt == 90 215 let cnt = 0 217 cnt += (await ps[i] as Promise<(p: int) => int>)(i) 219 assert cnt == 90 245 let cnt = 0 247 cnt += (await ps[i] as Promise<int>) 249 assert cnt == 90
|
| /arkcompiler/runtime_core/static_core/runtime/tests/ |
| D | g1gc_fullgc_test.cpp | 215 int cnt = every; in MakeObjectsAlive() local 217 cnt--; in MakeObjectsAlive() 218 if (cnt != 0) { in MakeObjectsAlive() 224 cnt = every; in MakeObjectsAlive() 230 int cnt = every; in MakeObjectsGarbage() local 232 cnt--; in MakeObjectsGarbage() 233 if (cnt != 0) { in MakeObjectsGarbage() 238 cnt = every; in MakeObjectsGarbage() 246 int cnt = every; in MakeObjectsPermAlive() local 248 cnt--; in MakeObjectsPermAlive() [all …]
|
| D | mem_stats_gen_gc_test.cpp | 435 int cnt = every; in MakeObjectsAlive() local 437 cnt--; in MakeObjectsAlive() 438 if (cnt != 0) { in MakeObjectsAlive() 444 cnt = every; in MakeObjectsAlive() 450 int cnt = every; in MakeObjectsGarbage() local 452 cnt--; in MakeObjectsGarbage() 453 if (cnt != 0) { in MakeObjectsGarbage() 457 cnt = every; in MakeObjectsGarbage() 465 int cnt = every; in MakeObjectsPermAlive() local 467 cnt--; in MakeObjectsPermAlive() [all …]
|
| /arkcompiler/runtime_core/static_core/libpandafile/tests/ |
| D | debug_info_extractor_test.cpp | 403 auto &cnt = extractor.GetColumnNumberTable(methodId); in TEST_F() local 405 ASSERT(!cnt.empty()); in TEST_F() 406 if (cnt[0].column == 5U || cnt[0].column == 6U) { in TEST_F() 407 ASSERT(cnt.size() == 1); in TEST_F() 409 ASSERT(cnt[0].column == 7U); in TEST_F() 410 ASSERT(cnt.size() == 5U); in TEST_F() 413 for (auto const &col : cnt) { in TEST_F()
|
| /arkcompiler/ets_runtime/ecmascript/mem/ |
| D | machine_code.cpp | 92 uint32_t cnt = desc.funcEntryDesSize / sizeof(FuncEntryDes); in SetNonText() local 93 ASSERT(cnt <= 2); // 2: jsfunction + deoptimize stub in SetNonText() 94 for (uint32_t i = 0; i < cnt; i++) { in SetNonText() 137 uint32_t cnt = desc.funcEntryDesSize / sizeof(FuncEntryDes); in SetData() local 144 … ", funcEntry addr:" << reinterpret_cast<void*>(GetFuncEntryDesAddress()) << ", count:" << cnt; in SetData()
|
| /arkcompiler/ets_runtime/ecmascript/extractortool/src/ |
| D | source_map.cpp | 231 uint32_t cnt = 0; in ExtractKeyInfo() local 240 // cnt is used to represent a pair of double quotation marks: "" in ExtractKeyInfo() 242 cnt++; in ExtractKeyInfo() 244 if (cnt == INDEX_TWO) { in ExtractKeyInfo() 247 cnt = 0; in ExtractKeyInfo() 248 } else if (cnt == 1) { in ExtractKeyInfo()
|
| /arkcompiler/runtime_core/static_core/plugins/ets/stdlib/escompat/ |
| D | BigInt.sts | 428 let cnt: long = BigInt.getCnt(from, to); 433 let res1 = divident - ((new BigInt(cnt)) * divisor); 437 return [cnt as Int, res1]; 439 res2 = divident - ((new BigInt(cnt-(1 as long)))*divisor); 443 cnt--; 445 return [cnt as Int, res2]; 449 cnt--; 453 from = cnt; 454 cnt = BigInt.getCnt(from, to); 458 to = cnt; [all …]
|
| /arkcompiler/ets_frontend/ets2panda/test/unit/public/ |
| D | ast_verifier_variable_has_scope_test.cpp | 140 let cnt = 0 in TEST_F() 141 cnt += (await ps as Promise<(p: int) => int>)(0) in TEST_F()
|