Home
last modified time | relevance | path

Searched full:y (Results 1 – 25 of 1696) sorted by relevance

12345678910>>...68

/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/06.contexts_and_conversions/01.assignment-like_contexts/
Dunrelated_refs.params.yaml16 - { src_type: 'A<X>', dst_type: 'A<Y>' }
17 - { src_type: 'A<Y>', dst_type: 'A<X>' }
18 - { src_type: 'A<X>', dst_type: 'A<out Y>' }
19 - { src_type: 'A<Y>', dst_type: 'A<in X>' }
20 - { src_type: 'Aout<X>', dst_type: 'Aout<Y>' }
21 - { src_type: 'Aout<X>', dst_type: 'Aout<out Y>' }
22 - { src_type: 'Ain<Y>', dst_type: 'Ain<X>' }
23 - { src_type: 'Ain<Y>', dst_type: 'Ain<in X>' }
25 - { src_type: 'A<Y>', dst_type: 'B<X>' }
26 - { src_type: 'A<X>', dst_type: 'B<Y>' }
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/07.expressions/22.additive_expressions/02.additive_operators_for_numeric_types/
Dint.params.yaml16 - {x: 0, y: -0, type: "byte", result: 0}
17 - {x: -0, y: 0, type: "byte", result: 0}
18 - {x: -0, y: -0, type: "byte", result: -0}
19 - {x: 0, y: 0, type: "byte", result: 0}
20 - {x: 0, y: 1, type: "byte", result: 1}
21 - {x: 1, y: 0, type: "byte", result: 1}
22 - {x: 1, y: -1, type: "byte", result: 0}
24 - {x: 0, y: -0, type: "short", result: 0}
25 - {x: -0, y: 0, type: "short", result: 0}
26 - {x: -0, y: -0, type: "short", result: -0}
[all …]
Dfloat.params.yaml16 - {x: 0.0, y: -0.0, type: "float", result: 0.0}
17 - {x: -0.0, y: 0.0, type: "float", result: 0.0}
18 - {x: -0.0, y: -0.0, type: "float", result: -0.0}
19 - {x: 0.0, y: 0.0, type: "float", result: 0.0}
20 - {x: 0.0, y: 1.0, type: "float", result: 1.0}
21 - {x: 1.0, y: 0.0, type: "float", result: 1.0}
22 - {x: 1.0, y: -1.0, type: "float", result: 0.0}
24 - {x: 0.0, y: -0.0, type: "double", result: 0.0}
25 - {x: -0.0, y: 0.0, type: "double", result: 0.0}
26 - {x: -0.0, y: -0.0, type: "double", result: -0.0}
[all …]
Dnan.params.yaml16 - {x: "Double.NaN", y: "Double.NaN", type: "double"}
17 - {x: 1.0, y: "Double.NaN", type: "double"}
18 - {x: "Double.NaN", y: 1.0, type: "double"}
19 - {x: "Double.NEGATIVE_INFINITY", y: "Double.POSITIVE_INFINITY", type: "double"}
20 - {x: "Double.POSITIVE_INFINITY", y: "Double.NEGATIVE_INFINITY", type: "double"}
21 - {x: "Double.NaN", y: "Double.NEGATIVE_INFINITY", type: "double"}
22 - {x: "Double.NEGATIVE_INFINITY", y: "Double.NaN", type: "double"}
23 - {x: "Double.NaN", y: "Double.POSITIVE_INFINITY", type: "double"}
24 - {x: "Double.POSITIVE_INFINITY", y: "Double.NaN", type: "double"}
25 - {x: "Double.NEGATIVE_INFINITY", y: "Double.POSITIVE_INFINITY", type: "double"}
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/07.expressions/21.multiplicative_expressions/03.remainder/
Dnan.params.yaml16 - { x: Double.NaN, y: Double.NaN }
17 - { x: Double.NaN, y: 1.0 }
18 - { x: 1.0, y: Double.NaN }
19 - { x: Double.NaN, y: -1.0 }
20 - { x: Double.NaN, y: Double.POSITIVE_INFINITY }
21 - { x: Double.POSITIVE_INFINITY, y: Double.NaN }
22 - { x: Double.NaN, y: Double.NEGATIVE_INFINITY }
23 - { x: Double.NEGATIVE_INFINITY, y: Double.NaN }
25 - { x: Double.POSITIVE_INFINITY, y: Double.POSITIVE_INFINITY }
26 - { x: Double.NEGATIVE_INFINITY, y: Double.NEGATIVE_INFINITY }
[all …]
Dinf.params.yaml16 - { x: 1.0, y: Double.POSITIVE_INFINITY, result: 1.0 }
17 - { x: -1.0, y: Double.POSITIVE_INFINITY, result: -1.0 }
18 - { x: 1.0, y: Double.NEGATIVE_INFINITY, result: 1.0 }
19 - { x: -1.0, y: Double.NEGATIVE_INFINITY, result: -1.0 }
21 - { x: 0.0, y: 1.0, result: 0.0 }
22 - { x: 0.0, y: -1.0, result: 0.0 }
24 - { x: 1.0, y: 1.0, result: 0.0 }
25 - { x: 1.0, y: -1.0, result: -0.0 }
26 - { x: -1.0, y: 1.0, result: -0.0 }
27 - { x: -1.0, y: -1.0, result: 0.0 }
[all …]
Dinteger_remainder.params.yaml16 - { x: 0, y: 1, result: 0 }
17 - { x: 1, y: 1, result: 0 }
18 - { x: 0, y: -1, result: 0 }
19 - { x: -1, y: -1, result: 0 }
21 - { x: 2, y: 2, result: 0 }
22 - { x: 2, y: 1, result: 0 }
23 - { x: 1, y: 2, result: 1 }
24 - { x: 2, y: -1, result: 0 }
25 - { x: -2, y: 1, result: 0 }
27 - { x: 5, y: 2, result: 1 }
[all …]
/arkcompiler/ets_frontend/ets2panda/linter/docs/rules/
Drecipe30.md31 class Y { // Y is structurally equivalent to X
37 let y = new Y()
39 console.log("Assign X to Y")
40 y = x
42 console.log("Assign Y to X")
43 x = y
49 // X and Y are equivalent because their public API is equivalent.
52 foo(new Y())
93 // X implements interface Z, which makes relation between X and Y explicit.
99 // Y implements interface Z, which makes relation between X and Y explicit.
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/07.expressions/29.assignment/
Dpos.params.yaml18 let y = 2
19 x = x = x = x = x = x = y * 2
25 let y = 2
26 x = y = x = y = x = y = x + y
27 if (x != 3 || y != 3) {
32 let y = 2
33 x[--y] = x[--y] = y
34 if (y != 0 || x[0] != 0 || x[1] != 0) {
48 let y = 2
49 a.fld[--y] = a.fld[--y] = y
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/05.generics/02.generic_instantiations/01.type_arguments/type_arguments_of_parameterized_declarations/
Dclass_args_neg.params.yaml18 let v: A<X> = new A<X>(new Y()) // Y is not X
23 bound: ' extends Y|null'
32 let v: A<A<X>> = new A<A<X>>(new A<Y>(new Y())) // A<Y> is not A<X>
36 let v: A<I> = new A<I>(new Y()) // Y doesn't implement I
40 let v: A<A<I>> = new A<A<I>>(new A<Y>(new Y())) // A<Y> is not A<I>
44 let v: A<X[]> = new A<X[]>(new Y[0]) // Y[] is not X[]
47 let v: A<A<X>[]> = new A<A<X>[]>(new A<Y>[0]) // A<X>[] is not A<Y>[]
50 let v: A<A<X[]>[]> = new A<A<X[]>[]>(new A<Y[]>[0]) // Y[] is not X[]
54 let v: A<I[]> = new A<I[]>(new Y[0]) // Y doesn't implement I
58 let v: A<A<I>[]> = new A<A<I>[]>(new A<Y>[0]) // Y doesn't implement I
[all …]
/arkcompiler/ets_runtime/ecmascript/compiler/
Dlcr_circuit_builder.h25 GateRef CircuitBuilder::Int8Equal(GateRef x, GateRef y) in Int8Equal() argument
27 return Equal(x, y); in Int8Equal()
30 GateRef CircuitBuilder::Int32NotEqual(GateRef x, GateRef y) in Int32NotEqual() argument
32 return NotEqual(x, y); in Int32NotEqual()
35 GateRef CircuitBuilder::Int64NotEqual(GateRef x, GateRef y) in Int64NotEqual() argument
37 return NotEqual(x, y); in Int64NotEqual()
40 GateRef CircuitBuilder::Int64Equal(GateRef x, GateRef y) in Int64Equal() argument
42 return Equal(x, y); in Int64Equal()
45 GateRef CircuitBuilder::Int32Equal(GateRef x, GateRef y) in Int32Equal() argument
47 return Equal(x, y); in Int32Equal()
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/07.expressions/21.multiplicative_expressions/02.division/
Dnan.params.yaml16 - { x: 'Double.NaN', y: 'Double.NaN' }
17 - { x: 'Double.NaN', y: 1.0 }
18 - { x: 1.0, y: 'Double.NaN' }
20 - { x: 'Double.NaN', y: 'Double.POSITIVE_INFINITY' }
21 - { x: 'Double.POSITIVE_INFINITY', y: 'Double.NaN' }
22 - { x: 'Double.NaN', y: 'Double.NEGATIVE_INFINITY' }
23 - { x: 'Double.NEGATIVE_INFINITY', y: 'Double.NaN' }
25 - { x: 'Double.POSITIVE_INFINITY', y: 'Double.POSITIVE_INFINITY' }
26 - { x: 'Double.POSITIVE_INFINITY', y: 'Double.NEGATIVE_INFINITY' }
27 - { x: 'Double.NEGATIVE_INFINITY', y: 'Double.NEGATIVE_INFINITY' }
[all …]
Dinf.params.yaml16 - { x: Double.POSITIVE_INFINITY, y: 1.0, result: Double.POSITIVE_INFINITY }
17 - { x: Double.POSITIVE_INFINITY, y: -1.0, result: Double.NEGATIVE_INFINITY }
19 - { x: Double.NEGATIVE_INFINITY, y: -1.0, result: Double.POSITIVE_INFINITY }
20 - { x: Double.NEGATIVE_INFINITY, y: 1.0, result: Double.NEGATIVE_INFINITY }
22 - { x: 1.0, y: 'Double.POSITIVE_INFINITY', result: 0.0 }
23 - { x: -1.0, y: 'Double.POSITIVE_INFINITY', result: -0.0 }
24 - { x: 1.0, y: 'Double.NEGATIVE_INFINITY', result: 0.0 }
25 - { x: -1.0, y: 'Double.NEGATIVE_INFINITY', result: -0.0 }
27 - { x: 0.0, y: 1.0, result: 0.0 }
28 - { x: 0.0, y: -1.0, result: -0.0 }
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/07.expressions/21.multiplicative_expressions/01.multiplication/
Dnan.params.yaml16 - { x: Double.NaN, y: Double.NaN, result: Double.NaN }
17 - { x: Double.NaN, y: 0.0, result: Double.NaN }
18 - { x: 0.0, y: Double.NaN, result: Double.NaN }
19 - { x: Double.NaN, y: 1.0, result: Double.NaN }
20 - { x: 1.0, y: Double.NaN, result: Double.NaN }
22 - { x: Double.NaN, y: Double.POSITIVE_INFINITY, result: Double.NaN }
23 - { x: Double.POSITIVE_INFINITY, y: Double.NaN, result: Double.NaN }
25 - { x: Double.NaN, y: Double.NEGATIVE_INFINITY, result: Double.NaN }
26 - { x: Double.NEGATIVE_INFINITY, y: Double.NaN, result: Double.NaN }
28 - { x: Double.POSITIVE_INFINITY, y: 0.0, result: Double.NaN }
[all …]
Dinteger_mul.params.yaml17 - { x: 0, y: 0, result: 0 }
18 - { x: 0, y: 1, result: 0 }
19 - { x: 1, y: 0, result: 0 }
20 - { x: 0, y: -1, result: 0 }
21 - { x: -1, y: 0, result: 0 }
23 - { x: 2, y: 2, result: 4 }
24 - { x: 2, y: 1, result: 2 }
25 - { x: 1, y: 2, result: 2 }
26 - { x: 2, y: -1, result: -2 }
27 - { x: -2, y: 1, result: -2 }
/arkcompiler/ets_runtime/test/aottest/stglobalvar/
Dstglobalvar.ts25 var y: any = x;
26 print(y)
27 y = num1
28 print(y)
29 y = num2
30 print(y)
31 y = str1
32 print(y)
33 y = flag1
34 print(y)
/arkcompiler/ets_frontend/ets2panda/linter/test/rules/
Drule30_2.ets24 class Y {
32 let y = new Y()
34 console.log("Assign X to Y")
35 y = x
37 console.log("Assign Y to X")
38 x = y
47 // X implements interface Z, which makes relation between X and Y explicit.
56 // Y implements interface Z, which makes relation between X and Y explicit.
68 console.log("Assign X to Y")
71 console.log("Assign Y to X")
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/07.expressions/26.bitwise_and_logical_expressions/01.integer_bitwise_operators/
Dgen.go.txt5 var and8_op = func(x uint8, y uint8) uint8 {
6 return x & y
9 var or8_op = func(x uint8, y uint8) uint8 {
10 return x | y
13 var xor8_op = func(x uint8, y uint8) uint8 {
14 return x ^ y
37 for _, y := range data {
38 res := _op(x, y)
41 int8(x), int8(y), op, int8(res), x, y, res,
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/17.experimental_features/08.function_method_and_constructor_overloading/02.class_method_overloading/
Dcm_over3.params.yaml90 class Y {}
97 let a: A<X, Y> = new A<X, Y>()
99 assertEQ( a.m(new X(), new Y()), 2 )
100 assertEQ( a.m(new Y(), new X(), new Y()), 3 )
105 class Y extends X {}
106 class Z extends Y {}
108 m(a: X, b: Y, c: Z): int { return 1 }
109 m(a: Y, b: Y, c: Y): int { return 2 }
110 m(a: X, b: Y): int { return 3 }
111 m(a: Y, b: Y): int { return 4 }
[all …]
/arkcompiler/runtime_core/static_core/compiler/docs/
Dpeephole_doc.md40 2.i64 Parameter -> v8 // y
47 8. Mul v2, v5 -> v9 // y*2
48 9. Mul v7, v8 -> v10 // ((x+1)+1)*(y*2)
49 10. Mul v9, v3 -> v11 // (((x+1)+1)*(y*2))*-1
55 2.i64 Parameter -> v8, v13 // y
65 //y*2 -> y + y
66 8. Mul v2, v5 // y*2
67 13.Add v2, v2 -> v9 // y+y
69 9. Mul v12, v13 -> v14 // (x+2)*(y+y)
72 10.Mul v9, v3 // (x+2)*(y+y)*(-1)
[all …]
/arkcompiler/ets_frontend/ets2panda/test/runtime/ets/
DSmartCast_04.ets16 function fooAnd(x: String|null, y: String|null): string {
17 if (x != null && y != null) {
18 return x + " " + y;
19 } else if (x == null && y == null) {
21 } else if (x != null && y == null) {
23 } else if (x == null && y != null) {
24 return y;
30 function fooOr1(x: String|null, y: String|null): string {
31 if (x != null || y != null) {
33 } else if (x == null && y == null) {
[all …]
DOverride-4.ets17 class Y extends X {}
20 foo(x: Y): string { return "A.foo(Y)" }
22 foo2(x: Y): Object { return "A.foo(Y)" }
32 override foo2(x: Y): String { return "C.foo2(Y)" }
36 assertEQ(new B().foo(new Y()), "B.foo(X)")
38 assertEQ(new C().foo2(new Y()), "C.foo2(Y)")
/arkcompiler/runtime_core/static_core/plugins/ets/tests/common/bouncing_pandas/
Dbouncing_pandas.ets19 constructor(x: float, y: float, speed: float, radius: float) {
23 this.y = y;
30 this.y += this.vy;
33 top(): float { return this.y - this.radius; }
35 bottom(): float { return this.y + this.radius; }
38 public y: float;
57 let ny: float = b2.y - b1.y;
71 b1.y -= ny * d;
83 b.y = b.top() <= 0 ? b.radius : frameHeight - b.radius;
93 constructor(x: float, y: float) {
[all …]
/arkcompiler/ets_runtime/test/aottest/analyze_property/multi_storing/
Dmulti_storing.ts23 y: string; property in TestLoad
25 this.y = "a1";
26 print(this.y);
27 this.y = "a2";
33 y: string; property in TestEscapeThis
35 this.y = "b1";
38 this.y = "b2";
43 print(obj.y);
49 print(ArkTools.isNotHoleProperty(a, "y"));
53 print(ArkTools.isNotHoleProperty(a, "y"));
/arkcompiler/ets_runtime/tools/circuit_viewer/src/engine/
DRightMenu.js32 static Reset(detail, x, y) { argument
35 y: y == null ? XTools.MOUSE_POS.y : y, property
81 RightMenu.MENU.y
89 static DrawGroup(grp, x, y) { argument
98 X2DFast.px2f.drawCut(this.backgroundCut_, x, y, 1, 0.88, 0, -1, -1);
100 X2DFast.px2f.drawCut(this.backgroundCut_, x, y, 1, 0.3, 0, -1, -1);
102 X2DFast.px2f.drawCut(this.backgroundCut_, x, y, 1, 1, 0, -1, -1);
105 e.rect = [x, y, w, 32];
110 y
114 e.rect = [x, y, w, 0];
[all …]

12345678910>>...68