Home
last modified time | relevance | path

Searched +full:2 +full:i (Results 1 – 25 of 1345) sorted by relevance

12345678910>>...54

/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/07.expressions/01.evaluation_of_expressions/03.operator_precedence/
Dunary.sts21 let i: int, b: boolean;
22 let t2 = 2, t3 = 3, t4 = 4, t8 = 8, t255 = 255, t258 = 258
25 i = + t2 * t4; if (i != 8) return 1;
26 i = + + t2 * t4; if (i != 8) return 1;
27 i = - t2 * t4; if (i != -8) return 1;
28 i = - - t2 * t4; if (i != 8) return 1;
29 i = ~ t2 * t4; if (i != -12) return 1;
30 i = ~ ~ t2 * t4; if (i != 8) return 1;
31 i = + - t2 * t4; if (i != -8) return 1;
32 i = + ~ t2 * t4; if (i != -12) return 1;
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/15.semantic_rules/07.overloading_and_overriding/04.overloading_and_overriding_in_classes/
Dinstance_method_over_n2.params.yaml17 …- { base: "i: Number|undefined|null", derived: "i: undefined|Number|null", call: "undefined", res:…
18 - { base: "i: Number|undefined|null", derived: "i: undefined|null|Number", call: "null", res: 2 }
20 …- { base: "i: Number, j: number", derived: "i: number, k: Number", call: "new Number(), 1", res: 1…
21 …- { base: "i: Number, j: number", derived: "i: number, k: Number", call: "1, new Number()", res: 2
25 - { base: "i: Number", derived: "i: Double", call: "new Number()", res: 2 }
26 - { base: "i: Number", derived: "i: Double", call: "new Double()", res: 2 }
27 - { base: "i: Double", derived: "i: Number", call: "new Number()", res: 2 }
28 - { base: "i: Double", derived: "i: Number", call: "new Double()", res: 2 }
30 - { base: "i: A", derived: "i: B", call: "new A()", res: 1 }
31 - { base: "i: A", derived: "i: B", call: "new B()", res: 2 }
[all …]
Dstatic_method_over_n2.params.yaml17 …- { base: "i: Number|undefined|null", derived: "i: undefined|Number|null", call: "undefined", res:…
18 - { base: "i: Number|undefined|null", derived: "i: undefined|null|Number", call: "null", res: 2 }
20 …- { base: "i: Number, j: number", derived: "i: number, k: Number", call: "new Number(), 1", res: 1…
21 …- { base: "i: Number, j: number", derived: "i: number, k: Number", call: "1, new Number()", res: 2
25 - { base: "i: Number", derived: "i: Double", call: "new Number()", res: 2 }
26 - { base: "i: Number", derived: "i: Double", call: "new Double()", res: 2 }
27 - { base: "i: Double", derived: "i: Number", call: "new Number()", res: 2 }
28 - { base: "i: Double", derived: "i: Number", call: "new Double()", res: 2 }
30 - { base: "i: A", derived: "i: B", call: "new A()", res: 1 }
31 - { base: "i: A", derived: "i: B", call: "new B()", res: 2 }
[all …]
Dsingle_class_overload_n.params.yaml19 constructor(i: short) { res = 2;}
20 constructor(i: Short) { res = 3;}
21 constructor(i: int) { res = 4;}
22 constructor(i: Int) { res = 5;}
23 constructor(i: long) { res = 6;}
24 constructor(i: Long) { res = 7;}
25 constructor(i: float) { res = 8;}
26 constructor(i: Float) { res = 9;}
27 constructor(i: double) { res = 10;}
28 constructor(i: Number) { res = 11;}
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/15.semantic_rules/07.overloading_and_overriding/02.override-compatible_signatures/
Doverride_with_object.params.yaml19 foo(i: Base): void {
23 override foo(i: Object): void {
24 res = 2;
27 result: 2
31 foo(i: Base): void {
35 override foo(i: Object): void {
36 res = 2;
39 result: 2
44 foo(i: Object): void {
48 override foo(i: Base): void {
[all …]
Doverride_variance.params.yaml19 foo(i: Derived): void {
23 override foo(i: Base): void {
24 res = 2;
27 result: 2
31 foo(i: Derived): void {
35 override foo(i: Base): void {
36 res = 2;
44 foo(i: Base): void {
48 override foo(i: Derived): void {
49 res = 2;
[all …]
Doverride_compatible_signature.params.yaml22 res = 2;
25 result: 2
36 res = 2;
39 result: 2
48 override foo(i: int): void {
49 res = 2;
52 result: 2
54 # different arguments number 2:1
57 foo(i: int, j: string): void {
61 override foo(i: int): void {
[all …]
/arkcompiler/ets_runtime/test/aottest/typedarrayfill/
Dtypedarrayfill.ts21 arr.fill(2, start, end);
23 for (let i = 0; i < start; i++) {
24 if (arr[i] == 2) {
28 for (let i = start; i < end; i++) {
29 if (arr[i] != 2) {
33 for (let i = end; i < length; i++) {
34 if (arr[i] == 2) {
50 arr.fill(2, start, end);
52 for (let i = 0; i < start; i++) {
53 if (arr[i] == 2) {
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/checked/
Dbounds_analysis_phi_in_loops.sts58 //! INST_COUNT "ZeroCheck", 2
64 //! INST_COUNT "ZeroCheck", 2
123 //! INST_COUNT "ZeroCheck", 2
129 //! INST_COUNT "ZeroCheck", 2
147 let arr : int[] = [0, 1, 2, 3, 4, 4, 3, 2, 1, 0];
149 for (let i = 0; i < arr.length; ++i) {
150 switch (arr[i]) {
157 case 2:
175 for (let i = 0; i < count; i++) {
177 if ((resources[i % i3 & (resourcesLength - 1)] & 1) == 0) {
[all …]
Dmemory_coalescing2.sts30 //! INST_COUNT /StoreObjectPair/, 2
52 //! INST_COUNT /StoreObjectPair/, 2
63 //! INST_COUNT /StoreObjectPair/, 2
85 //! INST_COUNT /StoreObjectPair/, 2
105 for (let j: int = 0; j < u.length; j = j + 2) {
109 for (let i: int = 0; i < v.length; i = i + 2) {
110 v[i] = t.i1;
111 v[i + 1] = t.i2 + 1;
119 for (let j: int = 0; j < u.length; j = j + 2) {
123 for (let i: int = 0; i < v.length; i = i + 2) {
[all …]
Dets_string_concat_loop.sts25 //! INST_COUNT /Intrinsic.StdCoreSbAppendString/,2
42 //! INST_COUNT /Intrinsic.StdCoreSbAppendString/,2
59 //! INST_COUNT /Intrinsic.StdCoreSbAppendString/,2
76 //! INST_COUNT /Intrinsic.StdCoreSbAppendString/,2
93 //! INST_COUNT /Intrinsic.StdCoreSbAppendString/,2
109 //! INST_COUNT /StringBuilder::<ctor>/,2
111 //! INST_COUNT /Intrinsic.StdCoreSbToString/,2
118 //! INST_COUNT /Intrinsic.StdCoreSbAppendString/,2
126 //! INST_COUNT /StringBuilder::<ctor>/,2
128 //! INST_COUNT /Intrinsic.StdCoreSbToString/,2
[all …]
/arkcompiler/ets_runtime/test/moduletest/container/
Dcontainer_vector.js36 vector.insert(2, 2);
38 map.set("test get(index is 2):", vector.get(2) == 2);
41 map.set("test getIndexOf(target is 2):", vector.getIndexOf(2) !== 5); // false
50 vec.set(2, 8);
51 map.set("test set:", vec.get(2) == 8 && vec.length == 6);
62 return (item = 2 * item);
70 for (let i = 0; i < vector.length; i++) {
71 map.set("for of " + arr[i], vec.get(i) == arr[i]);
87 for(let i = 0; i<10; i++) {
88 proxy.add(i)
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/15.semantic_rules/07.overloading_and_overriding/05.overloading_and_overriding_in_interfaces/
Dmultiple_interfaces_inheritance.params.yaml17 interface I {
18 foo(i: number) {
22 interface J extends I {
24 return 2;
27 class A implements I, J {}
31 assert(a.foo("some string") == 2);
34 interface I {
35 foo(i: number) {
39 interface J extends I {
41 return 2;
[all …]
Dim_over.params.yaml18 interface I {
26 type J = I
28 interface I {
29 meth(p: I)
37 interface I {
58 interface I extends J {
69 class A implements I {
73 meth(p: short): int { return 2 }
89 let i: I = new A()
90 assert(i.meth(new Byte(-1 as byte)) == 11)
[all …]
/arkcompiler/ets_frontend/ets2panda/linter/test/
Dfor_stmts.sts27 * OK, spec 7.5.2 Type inference from Types of Elements
49 for (const i in list) {
50 if (true) console.log(i); // "0", "1", "2",
53 for (const i of list) {
54 console.log(i); // 4, 5, 6
57 for (const i of [4, 5, 6]) {
58 console.log(i); // 4, 5, 6
75 for (const i in s) {
76 if (true) console.log(i);
85 let i: number, j: number, k: number;
[all …]
/arkcompiler/runtime_core/compiler/tests/
Dreg_alloc_interference_graph_new_test.cpp48 auto IsInSet(unsigned expect_edges[][2], size_t count, unsigned a, unsigned b) in IsInSet() argument
51 for (size_t i = 0; i < count; i++) { in IsInSet() local
52 if ((a == expect_edges[i][0] && b == expect_edges[i][1]) || in IsInSet()
53 (b == expect_edges[i][0] && a == expect_edges[i][1])) { in IsInSet()
69 for (unsigned i = 0; i < count; i++) { in BuildSubgraph() local
70 auto x = edges[i].first; in BuildSubgraph()
71 auto y = edges[i].second; in BuildSubgraph()
96 unsigned test_edges[2][2] = {{0, 1}, {7, 4}};
99 for (unsigned i = 0; i < 10; i++) { variable
101 EXPECT_EQ(matrix.HasEdge(i, j), IsInSet(test_edges, 2, i, j));
[all …]
Dreg_alloc_interference_graph_test.cpp27 unsigned test_edges1[2][2] = {{0, 1}, {7, 4}};
29 for (int i = 0; i < 2; i++) { in __anon8d415fbc0202() local
30 …if ((a == test_edges1[i][0] && b == test_edges1[i][1]) || (b == test_edges1[i][0] && a == test_edg… in __anon8d415fbc0202()
44 for (unsigned i = 0; i < DEFAULT_CAPACITY1; i++) { in TEST_F() local
46 ASSERT_EQ(matrix.HasEdge(i, j), IsInSet(i, j)); in TEST_F()
58 for (unsigned i = 0; i < DEFAULT_CAPACITY1; i++) { in TEST_F() local
60 EXPECT_EQ(matrix.HasAffinityEdge(i, j), IsInSet(i, j)); in TEST_F()
77 EXPECT_EQ(gr.Size(), 2); in TEST_F()
101 gr.AddEdge(1, 2); in TEST_F()
104 gr.AddEdge(0, 2); in TEST_F()
[all …]
/arkcompiler/ets_frontend/ets2panda/test/runtime/ets/
Dassignment_lowering.sts31 let x: int[] = [1, 2, 3];
33 for (let i: int = 0; i < 3; ++i) {
34 i <<= 2;
36 x[i >> 2] *= 2;
37 i >>= 2;
40 for (let i: int = 0; i < 3; ++i) {
41 assert (x[i] == (i + 1) * 2);
/arkcompiler/ets_runtime/test/aottest/array_bounds_check_elimination/
Darray_bounds_check_elimination.ts31 for (let i = 0; i < x; i++) {
32 a[i] = 0;
37 for (let i = 0; i < x; i++) {
38 b[i] = 0;
42 function triple(a: number[], i: number) {
43 a[i + 3] = 0;
44 a[i + 1] = 0;
45 a[i + 2] = 0;
51 a[2] = 0;
54 let a: number[] = [1, 2, 3];
[all …]
/arkcompiler/toolchain/tooling/test/testcases/js/
Ddropframe.js18 a = 2;
26 d = 2;
43 d = d * 2;
55 a = a * 2;
67 a = a * 2;
72 for (let i = 1; i <= 2; i++) {
81 for (let i = 1; i <= 2; i++) {
83 d = d + i * j;
85 a = a * i;
88 d = d * i * j + c;
[all …]
/arkcompiler/ets_runtime/test/moduletest/loadicbyname/
Dloadicbyname.js26 for (let i = 0; i < 100; i++) {
37 for (let i = 0; i < 50; i++)
45 for (let i = 0; i < 50; i++)
58 for (let i = 0; i < 50; i++)
69 for(let i=0;i<2;i++){
80 for (let i = 0; i < 100; i++) {
91 for (let i = 0; i < 100; i++) {
94 for (let i = 0; i < 100; i++) {
101 for (let i = 0; i < 100; i++) { };
138 for(let i=0;i<2;i++){
[all …]
/arkcompiler/ets_runtime/test/moduletest/arraysplice/
Darraysplice.js16 let arr = [1, 2, 3, 4, 5, 6, 7, 8];
21 arr = [1, 2, 3, 4, 5, 6, 7, 8];
26 arr = [1, 2, 3, 4, 5, 6, 7, 8];
35 for (let i = 0; i < array.length; ++i) {
36 print(i in array)
40 for (let i = 0; i < array1.length; ++i) {
41 print(i in array1)
46 for (var i = 0; i < 1; i++) {
47 let bad_start = { valueOf: function () { array.push(2 * i); return -1; } };
48 let bad_count = { valueOf: function () { array.push(2 * i + 1); return 1; } };
[all …]
/arkcompiler/ets_runtime/test/aottest/inline_array_exception/
Dinline_array_exception.ts16 const arr = [1,2,3,4];
28 for(let i = 0; i < 1; i++){ variable
33 for(let i = 0; i < 1; i++){ variable
38 for(let i = 0; i < 1; i++){ variable
43 for(let i = 0; i < 1; i++){ variable
48 for(let i = 0; i < 1; i++){ variable
53 for(let i = 0; i < 1; i++){ variable
59 for(let i = 0; i < 1; i++){ variable
65 for(let i = 0; i < 1; i++){ variable
69 const map = new Map([[1, 'one'], [2, 'two']]);
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_es_checked/
Duint8clampedarray_lambas.yaml18 …((): Uint8ClampedArray => { let b: number[] = [2, -2, 1, -1, 0]; let a = new Uint8ClampedArray(b.l…
35 (x: number): boolean => x % 2 == 0
39 (x: number, i: number): boolean => (x + i) > 0
41 (x: number, i: number, s: Uint8ClampedArray): boolean => (x + i) > 0
43 (x: number, i: number, s: Uint8ClampedArray): boolean => (x + i) % 2 == 0
45 (x: number, i: number, s: Uint8ClampedArray): boolean => i % 2 == 0
47 (x: number, i: number, s: Uint8ClampedArray): boolean => (x + i) < 0
49 (x: number, i: number, s: Uint8ClampedArray): boolean => (x + i) == 1
54 (x: number): void => { x = x*2 }
56 (x: number, i: number): void => { x = x*2 }
[all …]
Dint8array_lambas.yaml18 …((): Int8Array => { let b: number[] = [2, -2, 1, -1, 0]; let a = new Int8Array(b.length); a.set(b)…
35 (x: number): boolean => x % 2 == 0
39 (x: number, i: number): boolean => (x + i) > 0
41 (x: number, i: number, s: Int8Array): boolean => (x + i) > 0
43 (x: number, i: number, s: Int8Array): boolean => (x + i) % 2 == 0
45 (x: number, i: number, s: Int8Array): boolean => i % 2 == 0
47 (x: number, i: number, s: Int8Array): boolean => (x + i) < 0
49 (x: number, i: number, s: Int8Array): boolean => (x + i) == 1
54 (x: number): void => { x = x*2 }
56 (x: number, i: number): void => { x = x*2 }
[all …]

12345678910>>...54