| /arkcompiler/ets_runtime/ecmascript/compiler/ |
| D | stub_builder.h | 144 GateRef Int16Add(GateRef x, GateRef y); 145 GateRef Int32Add(GateRef x, GateRef y); 146 GateRef Int64Add(GateRef x, GateRef y); 147 GateRef DoubleAdd(GateRef x, GateRef y); 148 GateRef PtrAdd(GateRef x, GateRef y); 149 GateRef PtrSub(GateRef x, GateRef y); 150 GateRef PtrMul(GateRef x, GateRef y); 151 GateRef IntPtrEqual(GateRef x, GateRef y); 152 GateRef Int16Sub(GateRef x, GateRef y); 153 GateRef Int32Sub(GateRef x, GateRef y); [all …]
|
| D | stub_builder-inl.h | 289 inline GateRef StubBuilder::Int16Add(GateRef x, GateRef y) in Int16Add() argument 291 return env_->GetBuilder()->Int16Add(x, y); in Int16Add() 294 inline GateRef StubBuilder::Int32Add(GateRef x, GateRef y) in Int32Add() argument 296 return env_->GetBuilder()->Int32Add(x, y); in Int32Add() 299 inline GateRef StubBuilder::Int64Add(GateRef x, GateRef y) in Int64Add() argument 301 return env_->GetBuilder()->Int64Add(x, y); in Int64Add() 304 inline GateRef StubBuilder::DoubleAdd(GateRef x, GateRef y) in DoubleAdd() argument 306 return env_->GetBuilder()->DoubleAdd(x, y); in DoubleAdd() 309 inline GateRef StubBuilder::PtrMul(GateRef x, GateRef y) in PtrMul() argument 311 return env_->GetBuilder()->PtrMul(x, y); in PtrMul() [all …]
|
| D | circuit_builder-inl.h | 39 GateRef CircuitBuilder::Equal(GateRef x, GateRef y) in Equal() argument 50 return BinaryCmp(circuit_->Icmp(static_cast<uint64_t>(ICmpCondition::EQ)), x, y); in Equal() 53 return BinaryCmp(circuit_->Fcmp(static_cast<uint64_t>(FCmpCondition::OEQ)), x, y); in Equal() 59 GateRef CircuitBuilder::NotEqual(GateRef x, GateRef y) in NotEqual() argument 70 return BinaryCmp(circuit_->Icmp(static_cast<uint64_t>(ICmpCondition::NE)), x, y); in NotEqual() 73 return BinaryCmp(circuit_->Fcmp(static_cast<uint64_t>(FCmpCondition::ONE)), x, y); in NotEqual() 142 GateRef CircuitBuilder::Int8Equal(GateRef x, GateRef y) in Int8Equal() argument 144 return Equal(x, y); in Int8Equal() 147 GateRef CircuitBuilder::Int32NotEqual(GateRef x, GateRef y) in Int32NotEqual() argument 149 return NotEqual(x, y); in Int32NotEqual() [all …]
|
| D | common_stubs.cpp | 37 GateRef y = TaggedArgument(2); in GenerateCircuit() local 39 Return(operationBuilder.Add(glue, x, y)); in GenerateCircuit() 46 GateRef y = TaggedArgument(2); in GenerateCircuit() local 48 Return(operationBuilder.Sub(glue, x, y)); in GenerateCircuit() 55 GateRef y = TaggedArgument(2); in GenerateCircuit() local 57 Return(operationBuilder.Mul(glue, x, y)); in GenerateCircuit() 64 GateRef y = TaggedArgument(2); in GenerateCircuit() local 66 Return(operationBuilder.Div(glue, x, y)); in GenerateCircuit() 73 GateRef y = TaggedArgument(2); // 2: 3rd argument in GenerateCircuit() local 75 Return(operationBuilder.Mod(glue, x, y)); in GenerateCircuit() [all …]
|
| /arkcompiler/ets_runtime/test/aottest/stglobalvar/ |
| D | stglobalvar.ts | 25 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_runtime/ecmascript/ |
| D | js_bigint.cpp | 192 bool BigInt::Equal(const JSTaggedValue &x, const JSTaggedValue &y) in Equal() argument 195 BigInt* yVal = BigInt::Cast(y.GetTaggedObject()); in Equal() 199 bool BigInt::Equal(const BigInt *x, const BigInt *y) in Equal() argument 202 ASSERT(y != nullptr); in Equal() 203 if (x->GetSign() != y->GetSign() || x->GetLength() != y->GetLength()) { in Equal() 207 if (x->GetDigit(i) != y->GetDigit(i)) { in Equal() 215 bool BigInt::SameValue(const JSTaggedValue &x, const JSTaggedValue &y) in SameValue() argument 217 return Equal(x, y); in SameValue() 221 bool BigInt::SameValueZero(const JSTaggedValue &x, const JSTaggedValue &y) in SameValueZero() argument 223 return Equal(x, y); in SameValueZero() [all …]
|
| D | js_bigint.h | 48 static bool Equal(const JSTaggedValue &x, const JSTaggedValue &y); 49 static bool SameValue(const JSTaggedValue &x, const JSTaggedValue &y); 50 static bool SameValueZero(const JSTaggedValue &x, const JSTaggedValue &y); 52 …c JSHandle<BigInt> BitwiseOp(JSThread *thread, Operate op, JSHandle<BigInt> x, JSHandle<BigInt> y); 53 static JSHandle<BigInt> BitwiseAND(JSThread *thread, JSHandle<BigInt> x, JSHandle<BigInt> y); 54 static JSHandle<BigInt> BitwiseXOR(JSThread *thread, JSHandle<BigInt> x, JSHandle<BigInt> y); 55 static JSHandle<BigInt> BitwiseOR(JSThread *thread, JSHandle<BigInt> x, JSHandle<BigInt> y); 65 static std::tuple<uint32_t, uint32_t> Mul(uint32_t x, uint32_t y); 66 static JSHandle<BigInt> Multiply(JSThread *thread, JSHandle<BigInt> x, JSHandle<BigInt> y); 81 static JSHandle<BigInt> Divide(JSThread *thread, JSHandle<BigInt> x, JSHandle<BigInt> y); [all …]
|
| D | js_tagged_value.cpp | 129 …dValue::Equal(JSThread *thread, const JSHandle<JSTaggedValue> &x, const JSHandle<JSTaggedValue> &y) in Equal() argument 132 if (y->IsNumber()) { in Equal() 133 return StrictNumberEquals(x->ExtractNumber(), y->ExtractNumber()); in Equal() 135 if (y->IsString()) { in Equal() 136 JSTaggedNumber yNumber = ToNumber(thread, y); in Equal() 140 if (y->IsBoolean()) { in Equal() 141 JSTaggedNumber yNumber = ToNumber(thread, y); in Equal() 145 if (y->IsBigInt()) { in Equal() 146 return Equal(thread, y, x); in Equal() 148 if (y->IsHeapObject() && !y->IsSymbol()) { in Equal() [all …]
|
| D | js_tagged_value-inl.h | 324 inline bool JSTaggedValue::SameValue(const JSTaggedValue &x, const JSTaggedValue &y) in SameValue() argument 327 if (x == y) { in SameValue() 330 if (x.IsInt() && y.IsInt()) { in SameValue() 334 if (x.IsNumber() && y.IsNumber()) { in SameValue() 335 return SameValueNumberic(x, y); in SameValue() 337 if (x.IsString() && y.IsString()) { in SameValue() 338 …return StringCompare(EcmaString::Cast(x.GetTaggedObject()), EcmaString::Cast(y.GetTaggedObject())); in SameValue() 340 if (x.IsBigInt() && y.IsBigInt()) { in SameValue() 341 return BigInt::SameValue(x, y); in SameValue() 351 inline bool JSTaggedValue::SameValueZero(const JSTaggedValue &x, const JSTaggedValue &y) in SameValueZero() argument [all …]
|
| /arkcompiler/runtime_core/runtime/interpreter/ |
| D | math_helpers.h | 29 constexpr T operator()(const T &x, const T &y) const in operator() 33 size_t shift = static_cast<unsigned_type>(y) & mask; in operator() 40 constexpr T operator()(const T &x, const T &y) const in operator() 44 size_t shift = static_cast<unsigned_type>(y) & mask; in operator() 51 constexpr T operator()(const T &x, const T &y) const in operator() 55 size_t shift = static_cast<unsigned_type>(y) & mask; in operator() 62 constexpr T operator()(const T &x, const T &y) const in operator() 65 return std::fmod(x, y); in operator() 71 constexpr int32_t operator()(const T &x, const T &y) const in operator() 75 if (x > y) { in operator() [all …]
|
| /arkcompiler/ets_runtime/test/moduletest/multiargs/ |
| D | multiargs.js | 36 function two(x,y) argument 38 print(x+y) 41 function three(x,y,z) argument 43 print(x+y+z) 46 function four(x,y,z,t) argument 48 print(x+y+z+t) 51 function five(x,y,z,t,a) argument 53 let s = x + 10*y+ 100*z + 1000*t + 10000*a 63 let y = 222 variable 67 four(x.toString(10),y.toString(10),z.toString(10),a.toString(10))
|
| /arkcompiler/runtime_core/tests/verifier-tests/ |
| D | access_field_nomodifier_core.pa | 34 # public Y Y Y Y 35 # protected Y Y Y N 36 # no modifier Y Y N >N< 37 # private Y N N N
|
| /arkcompiler/ets_runtime/test/aottest/aot_compatibility_test/property_operation/ |
| D | property_operation.ts | 32 y?: number; 33 constructor(x: number, y: number) { 35 this.y = y; 47 print(b2.hasOwnProperty("y")); 48 print(b2.y); 49 b2.y = 3; 50 print(b2.y); 51 delete b2.y; 52 print(b2.hasOwnProperty("y"));
|
| /arkcompiler/ets_runtime/test/typeinfer/bitwise_op/ |
| D | bitwise_op.ts | 19 let y:number = 2; 20 let andRes = x & y; 23 let orRes = x | y; 26 let xorRes = x ^ y; 29 let shlRes = x << y; 32 let ashrRes = x >> y; 35 let shrRes = x >>> y;
|
| /arkcompiler/runtime_core/libark_defect_scan_aux/tests/unittest/ |
| D | callee_info_test.js | 36 func1(2, o2.y); 44 function fn(x, y) { argument 45 print(x + y + this.z); 54 constructor(x, y) { argument 56 this.y = y; 69 this.y += other.y; 77 constructor(x, y, color) { argument 78 super(x, y);
|
| D | graph_test.js | 20 constructor(x, y) { argument 22 this.y = y; 27 this.y = o.y;
|
| /arkcompiler/runtime_core/verification/util/tests/ |
| D | function_traits_test.cpp | 25 int operator()(int x, int y) const in operator ()() 27 return (x + y) * (x + y); in operator ()() 32 int operator()(int x, int y) const in operator ()() 34 return (x - y) * (x - y); in operator ()() 41 int operator()(int x, int y) const in operator ()() 43 return (x * y) % mod; in operator ()()
|
| D | callable_test.cpp | 24 int func(int x, int y) in func() argument 26 return x + y; in func() 30 int operator()(int x, int y) const in operator ()() 32 return 2 * x + y; in operator ()() 34 int some_method(int x, int y) const in some_method() 36 return x + y + 5; in some_method()
|
| /arkcompiler/runtime_core/libark_defect_scan_aux/include/ |
| D | inst_type.h | 24 #define INSTTYPE_ENUM(x, y) y, argument 25 #define BUILD_OPCODE_MAP_TABLE(x, y) {Opcode::x, InstType::y}, argument 26 #define BUILD_INTRINSIC_MAP_TABLE(x, y) {IntrinsicId::x, InstType::y}, argument
|
| /arkcompiler/runtime_core/libpandabase/utils/ |
| D | type_helpers.h | 45 constexpr size_t UnsignedDifference(size_t x, size_t y) in UnsignedDifference() argument 47 return x > y ? x - y : 0; in UnsignedDifference() 50 constexpr uint64_t UnsignedDifferenceUint64(uint64_t x, uint64_t y) in UnsignedDifferenceUint64() argument 52 return x > y ? x - y : 0; in UnsignedDifferenceUint64()
|
| /arkcompiler/ets_frontend/testTs/instype/ |
| D | recordexport.ts | 12 export function add(x: number, y: number) { 13 return x + y; 16 export function minus(x: number, y: number) { 17 return x - y;
|
| /arkcompiler/runtime_core/libpandabase/tests/ |
| D | json_builder_test.cpp | 95 object.AddProperty("y", [](JsonObjectBuilder &y) { in TEST() argument 96 y.AddProperty("a", "foo"); in TEST() 97 y.AddProperty("b", [](JsonObjectBuilder &) {}); in TEST() 100 StringifiesAs("{\"x\":1,\"y\":{\"a\":\"foo\",\"b\":{}}}")); in TEST() 125 …EXPECT_EQ(JsonObjectBuilder().AddProperty("x", 1).AddProperty("y", "foo").AddProperty("z", z).Buil… in TEST() 126 R"({"x":1,"y":"foo","z":{"_":{}}})"); in TEST() 134 builder.AddProperty("y", "foo"); in TEST() 137 EXPECT_EQ(std::move(builder).Build(), R"({"x":1,"y":"foo","z":{"_":{}}})"); in TEST()
|
| /arkcompiler/ets_runtime/ecmascript/base/tests/ |
| D | array_helper_test.cpp | 79 …* @tc.desc: Check whether the two data(X,Y) are sorted from large two smalle,both X and Y are Unde… 80 * X or Y is Undefined return -1,if X more than the Y return 1,otherwrise return 0. 102 EXPECT_EQ(resultValue1, 0); // both X and Y is Undefined in HWTEST_F_L0() 104 EXPECT_EQ(resultValue3, -1); // Y is Undefined in HWTEST_F_L0() 105 EXPECT_EQ(resultValue4, 1); // X > Y in HWTEST_F_L0() 106 EXPECT_EQ(resultValue5, 0); // X = Y in HWTEST_F_L0() 107 EXPECT_EQ(resultValue6, 0); // X < Y in HWTEST_F_L0()
|
| /arkcompiler/ets_frontend/es2panda/test/parser/ts/ |
| D | test-arrow-function.ts | 17 (y?: number) => { } 18 (x: number, y?: number) => { }; 19 (x: number, y: number, z?: boolean) => { };
|
| /arkcompiler/ets_runtime/test/moduletest/class/ |
| D | class.js | 33 constructor(x, y) { argument 35 this.y = y; 39 return this.x * this.y;
|