| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/07.expressions/29.assignment/02.compound_assignment_operators/ |
| D | ops.params.yaml | 16 - { type: byte, v: 127, op: '+', q: 1 } 17 - { type: byte, v: 127, op: '+', q: 127 } 18 - { type: byte, v: -128, op: '+', q: -1 } 20 - { type: short, v: 32767, op: '+', q: 1 } 21 - { type: short, v: 32767, op: '+', q: 32767 } 22 - { type: short, v: -32768, op: '+', q: -1 } 24 - { type: int, v: 2147483647, op: '+', q: 1 } 25 - { type: int, v: 2147483647, op: '+', q: 2147483647 } 26 - { type: int, v: -2147483648, op: '+', q: -1 } 28 - { type: long, v: 9223372036854775807, op: '+', q: 1 } [all …]
|
| D | ops_boxed.params.yaml | 16 - { type: Byte, v: 127, op: '+', q: 1 } 17 - { type: Byte, v: 127, op: '+', q: 127 } 18 - { type: Byte, v: -128, op: '+', q: -1 } 20 - { type: Short, v: 32767, op: '+', q: 1 } 21 - { type: Short, v: 32767, op: '+', q: 32767 } 22 - { type: Short, v: -32768, op: '+', q: -1 } 24 - { type: Int, v: 2147483647, op: '+', q: 1 } 25 - { type: Int, v: 2147483647, op: '+', q: 2147483647 } 26 - { type: Int, v: -2147483648, op: '+', q: -1 } 28 - { type: Long, v: 9223372036854775807, op: '+', q: 1 } [all …]
|
| D | ops_neg_rt.params.yaml | 17 - { type: float, v: Float.POSITIVE_INFINITY, op: '-', q: Float.POSITIVE_INFINITY } 18 - { type: float, v: Float.NEGATIVE_INFINITY, op: '-', q: Float.NEGATIVE_INFINITY } 19 - { type: double, v: Double.POSITIVE_INFINITY, op: '-', q: Double.POSITIVE_INFINITY } 20 - { type: double, v: Double.NEGATIVE_INFINITY, op: '-', q: Double.NEGATIVE_INFINITY } 21 - { type: float, v: Float.POSITIVE_INFINITY, op: '/', q: Float.POSITIVE_INFINITY } 22 - { type: float, v: Float.NEGATIVE_INFINITY, op: '/', q: Float.NEGATIVE_INFINITY } 23 - { type: double, v: Double.POSITIVE_INFINITY, op: '/', q: Double.POSITIVE_INFINITY } 24 - { type: double, v: Double.NEGATIVE_INFINITY, op: '/', q: Double.NEGATIVE_INFINITY } 25 - { type: float, v: Float.POSITIVE_INFINITY, op: '%', q: Float.POSITIVE_INFINITY } 26 - { type: float, v: Float.NEGATIVE_INFINITY, op: '%', q: Float.NEGATIVE_INFINITY } [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/04.names_declarations_and_scopes/08.function_declarations/06.shadowing_parameters/ |
| D | scope2.ets | 23 let q: int = 1; 26 return q; // returns top-level q 30 q = p; // top-level q 33 function bar(q: int): int { // q is shadowing top-level q 34 q = q + getQ(); 35 return q; 38 function foo(q: int): int { 39 setQ(q); 40 return ++q; 44 q = 1; // reset due to jit mode warmup [all …]
|
| D | scope1.ets | 24 let q: int = 1; // top-level scope 27 return q; // returns top-level q 31 q = q + 10; // top-level scope, no shadowing 32 return q; 36 let q: int; // function foo scope, top-level q is shadowed 37 q = q + 20; 38 return q; 42 let q: int; // function main scope, top-level q is shadowed 43 q = q + 30; 45 if (getQ() == 1 && bar() == 11 && foo() == 20 && q == 30 && getQ() == 11) return 0;
|
| D | shadowing3.ets | 24 let q: int = 1; 27 q = p; 31 let q: int = 10 // function local q shadows top-level q 32 if (q > 0) { 33 let q: int = 100 // block-scope q shadows function q 34 setQ(q); 36 return q + q; 40 q = 1; 41 if (bar() == 20 && q == 100) return 0;
|
| /arkcompiler/ets_frontend/ets2panda/test/runtime/ets/ |
| D | top_level_02.ets | 16 let q: int = 1; // variable in top-level scope 19 switch (q) { 21 q += 2; 33 assertEQ(q, 3) 38 q += 5; 47 assertEQ(q, 8) 51 ETSGLOBAL.q = 1; 52 let q: int; // function main scope, top-level q is shadowed 53 q = q + 30; 54 assertEQ(q, 30) [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/runtime_core/static_core/plugins/ets/tests/ets-templates/07.expressions/25.equality_expressions/06.reference_equality_based_on_actual_type/type_parameter_equality_operators/ |
| D | ne.ets | 21 function eq<P, Q>(p: P, q: Q, ps: string, qs: string): string { 22 if (p == q || q == p) { 28 function ne<P, Q>(p: P, q: Q, ps: string, qs: string): string { 29 if (p != q && q != p) { 41 {%- for q in c['case'] %} 42 {%- if p != q %} 43 …failed += eq<Object, Object>({{p}}, {{q}}, "{{p|replace('\\', '\\\\')}}", "{{q|replace('\\', '\\\\… 44 …failed += ne<Object, Object>({{p}}, {{q}}, "{{p|replace('\\', '\\\\')}}", "{{q|replace('\\', '\\\\…
|
| D | ne3.ets | 23 function eq<P, Q>(p: P, q: Q, ps: string, qs: string): string { 24 if (p == q || q == p) { 30 function ne<P, Q>(p: P, q: Q, ps: string, qs: string): string { 31 if (p != q && q != p) { 43 {%- for q in c['case2'] %} 44 {%- if p != q %} 45 …failed += eq<{{c.type1}}, {{c.type2}}>({{p}}, {{q}}, "{{p|replace('\\', '\\\\')}}", "{{q|replace('… 46 …failed += ne<{{c.type1}}, {{c.type2}}>({{p}}, {{q}}, "{{p|replace('\\', '\\\\')}}", "{{q|replace('…
|
| D | eq.ets | 21 function eq<P, Q>(p: P, q: Q, ps: string, qs: string): string { 22 if (p == q && q == p) { 28 function ne<P, Q>(p: P, q: Q, ps: string, qs: string): string { 29 if (p != q || q != p) { 41 {%- for q in c['case2'] %} 42 …failed += eq<Object, Object>({{p}}, {{q}}, "{{p|replace('\\', '\\\\')}}", "{{q|replace('\\', '\\\\… 43 …failed += ne<Object, Object>({{p}}, {{q}}, "{{p|replace('\\', '\\\\')}}", "{{q|replace('\\', '\\\\…
|
| D | eq2.ets | 23 function eq<P, Q>(p: P, q: Q, ps: string, qs: string): string { 24 if (p == q && q == p) { 30 function ne<P, Q>(p: P, q: Q, ps: string, qs: string): string { 31 if (p != q || q != p) { 43 {%- for q in c['case2'] %} 44 …failed += eq<{{c.type1}}, {{c.type2}}>({{p}}, {{q}}, "{{p|replace('\\', '\\\\')}}", "{{q|replace('… 45 …failed += ne<{{c.type1}}, {{c.type2}}>({{p}}, {{q}}, "{{p|replace('\\', '\\\\')}}", "{{q|replace('…
|
| D | ne1.ets | 21 function eq<P>(p: P, q: Object, ps: string, qs: string): string { 22 if (p == q || q == p) { 28 function ne<P>(p: P, q: Object, ps: string, qs: string): string { 29 if (p != q && q != p) { 41 {%- for q in c['case2'] %} 42 {%- if p != q %} 43 …failed += eq<{{c.type}}>({{p}}, {{q}}, "{{p|replace('\\', '\\\\')}}", "{{q|replace('\\', '\\\\')}}… 44 …failed += ne<{{c.type}}>({{p}}, {{q}}, "{{p|replace('\\', '\\\\')}}", "{{q|replace('\\', '\\\\')}}…
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/15.semantic_rules/06.type_inference/01.smart_types/ |
| D | un_bool_ops.params.yaml | 33 let q: Error|boolean = true 36 res = v & q 41 let q: Error|boolean = true 45 res = v & q 50 let q: Error|boolean = false 53 res = v | q 58 let q: Error|boolean = true 62 res = v | q 67 let q: Error|boolean = false 70 res = v ^ q [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/07.expressions/25.equality_expressions/06.reference_equality_based_on_actual_type/object_type_equality_operators/ |
| D | cte.params.yaml | 17 function eq(p: Object, q: String): boolean { 18 return p == q && q == p 32 let q: string 37 q = u 38 return p == q && q == p 46 function eq(p: Object|null|undefined, q: Object|null|undefined): boolean { 47 return p == q && q == p 61 function eq(p: Object, q: String): boolean { 62 return p == q && q == p 77 let q: string [all …]
|
| D | ne1.ets | 21 function eq(p: {{c.type}}, q: Object, ps: string, qs: string): string { 22 if (p == q || q == p) { 28 function ne(p: {{c.type}}, q: Object, ps: string, qs: string): string { 29 if (p != q && q != p) { 41 {%- for q in c['case2'] %} 42 {%- if p != q %} 43 failed += eq({{p}}, {{q}}, "{{p|replace('\\', '\\\\')}}", "{{q|replace('\\', '\\\\')}}") 44 failed += ne({{p}}, {{q}}, "{{p|replace('\\', '\\\\')}}", "{{q|replace('\\', '\\\\')}}")
|
| D | ne.ets | 21 function eq(p: Object, q: Object, ps: string, qs: string): string { 22 if (p == q || q == p) { 28 function ne(p: Object, q: Object, ps: string, qs: string): string { 29 if (p != q && q != p) { 41 {%- for q in c['case'] %} 42 {%- if p != q %} 43 failed += eq({{p}}, {{q}}, "{{p|replace('\\', '\\\\')}}", "{{q|replace('\\', '\\\\')}}") 44 failed += ne({{p}}, {{q}}, "{{p|replace('\\', '\\\\')}}", "{{q|replace('\\', '\\\\')}}")
|
| D | eq.ets | 21 function eq(p: Object, q: Object, ps: string, qs: string): string { 22 if (p == q && q == p) { 28 function ne(p: Object, q: Object, ps: string, qs: string): string { 29 if (p != q || q != p) { 41 {%- for q in c['case2'] %} 42 failed += eq({{p}}, {{q}}, "{{p|replace('\\', '\\\\')}}", "{{q|replace('\\', '\\\\')}}") 43 failed += ne({{p}}, {{q}}, "{{p|replace('\\', '\\\\')}}", "{{q|replace('\\', '\\\\')}}")
|
| /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 …]
|
| D | x64_int_regs.def | 30 INT_REG(0 , "BL", "BH", "W", "L", "Q", true, false, false, false, false) //AX 31 INT_REG(1 , "BL", "BH", "W", "L", "Q", true, false, true, false, false) //CX 32 INT_REG(2 , "BL", "BH", "W", "L", "Q", true, false, true, false, false) //DX 33 INT_REG(3 , "BL", "BH", "W", "L", "Q", true, true, false, false, false) //BX 34 INT_REG(4 , "B", "", "W", "L", "Q", false, false, false, false, false) 35 INT_REG(5 , "B", "", "W", "L", "Q", false, true, false, false, false) 36 INT_REG(6 , "B", "", "W", "L", "Q", true, false, true, false, false) 37 INT_REG(7 , "B", "", "W", "L", "Q", true, false, true, false, false) 38 INT_REG(8 , "B", "", "W", "L", "Q", true, false, true, false, false) 39 INT_REG(9 , "B", "", "W", "L", "Q", true, false, true, false, false) [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/07.expressions/25.equality_expressions/06.reference_equality_based_on_actual_type/union_equality_operators/ |
| D | ne.ets | 23 function eq(p: {{c.type1}}, q: {{c.type2}}, ps: string, qs: string): string { 24 if (p == q || q == p) { 30 function ne(p: {{c.type1}}, q: {{c.type2}}, ps: string, qs: string): string { 31 if (p != q && q != p) { 43 {%- for q in c['case2'] %} 44 {%- if p != q %} 45 failed += eq({{p}}, {{q}}, "{{p|replace('\\', '\\\\')}}", "{{q|replace('\\', '\\\\')}}") 46 failed += ne({{p}}, {{q}}, "{{p|replace('\\', '\\\\')}}", "{{q|replace('\\', '\\\\')}}")
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/05.generics/02.generic_instantiations/02.explicit_generic_instantiations/ |
| D | lmbd_n.params.yaml | 17 assertEQ((<T> (p: T, q: T): T => p ?? q)("a", "b"), "a") 19 assertTrue((<T> (p: T, q: T): T => p ?? q)(null, 1) === 1) 22 assertEQ((<T> (p: T, q: T): T => p ?? q)(a, new Object()), 42) 26 assertTrue((<T> (p: T, q: T): T => p ?? q)(a, b) instanceof String) 30 assertTrue((<T> (p: T, q: T): T => p ?? q)(b, a) instanceof String)
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/05.generics/02.generic_instantiations/03.implicit_generic_instantiations/ |
| D | lmbd_n.params.yaml | 17 assertTrue((<T> (p: T, q: T): T => p ?? q)("a", "b") == "a") 19 assertTrue((<T> (p: T, q: T): T => p ?? q)(null, 1) === 1) 22 assertTrue((<T> (p: T, q: T): T => p ?? q)(a, new Object()) == 42) 26 assertTrue((<T> (p: T, q: T): T => p ?? q)(a, b) instanceof String) 30 assertTrue((<T> (p: T, q: T): T => p ?? q)(b, a) instanceof String)
|
| /arkcompiler/ets_frontend/arkguard/test/combinations_expect/basic_grammar/top/01_06_export_import_cases/export_from/ |
| D | import_name_exports_test_expected.txt | 15 import q from 'assert'; 18 q(module1.reduce(3, 1) === 2); 19 q(r([2, 4, 6]) === 6); 20 q(var1 === 1); 21 q(reduce(4, 1) === 3); 23 q(s.getAge === 1); 24 q(plus(4, 1) === 5); 26 q(t.doubleProp1() === 6); 27 q(defaultAlias([1, 2, 3, 4, 5, 6]).toString() === "2,4,6");
|
| /arkcompiler/ets_frontend/arkguard/test/combinations_expect/basic_grammar/strProp+top/01_06_export_import_cases/export_from/ |
| D | import_name_exports_test_expected.txt | 15 import q from 'assert'; 18 q(module1.reduce(3, 1) === 2); 19 q(r([2, 4, 6]) === 6); 20 q(var1 === 1); 21 q(reduce(4, 1) === 3); 23 q(s.getAge === 1); 24 q(plus(4, 1) === 5); 26 q(t.doubleProp1() === 6); 27 q(defaultAlias([1, 2, 3, 4, 5, 6]).toString() === "2,4,6");
|