Home
last modified time | relevance | path

Searched full:q (Results 1 – 25 of 638) sorted by relevance

12345678910>>...26

/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/07.expressions/29.assignment/02.compound_assignment_operators/
Dops.params.yaml16 - { 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 …]
Dops_boxed.params.yaml16 - { 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 …]
Dops_neg_rt.params.yaml17 - { 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/
Dscope2.sts23 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 …]
Dscope1.sts24 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;
Dshadowing3.sts24 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;
Dshadowing2.sts24 let q: int = 1;
27 let q: int = 10 // local q shadows top-level q
28 return q + q;
32 q = 1;
33 if (bar() == 20 && q == 1) return 0;
Dshadowing1.sts24 let q: int = 1;
26 function bar(q: int): int { // q shadows top-level q
27 return q + q;
31 q = 1;
32 if (bar(10) == 20 && q == 1) return 0;
/arkcompiler/ets_frontend/ets2panda/test/runtime/ets/
Dtop_level_02.sts16 let q: int = 1; // variable in top-level scope
19 switch (q) {
21 q += 2;
33 assert(q == 3)
38 q += 5;
47 assert(q == 8)
51 ETSGLOBAL.q = 1;
52 let q: int; // function main scope, top-level q is shadowed
53 q = q + 30;
54 assert(q == 30)
[all …]
DAliasFunction.sts24 type Alias4Function<T> = (p : T[], q: T) => double;
25 type Alias5Function<T1, T2> = (p : T1[], q: T2) => double;
26 type Alias6Function<T1, T2, R> = (p : T1, q: T2) => R;
27 type Alias7Function<T> = (p : (p1 : C<T>) => double, q : double) => double;
42 … v5 : Alias4Function<double> = (p : double[], q: double) : double => { return p[0]; }; // (p: Dou…
45 …ias5Function<double, double> = (p : double[], q: double) : double => { return p[0]; }; // (p: dou…
48 …Function<double, double, double> = (p: double, q: double) : double => { return p + q; }; // (p: Do…
51 …Function<double> = (p : (p1 : C<double>) => double, q: double) : double => { return p(new C<double…
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/include/cg/aarch64/
Daarch64_fp_simd_regs.def26 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/15.semantic_rules/06.type_inference/01.smart_types/
Dun_bool_ops.params.yaml33 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/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/include/cg/x86_64/
Dx64_fp_simd_regs.def26 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 …]
Dx64_int_regs.def30 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/type_parameter_equality_operators/
Dne.sts20 function eq<P, Q>(p: P, q: Q): boolean {
21 return p == q
23 function ne<P, Q>(p: P, q: Q): boolean {
24 return p != q
31 {%- for q in c['case'] %}
32 {%- if p != q %}
33 if (eq<Object, Object>({{p}}, {{q}})) return 1
34 if (!ne<Object, Object>({{p}}, {{q}})) return 1
Dne3.sts22 function eq<P, Q>(p: P, q: Q): boolean {
23 return p == q
25 function ne<P, Q>(p: P, q: Q): boolean {
26 return p != q
33 {%- for q in c['case2'] %}
34 {%- if p != q %}
35 if (eq<{{c.type1}}, {{c.type2}}>({{p}}, {{q}})) return 1
36 if (!ne<{{c.type1}}, {{c.type2}}>({{p}}, {{q}})) return 1
Deq.sts20 function eq<P, Q>(p: P, q: Q): boolean {
21 return p == q
23 function ne<P, Q>(p: P, q: Q): boolean {
24 return p != q
31 {%- for q in c['case'] %}
32 if (!eq<Object, Object>({{p}}, {{q}})) return 1
33 if (ne<Object, Object>({{p}}, {{q}})) return 1
Deq2.sts22 function eq<P, Q>(p: P, q: Q): boolean {
23 return p == q
25 function ne<P, Q>(p: P, q: Q): boolean {
26 return p != q
33 {%- for q in c['case2'] %}
34 if (!eq<{{c.type1}}, {{c.type2}}>({{p}}, {{q}})) return 1
35 if (ne<{{c.type1}}, {{c.type2}}>({{p}}, {{q}})) return 1
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/05.generics/02.generic_instantiations/03.implicit_generic_instantiations/
Dlmbd_n.params.yaml17 assert((<T> (p: T, q: T): T => p ?? q)("a", "b") == "a")
19 assert((<T> (p: T, q: T): T => p ?? q)(null, 1) === 1)
22 assert((<T> (p: T, q: T): T => p ?? q)(a, new Object()) == 42)
26 assert((<T> (p: T, q: T): T => p ?? q)(a, b) instanceof String)
30 assert((<T> (p: T, q: T): T => p ?? q)(b, a) instanceof String)
/arkcompiler/ets_frontend/arkguard/test/combinations_expect/basic_grammar/strProp+top/01_06_export_import_cases/export_from/
Dimport_name_exports_test_expected.txt15 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/top/01_06_export_import_cases/export_from/
Dimport_name_exports_test_expected.txt15 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/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/
Dcte.params.yaml17 function eq(p: Object, q: String): boolean {
18 return p == q
32 let q: string
37 q = u
38 return p == q
46 function eq(p: Object|null|undefined, q: Object|null|undefined): boolean {
47 return p == q
61 function eq(p: Object, q: String): boolean {
62 return p == q
77 let q: string
[all …]
Dne.sts20 function eq(p: Object, q: Object): boolean {
21 return p == q
23 function ne(p: Object, q: Object): boolean {
24 return p != q
31 {%- for q in c['case'] %}
32 {%- if p != q %}
33 if (eq({{p}}, {{q}})) return 1
34 if (!ne({{p}}, {{q}})) return 1
Dne1.sts20 function eq(p: {{c.type}}, q: Object): boolean {
21 return p == q
23 function ne(p: {{c.type}}, q: Object): boolean {
24 return p != q
31 {%- for q in c['case2'] %}
32 {%- if p != q %}
33 if (eq({{p}}, {{q}})) return 1
34 if (!ne({{p}}, {{q}})) return 1
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/07.expressions/11.function_call_expression/step_1_selection_of_function/
Dstep1.params.yaml137 function foo(p: number, q: number = 0.0): string {
140 function foo(p: Number, q: number = 0.0): string {
143 function foo(p: Number|null, q: number = 1.0): string {
153 function foo(p: number, q: number = 0.0): string {
163 function foo(p: Number, q: number = 0.0): string {
166 function foo(p: Number|null, q: number = 1.0): string {
176 function foo(p: Number|null, q?: Number): string {
179 function foo(p: number, q?: Number): string {
182 function foo(p: Number, q?: Number): string {
192 function foo(p: number, q?: Number): string {
[all …]

12345678910>>...26