| /arkcompiler/ets_runtime/test/moduletest/regexp/ |
| D | expect_output.txt | 48 (s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s,(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s…
|
| /arkcompiler/runtime_core/static_core/plugins/ets/stdlib/std/core/ |
| D | StdExceptions.ets | 26 constructor(s: String) { 27 super(s); 30 constructor(s: String, cause: Object) { 31 super(s, cause); 44 constructor(s: String) { 45 super(s); 48 constructor(s: String, cause: Object) { 49 super(s, cause); 61 constructor(s: String) { 62 super(s); [all …]
|
| D | StdErrors.ets | 65 constructor(s: String) { 66 super(s); 69 constructor(s: String, cause: Object) { 70 super(s, cause); 82 constructor(s: String) { 83 super(s); 86 constructor(s: String, cause: Object) { 87 super(s, cause); 99 constructor(s: String) { 100 super(s); [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/stdlib/escompat/ |
| D | Errors.ets | 54 constructor(s: String) { 55 super(s); 59 constructor(s: String, cause: Object) { 60 super(s, cause); 74 constructor(s: String) { 75 super(s); 79 constructor(s: String, cause: Object) { 80 super(s, cause); 94 constructor(s: String) { 95 super(s); [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/checked/ |
| D | ets_isinteger.ets | 23 //! ASM_NEXT x64: /subss.*/, arm64: /ldr.*/, arm32: /mov\s+r[0-9]+,\s+… 25 //! ASM_NEXT x64: /mov\s+\$0x7FFFFFFF,.*/, arm64: /b\.vs.*/, arm32: /vcmp\.f32.*/ 26 //! ASM_NEXT x64: /movd.*/, arm64: /cset\s+w[0-9]+,\s+le/, arm32: /vmrs APSR_nzcv, F… 27 //! ASM_NEXT x64: /andps.*/, arm64: /b\s+.*/, arm32: /bvs.*/ 28 //! ASM_NEXT x64: /mov\s+\$0x34000000,.*/, arm64: /mov\s+w[0-9]+, #0x0/, arm32: /movle\s+r[0-9]+,\… 29 …SM_NEXT x64: /movd.*/, arm32: /movgt\s+r[0-9]+,\s+#0/ 31 //! ASM_NEXT x64: /jp.*/, arm32: /mov\s+r[0-9]+,\s+… 37 //! ASM_NEXT x64: /subss.*/, arm64: /ldr.*/, arm32: /mov\s+r[0-9]+,\s+… 39 //! ASM_NEXT x64: /mov\s+\$0x7FFFFFFF,.*/, arm64: /b\.vs.*/, arm32: /vcmp\.f32.*/ 42 //! ASM_NEXT x64: /mov\s+\$0x34000000,.*/, arm64: /ldr.*/, arm32: /bgt.*/ [all …]
|
| /arkcompiler/ets_frontend/ets2panda/linter-4.2/docs/rules/ |
| D | recipe38.md | 23 let o1 = {n: 42, s: "foo"} 24 let o2: Object = {n: 42, s: "foo"} 25 let o3: object = {n: 42, s: "foo"} 27 let oo: Object[] = [{n: 1, s: "1"}, {n: 2, s: "2"}] 30 s: string 31 constructor(s: string) { 32 this.s = "s =" + s 35 let o4: C2 = {s: "foo"} 39 readonly s: string = "" 41 let o5: C3 = {n: 42, s: "foo"} [all …]
|
| /arkcompiler/ets_frontend/ets2panda/linter/docs/rules/ |
| D | recipe38.md | 23 let o1 = {n: 42, s: "foo"} 24 let o2: Object = {n: 42, s: "foo"} 25 let o3: object = {n: 42, s: "foo"} 27 let oo: Object[] = [{n: 1, s: "1"}, {n: 2, s: "2"}] 30 s: string 31 constructor(s: string) { 32 this.s = "s =" + s 35 let o4: C2 = {s: "foo"} 39 readonly s: string = "" 41 let o5: C3 = {n: 42, s: "foo"} [all …]
|
| /arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/src/be/ |
| D | bbt.cpp | 57 for (StmtNode *s = head; s != nullptr; s = s->GetNext()) { in ValidateStmtList() local 58 if (s->GetNext() != nullptr) { in ValidateStmtList() 59 CHECK_FATAL(s->GetNext()->GetPrev() == s, "make sure the prev node of s' next is s"); in ValidateStmtList() 61 if (s->GetPrev() != nullptr) { in ValidateStmtList() 62 CHECK_FATAL(s->GetPrev()->GetNext() == s, "make sure the next node of s' prev is s"); in ValidateStmtList() 66 for (StmtNode *s = detached; s != nullptr; s = s->GetNext()) { in ValidateStmtList() local 67 if (s->GetNext() != nullptr) { in ValidateStmtList() 68 CHECK_FATAL(s->GetNext()->GetPrev() == s, "make sure the prev node of s' next is s"); in ValidateStmtList() 70 if (s->GetPrev() != nullptr) { in ValidateStmtList() 71 CHECK_FATAL(s->GetPrev()->GetNext() == s, "make sure the next node of s' prev is s"); in ValidateStmtList()
|
| /arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_ir/src/ |
| D | bin_func_import.cpp | 500 DassignNode *s = func->GetCodeMemPool()->New<DassignNode>(); in ImportBlockNode() local 501 s->SetStIdx(stIdx); in ImportBlockNode() 502 s->SetFieldID(num); in ImportBlockNode() 503 s->SetOpnd(ImportExpression(func), kFirstOpnd); in ImportBlockNode() 504 stmt = s; in ImportBlockNode() 506 DassignoffNode *s = func->GetCodeMemPool()->New<DassignoffNode>(); in ImportBlockNode() local 507 s->SetPrimType(primType); in ImportBlockNode() 508 s->stIdx = stIdx; in ImportBlockNode() 509 s->offset = num; in ImportBlockNode() 510 s->SetOpnd(ImportExpression(func), kFirstOpnd); in ImportBlockNode() [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_func_tests/std/containers/ |
| D | TrivialSetTest.ets | 17 const s = new Set<int>() 18 s.add(1) 19 s.add(2) 20 s.add(3) 21 s.add(1) 22 assert s.size() == 3 : "size" 23 assert s.has(1) : "has 1" 24 assert s.has(2) : "has 2" 25 assert s.has(3) : "has 3" 26 const it = s.values() [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/04.names_declarations_and_scopes/08.function_declarations/06.return_type/ |
| D | ret_type.params.yaml | 26 let s = "foo" 28 return s; 35 let s: int = 42 37 return s; 44 let s: number = 1.0 46 return s; 53 let s = new Error() 55 return s; 62 let s: number[] = [1.0, 2.0, 3.0] 64 return s; [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/06.contexts_and_conversions/02.kinds_of_conversion/04.casting_conversions/ |
| D | ref_narrowing2.params.yaml | 17 class S<V> {} 18 class T<V> extends S<V> { 21 stype: S<Int> 27 interface S<V> {} 28 interface T<V> extends S<V> { 32 stype: S<Long> 41 class S<V> {} 42 class Z<V> extends S<V> implements T<V> {} 43 stype: S<Exception> 52 class S<V> implements T<V> {} [all …]
|
| /arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/include/cg/aarch64/ |
| D | aarch64_fp_simd_regs.def | 26 FP_SIMD_REG(0 , "V", "B", "H", "S", "D", "Q", true, false, true, false, false) 27 FP_SIMD_REG(1 , "V", "B", "H", "S", "D", "Q", true, false, true, false, false) 28 FP_SIMD_REG(2 , "V", "B", "H", "S", "D", "Q", true, false, true, false, false) 29 FP_SIMD_REG(3 , "V", "B", "H", "S", "D", "Q", true, false, true, false, false) 30 FP_SIMD_REG(4 , "V", "B", "H", "S", "D", "Q", true, false, true, false, false) 31 FP_SIMD_REG(5 , "V", "B", "H", "S", "D", "Q", true, false, true, false, false) 32 FP_SIMD_REG(6 , "V", "B", "H", "S", "D", "Q", true, false, true, false, false) 33 FP_SIMD_REG(7 , "V", "B", "H", "S", "D", "Q", true, false, true, false, false) 34 FP_SIMD_REG(8 , "V", "B", "H", "S", "D", "Q", true, true, false, false, false) 35 FP_SIMD_REG(9 , "V", "B", "H", "S", "D", "Q", true, true, false, false, false) [all …]
|
| /arkcompiler/ets_frontend/ets2panda/linter-4.2/test/ |
| D | object_literals_2.ts | 16 let obj = {n: 42, s: 'foo'} // OK in TypeScript, CTE in ArkTS: unknown type of obj. 20 s: string = ""; property in C 23 let c1: C = {n: 42, s: 'foo'} // Declaration + initialization: type of the literla is inferred from… 26 c2 = {n: 42, s: 'foo'}; // Initialization after declaration: type of the literal is inferred from t… 28 let c3: Object = {n: 42, s: 'foo'} as C as Object; // Type of the literal is inferred from the 'as'… 35 foo({n: 42, s: 'foo'}); // Parsing as an argument: type of the literal is inferred from the type of… 38 …return {n: 42, s: 'foo'}; // Returning from function: type of the literal is inferred from the bar… 41 let cc: C[] = [{n: 1, s: '1'}, {n: 2, s: '2'}]; // Type of the literal is inferred from the type of… 45 c: C = {n: 0, s: ""}; 52 s: 'foo' [all …]
|
| /arkcompiler/ets_frontend/ets2panda/linter/test/ |
| D | object_literals_2.ts | 16 let obj = {n: 42, s: 'foo'} // OK in TypeScript, CTE in ArkTS: unknown type of obj. 20 s: string = ""; property in C 23 let c1: C = {n: 42, s: 'foo'} // Declaration + initialization: type of the literla is inferred from… 26 c2 = {n: 42, s: 'foo'}; // Initialization after declaration: type of the literal is inferred from t… 28 let c3: Object = {n: 42, s: 'foo'} as C as Object; // Type of the literal is inferred from the 'as'… 35 foo({n: 42, s: 'foo'}); // Parsing as an argument: type of the literal is inferred from the type of… 38 …return {n: 42, s: 'foo'}; // Returning from function: type of the literal is inferred from the bar… 41 let cc: C[] = [{n: 1, s: '1'}, {n: 2, s: '2'}]; // Type of the literal is inferred from the type of… 45 c: C = {n: 0, s: ""}; 52 s: 'foo' [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/07.expressions/15.cast_expressions/ |
| D | cast.params.yaml | 16 let s = 42 18 let t = s as number // primitive widening 22 let s = 42 24 let t = s as Number // primitive widening and boxing 28 let s = Float.MAX_VALUE 30 let t = s as Float // boxing 34 let s = new Float(3.5 as float) 36 let t = s as float // unboxing 40 let s = "string" 42 let t = s as Object // reference widening [all …]
|
| /arkcompiler/ets_frontend/ets2panda/linter/test_rules/ |
| D | rule38.ts | 18 s: string = "" property in C1 21 let o1: C1 = {n: 42, s: "foo"} 22 let o2: C1 = {n: 42, s: "foo"} 23 let o3: C1 = {n: 42, s: "foo"} 25 let oo: C1[] = [{n: 1, s: "1"}, {n: 2, s: "2"}] 28 s: string property in C2 29 constructor(s: string) { 30 this.s = "s =" + s 37 s: string = "" property in C3 39 let o5: C3 = {n: 42, s: "foo"} [all …]
|
| /arkcompiler/ets_frontend/ets2panda/linter-4.2/test_rules/ |
| D | rule38.ts | 18 s: string = "" property in C1 21 let o1: C1 = {n: 42, s: "foo"} 22 let o2: C1 = {n: 42, s: "foo"} 23 let o3: C1 = {n: 42, s: "foo"} 25 let oo: C1[] = [{n: 1, s: "1"}, {n: 2, s: "2"}] 28 s: string property in C2 29 constructor(s: string) { 30 this.s = "s =" + s 37 s: string = "" property in C3 39 let o5: C3 = {n: 42, s: "foo"} [all …]
|
| /arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/include/cg/x86_64/ |
| D | x64_fp_simd_regs.def | 26 FP_SIMD_REG(0 , "B", "H", "S", "D", "Q", true, false, true, false, false) 27 FP_SIMD_REG(1 , "B", "H", "S", "D", "Q", true, false, true, false, false) 28 FP_SIMD_REG(2 , "B", "H", "S", "D", "Q", true, false, true, false, false) 29 FP_SIMD_REG(3 , "B", "H", "S", "D", "Q", true, false, true, false, false) 30 FP_SIMD_REG(4 , "B", "H", "S", "D", "Q", true, false, true, false, false) 31 FP_SIMD_REG(5 , "B", "H", "S", "D", "Q", true, false, true, false, false) 32 FP_SIMD_REG(6 , "B", "H", "S", "D", "Q", true, false, true, false, false) 33 FP_SIMD_REG(7 , "B", "H", "S", "D", "Q", true, false, true, false, false) 34 FP_SIMD_REG(8 , "B", "H", "S", "D", "Q", true, false, false, true, false) 35 FP_SIMD_REG(9 , "B", "H", "S", "D", "Q", true, false, false, true, false) [all …]
|
| /arkcompiler/runtime_core/static_core/assembler/tests/ |
| D | lexer_test.cpp | 29 std::string s = "mov v1, v2"; in TEST() local 30 Tokens tok = l.TokenizeString(s); in TEST() 41 std::string s = "ldai 1"; in TEST() local 42 Tokens tok = l.TokenizeString(s); in TEST() 51 std::string s = "movi\nlda v2 v10 mov v2"; in TEST() local 52 Tokens tok = l.TokenizeString(s); in TEST() 65 …std::string s = "jmp Iasdfsadkfjhasifhsaiuhdacoisjdaociewhasdasdfkjasdfhjksadhfkhsakdfjhksajhdkfjh… in TEST() local 66 Tokens tok = l.TokenizeString(s); in TEST() 75 std::string s = "call.short 1111, 1"; in TEST() local 76 Tokens tok = l.TokenizeString(s); in TEST() [all …]
|
| /arkcompiler/runtime_core/assembler/tests/ |
| D | lexer_test.cpp | 28 std::string s = "mov v1, v2"; in TEST() local 29 Tokens tok = l.TokenizeString(s); in TEST() 40 std::string s = "ldai 1"; in TEST() local 41 Tokens tok = l.TokenizeString(s); in TEST() 50 std::string s = "movi\nlda v2 v10 mov v2"; in TEST() local 51 Tokens tok = l.TokenizeString(s); in TEST() 64 …std::string s = "jmp Iasdfsadkfjhasifhsaiuhdacoisjdaociewhasdasdfkjasdfhjksadhfkhsakdfjhksajhdkfjh… in TEST() local 65 Tokens tok = l.TokenizeString(s); in TEST() 74 std::string s = "call.short 1111, 1"; in TEST() local 75 Tokens tok = l.TokenizeString(s); in TEST() [all …]
|
| /arkcompiler/runtime_core/static_core/compiler/docs/ |
| D | escape_analysis.md | 4 **Escape Analysis** pass performs optimizations using information about object's scope. Currently t… 14 … instruction can lead to object's materialization. If the object requires materialization then the… 26 …uld be merged by inserting a phi into the current block and replacing field's value with that phi.… 28 …s header could not be evaluated using procedure described above as initially there will be no stat… 33 …al method to an in instruction that should replace all original instruction's uses after scalar re… 37 …ate described above to remove virtual objects allocations and insert object's materialization wher… 63 materialized phi's input in correponding predecessor 66 for each ref-typed instruction inst from block's live ins: 67 if inst has virtual state in at least one block's predecessor: 68 materialize inst in block's dominator [all …]
|
| /arkcompiler/ets_frontend/ets2panda/linter-4.2/cookbook_convertor/src/ |
| D | cookbook_convertor.ts | 135 function replaceAll( s: string, from: string, to: string): string { 136 let ss = s.split(from); 143 function translateLine( s: string ) : string { 144 let line = s; 160 function translateTeg( s: string) :string { 161 return replaceAll( s, "\`\`", '"' ).trim(); 165 function makeHdr( s: string) :string { 166 return replaceAll( s, "\`\`", "\'" ); 170 function highlightCode( s: string ): string { 171 let ss = s.split("\`\`"); [all …]
|
| /arkcompiler/runtime_core/static_core/verification/util/ |
| D | set_operations.h | 37 using S = PackElementT<0, Args...>; in SetIntersection() local 38 using EltType = typename S::key_type; in SetIntersection() 39 using IterType = typename S::const_iterator; in SetIntersection() 62 S result; in SetIntersection() 74 using S = PackElementT<0, Args...>; in SetUnion() local 75 auto un = [](const S &lhs, const S &rhs) -> S { in SetUnion() 76 S result = lhs; in SetUnion() 83 template <typename S> 84 S SetDifference(const S &lhs, const S &rhs) in SetDifference() 86 S intersection = SetIntersection(lhs, rhs); in SetDifference() [all …]
|
| /arkcompiler/runtime_core/static_core/scripts/code_style/ |
| D | doxygen_style_check.py | 46 def is_doxygen_comment(s: str) -> bool: 51 if comm.search(s): 71 err_msg = "%s:%s" % (src_path, line_num) 73 print("Please, use '@' instead of '\\' before '%s':\n%s\n" % (keyword, line)) 90 err_msg = "%s:%s" % (src_path, line_num) 92 print("Found doxygen comment with a wrong Javadoc style:\n%s\n" % strings[i]) 96 err_msg = "%s:%s" % (src_path, line_num) 97 print("%s\n%s\n" % (err_msg, strings[i])) 116 str_indexes = [s.start() for s in re.finditer(re.escape(strings[i]), text)] 121 err_msg = "%s:%s" % (src_path, line_num) [all …]
|