| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/05.generics/02.generic_instantiations/02.type_arguments/type_arguments_of_parameterized_declarations/ |
| D | interface_args_neg.params.yaml | 18 let v: J<X> = new A<X>(new Y()) // Y is not X 21 let v: J<X> = new A<X|null>(null) // assignment to subclass 24 let v: J<J<X>> = new A<J<X>>(new A<Y>(new Y())) // A<Y> is not J<X> 28 let v: J<I> = new A<I>(new Y()) // Y doesn't implement I 32 let v: J<J<I>> = new A<J<I>>(new A<Y>(new Y())) // J<Y> is not J<I> 37 let v: J<X[]> = new A<X[]>(new Y[0]) // Y[] is not X[] 41 let v: J<J<X>[]> = new A<J<X>[]>(new J<Y>[0]) // J<Y>[] is not J<X>[] 44 let v: J<J<X[]>[]> = new A<J<X[]>[]>(new J<Y[]>[0]) // X[] is not Y[] 47 let v: J<I[]> = new A<I[]>(new J[0]) // J is not I 50 let v: J<J<I>[]> = new A<J<I>[]>(new J<Y>[0]) // Y doesn't implement I [all …]
|
| D | interface_args.params.yaml | 18 let v: J<X> = new A<X>(new X()) 21 let v: J<X> = new A<X>(new X()) 25 let v: J<X> = new A<X>(new X()) 29 let v: J<X|null> = new A<X|null>(new X()) 33 let v: J<X|null> = new A<X|null>(null) 37 let v: J<X|null> = new A<X|null>(null) 40 let v: J<J<X>> = new A<J<X>>(new A<X>(new X())) 44 let v: J<I> = new A<I>(new X()) 47 let v: J<I|null> = new A<I|null>(new X()) 51 let v: J<J<I>> = new A<J<I>>(new A<I>(new X())) [all …]
|
| /arkcompiler/ets_frontend/ets2panda/test/parser/ets/ |
| D | binary_op.sts | 18 let j = 2; 37 let i01 = i & j; 38 let i02 = i ^ j; 39 let i03 = i | j; 40 let i04 = i & j ^ i & j | i ^ j; 43 let b07 = i != j; 44 let b08 = i == j; 49 let b12 = i < j; 50 let b13 = i > j; 51 let b14 = i <= j; [all …]
|
| /arkcompiler/ets_runtime/test/aottest/frame_states/ |
| D | frame_states.ts | 19 let j: number = 0; 21 while (i < 1 && j < 1) { 23 j = 0; 24 while (i < n && j < n) { 26 perm1[j] = 0; 28 j = j + 1; 34 while (j < n) { 35 perm1[j] = 0; 36 j = j + 1; 38 while (i < n && j < n) { [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/08.statements/05.if_statements/ |
| D | if_neg.params.yaml | 18 if (i == j) 19 if (i + j > 0) 20 else i = j 26 if (i == j) 27 if (i + j > 0) i = j 34 if i > j return 1; 38 if (i != j return 1; 42 if i != j) return 1; 46 if (i > j) ;; else ;; 51 if (i > j) {}} else {} [all …]
|
| D | if2.params.yaml | 52 return j; 67 return j; 76 return j; 97 return j; 103 return j; 110 return j; 116 return j; 132 return j; 139 else return j; 143 else return j; [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/08.statements/07.while_statements_and_do_statements/ |
| D | neg.params.yaml | 18 while i > j {} 22 while (i > j {} 26 while i > j) {} 30 do {} while i > j 34 do {} while (i > j 38 do {} while i > j) 42 do while (i > j) 46 do {{} while (i > j) 50 do {}} while (i > j) 55 i += j; [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/15.semantic_rules/07.overloading_and_overriding/05.overloading_and_overriding_in_interfaces/ |
| D | multiple_interfaces_inheritance.params.yaml | 22 interface J extends I { 23 foo(j: string) { 27 class A implements I, J {} 39 interface J extends I { 40 foo(j: number) { 44 class A implements I, J {} 55 interface J { 56 foo(j: string) { 60 class A implements I, J {} 72 interface J { [all …]
|
| D | single_interface_overload_neg.params.yaml | 19 foo(j: G) {} 28 foo(j: Number) {} 38 foo(j: G<Number>) {} 46 foo(j: String) {} 48 interface J implements I { 51 class A implements J {} 57 foo(j: number) {} 59 interface J implements I { 62 class A implements J {} 68 foo(j: Number) {} [all …]
|
| D | im_over2.params.yaml | 18 interface J { 21 m(i: int, j: int): int { return i + j } 22 m(i: int, j: int, k: int): int { return 3 } 23 m(i: int, j: double): double { return j + i } 24 m(i: int, j: int, k: double): int { return 21 } 25 m(i: double, j: double, k: int): int { return 31 } 26 m(i: string, j: double): string { return i + j } 28 class A implements J {} 42 interface J { 48 class A implements J {} [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/checked/ |
| D | memory_coalescing2.sts | 105 for (let j: int = 0; j < u.length; j = j + 2) { 106 t.i1 += u[j]; 107 t.i2 += u[j + 1]; 119 for (let j: int = 0; j < u.length; j = j + 2) { 120 t.i2 += u[j]; 121 t.f1 += u[j + 1]; 133 for (let j: int = 0; j < u.length; j = j + 2) { 134 t.f1 += u[j]; 135 t.f2 += u[j + 1]; 147 for (let j: int = 0; j < u.length; j = j + 2) { [all …]
|
| D | memory_coalescing.sts | 69 for (let j: int = 0; j < u.length; j = j + 2) { 70 t += u[j]; 71 t += u[j + 1]; 86 for (let j: int = 0; j < u.length; j = j + 2) { 87 t += u[j]; 88 Test.__noinline__fnMem(u, v, j); 89 t += u[j + 1]; 102 for (let j: int = 0; j < u.length; j = j + 2) { 103 t += u[j]; 105 t += u[j + 1]; [all …]
|
| D | memory_coalescing1.sts | 81 for (let j: int = 0; j < u.length; j = j + 2) { 82 t.f += u[j]; 83 t.g += u[j + 1]; 100 for (let j: int = 0; j < u.length; j = j + 2) { 101 t.f += u[j]; 102 Test.__noinline__fnMem(u, v, j); 103 t.g += u[j + 1]; 118 for (let j: int = 0; j < u.length; j = j + 2) { 119 t.f += u[j]; 121 t.g += u[j + 1]; [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/07.expressions/01.evaluation_of_expressions/05.evaluation_of_other_expressions/ |
| D | instof.sts | 25 interface J {} 29 class B extends A implements J {} 36 if (a instanceof J) return 1; 42 if (!(a instanceof J)) return 1; 48 if (i instanceof J) return 1; 54 if (!(i instanceof J)) return 1; 60 if (!(b instanceof J)) return 1; 62 let j: J = new B(); 63 if (!(j instanceof A)) return 1; 64 if (!(j instanceof I)) return 1; [all …]
|
| D | cast.params.yaml | 29 expr: 'let x: J = v as J' 50 expr: 'let x: J = v as J' 71 expr: 'let x: J = v as J' 92 expr: 'let x: J = v as J' 113 expr: 'let x: J = v as J' 134 expr: 'let x: J = v as J' 142 - init: 'let v: J = new B()' 146 - init: 'let v: J = new B()' 150 - init: 'let v: J = new B()' 154 - init: 'let v: J = new B()' [all …]
|
| /arkcompiler/ets_frontend/ets2panda/test/ast/parser/ets/ |
| D | loops.sts | 18 let j = 1; 19 for (j = 1; i < 5; i++) continue; 22 for (let i = 1, j = 3; i + j < 30; i += j) { 50 for (let j = 1; j < 5; j++) { 61 for (let j = 1; j < 5; j++) {
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/06.contexts_and_conversions/04.casting_contexts_and_conversions/02.narrowing_reference_casting_conversions/ |
| D | userdef_ref.params.yaml | 79 interface J {} 80 class A implements J {} 81 stype: J 86 interface J {} 87 class A implements J {} 90 dtype: J 94 interface J extends I {} 95 class A implements J {} 98 dtype: J 126 interface J {} [all …]
|
| /arkcompiler/runtime_core/static_core/runtime/ |
| D | handle_storage-inl.h | 77 for (uint32_t j = offset; j < NODE_BLOCK_SIZE; ++j) { in ZapFreedHandles() local 78 node->at(j) = reinterpret_cast<T>(static_cast<uint64_t>(0)); in ZapFreedHandles() 95 for (uint32_t j = 0; j < count; ++j) { in UpdateHeapObject() local 96 coretypes::TaggedValue obj(node->at(j)); in UpdateHeapObject() 98 …(*node)[j] = coretypes::TaggedValue(ark::mem::GetForwardAddress(obj.GetHeapObject())).GetRawData(); in UpdateHeapObject() 119 for (uint32_t j = 0; j < count; ++j) { in VisitGCRoots() local 120 coretypes::TaggedValue obj(node->at(j)); in VisitGCRoots() 143 for (uint32_t j = 0; j < count; ++j) { in UpdateHeapObject() local 144 auto *obj = reinterpret_cast<ObjectHeader *>(node->at(j)); in UpdateHeapObject() 146 (*node)[j] = ::ark::mem::GetForwardAddress(obj); in UpdateHeapObject() [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/06.contexts_and_conversions/05.implicit_conversions/11.tuple_types_conversion/call_meth/ |
| D | call-meth2.params.yaml | 43 interface J extends I {} 45 class B implements J {} 47 let j: J = new B() 50 - { type: J, expr: "j" } 57 interface J extends I {} 59 class B implements J {} 61 let j: J = new B() 64 - { type: J, expr: "j" } 66 - { type: I|J } 67 - { type: J|I }
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/06.contexts_and_conversions/05.implicit_conversions/11.tuple_types_conversion/call_cons/ |
| D | call-cons2.params.yaml | 43 interface J extends I {} 45 class B implements J {} 47 let j: J = new B() 50 - { type: J, expr: "j" } 57 interface J extends I {} 59 class B implements J {} 61 let j: J = new B() 64 - { type: J, expr: "j" } 66 - { type: I|J } 67 - { type: J|I }
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/06.contexts_and_conversions/05.implicit_conversions/11.tuple_types_conversion/call_func/ |
| D | call-func2.params.yaml | 43 interface J extends I {} 45 class B implements J {} 47 let j: J = new B() 50 - { type: J, expr: "j" } 57 interface J extends I {} 59 class B implements J {} 61 let j: J = new B() 64 - { type: J, expr: "j" } 66 - { type: I|J } 67 - { type: J|I }
|
| /arkcompiler/ets_runtime/test/moduletest/decodeuricomponent/ |
| D | decodeuricomponent.js | 96 for (var j = arr[i][0]; j <= arr[i][1]; j++) { 98 decodeURIComponent("%" + String.fromCharCode(j)+ "1"); 99 decodeURIComponent("%" + "1" + String.fromCharCode(j)); 100 decodeURIComponent("%C0%" + String.fromCharCode(j, j)); 101 decodeURIComponent("%E0%" + String.fromCharCode(j, j) + "%A0"); 102 decodeURIComponent("%E0" + "%A0%" + String.fromCharCode(j, j)); 103 decodeURIComponent("%F0%" + String.fromCharCode(j, j) + "%A0%A0"); 104 decodeURIComponent("%F0" + "%A0%" + String.fromCharCode(j, j) + "%A0"); 105 decodeURIComponent("%F0" + "%A0%A0%" + String.fromCharCode(j, j));
|
| /arkcompiler/ets_runtime/test/moduletest/forin_primitive/ |
| D | forin_primitive.js | 25 for (let j in str) { 26 print(j) 30 for (let j in num) { 31 print(j) 35 for (let j in boolv) { 36 print(j) 40 for (let j in symbol) { 41 print(j)
|
| /arkcompiler/runtime_core/static_core/static_linker/ |
| D | linker_context_misc.cpp | 109 auto j = static_cast<const panda_file::ForeignClassItem *>(i); in ReprItem() local 110 DemangleName(o, j->GetNameItemData()); in ReprItem() 114 auto j = static_cast<const panda_file::ClassItem *>(i); in ReprItem() local 115 DemangleName(o, j->GetNameItemData()); in ReprItem() 119 auto j = static_cast<const panda_file::ForeignFieldItem *>(i); in ReprItem() local 120 ReprItem(o, j->GetTypeItem()); in ReprItem() 122 ReprItem(o, j->GetClassItem()); in ReprItem() 123 o << "." << j->GetNameItem()->GetData(); in ReprItem() 127 auto j = static_cast<const panda_file::FieldItem *>(i); in ReprItem() local 128 ReprItem(o, j->GetTypeItem()); in ReprItem() [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/templates/stdlib/ |
| D | Array_builtin.erb | 216 for (let j = i; j > startIndex; j--) { 217 arr[j] = arr[j - 1] 221 let j = i - 1; 222 while (comp(tmp, arr[j]) as int < 0) { 223 arr[j + 1] = arr[j]; 224 j--; 226 arr[j + 1] = tmp; 243 let j = 0; 245 while (i < len1 && j < len2) { 246 if (comp(left[i], right[j]) as int <= 0) { [all …]
|