/arkcompiler/ets_runtime/ecmascript/compiler/ |
D | operations_stub_builder.h | 37 …GateRef Equal(GateRef glue, GateRef left, GateRef right, ProfileOperation callback = ProfileOperat… 38 …GateRef NotEqual(GateRef glue, GateRef left, GateRef right, ProfileOperation callback = ProfileOpe… 39 …GateRef StrictEqual(GateRef glue, GateRef left, GateRef right, ProfileOperation callback = Profile… 40 …GateRef StrictNotEqual(GateRef glue, GateRef left, GateRef right, ProfileOperation callback = Prof… 41 …GateRef Less(GateRef glue, GateRef left, GateRef right, ProfileOperation callback = ProfileOperati… 42 …GateRef LessEq(GateRef glue, GateRef left, GateRef right, ProfileOperation callback = ProfileOpera… 43 …GateRef Greater(GateRef glue, GateRef left, GateRef right, ProfileOperation callback = ProfileOper… 44 …GateRef GreaterEq(GateRef glue, GateRef left, GateRef right, ProfileOperation callback = ProfileOp… 45 …GateRef Add(GateRef glue, GateRef left, GateRef right, ProfileOperation callback = ProfileOperatio… 46 …GateRef Sub(GateRef glue, GateRef left, GateRef right, ProfileOperation callback = ProfileOperatio… [all …]
|
D | number_speculative_lowering.cpp | 107 [[maybe_unused]] GateRef left = acc_.GetValueIn(gate, 0); in VisitTypedBinaryOp() local 109 ASSERT(acc_.IsConstantUndefined(left) || acc_.IsConstantUndefined(right)); in VisitTypedBinaryOp() 244 GateRef left = acc_.GetValueIn(gate, 0); in VisitNumberCalculate() local 257 result = CalculateInts<Op>(left, right); // int op int in VisitNumberCalculate() 261 result = CalculateDoubles<Op>(left, right); // float op float in VisitNumberCalculate() 271 GateRef left = acc_.GetValueIn(gate, 0); in VisitNumberCompare() local 287 result = CompareInts<Op>(left, right); // int op int in VisitNumberCompare() 289 result = CompareDoubles<Op>(left, right); // float op float in VisitNumberCompare() 299 GateRef left = acc_.GetValueIn(gate, 0); in VisitNumberShift() local 301 GateRef result = ShiftInts<Op>(left, right); // int op int in VisitNumberShift() [all …]
|
D | operations_stub_builder.cpp | 22 GateRef OperationsStubBuilder::Equal(GateRef glue, GateRef left, GateRef right, ProfileOperation ca… in Equal() argument 30 result = FastEqual(left, right, callback); in Equal() 35 result = CallRuntime(glue, RTSTUB_ID(Eq), { left, right }); in Equal() 44 GateRef OperationsStubBuilder::NotEqual(GateRef glue, GateRef left, GateRef right, ProfileOperation… in NotEqual() argument 52 result = FastEqual(left, right, callback); in NotEqual() 59 result = CallRuntime(glue, RTSTUB_ID(NotEq), { left, right }); in NotEqual() 84 GateRef OperationsStubBuilder::StrictEqual(GateRef glue, GateRef left, GateRef right, ProfileOperat… in StrictEqual() argument 92 Branch(FastStrictEqual(glue, left, right, callback), &exit, ¬StrictEqual); in StrictEqual() 104 GateRef OperationsStubBuilder::StrictNotEqual(GateRef glue, GateRef left, GateRef right, ProfileOpe… in StrictNotEqual() argument 112 Branch(FastStrictEqual(glue, left, right, callback), &strictEqual, &exit); in StrictNotEqual() [all …]
|
D | number_speculative_lowering.h | 70 GateRef CalculateInts(GateRef left, GateRef right); 72 GateRef CalculateDoubles(GateRef left, GateRef right); 74 GateRef CompareInts(GateRef left, GateRef right); 76 GateRef CompareDoubles(GateRef left, GateRef right); 78 GateRef ShiftInts(GateRef left, GateRef right); 80 GateRef LogicalInts(GateRef left, GateRef right);
|
/arkcompiler/ets_runtime/ecmascript/interpreter/ |
D | fast_runtime_stub-inl.h | 38 JSTaggedValue FastRuntimeStub::FastMul(JSTaggedValue left, JSTaggedValue right) in FastMul() argument 40 if (left.IsNumber() && right.IsNumber()) { in FastMul() 41 return JSTaggedValue(left.GetNumber() * right.GetNumber()); in FastMul() 47 JSTaggedValue FastRuntimeStub::FastDiv(JSTaggedValue left, JSTaggedValue right) in FastDiv() argument 49 if (left.IsNumber() && right.IsNumber()) { in FastDiv() 50 double dLeft = left.IsInt() ? left.GetInt() : left.GetDouble(); in FastDiv() 66 JSTaggedValue FastRuntimeStub::FastMod(JSTaggedValue left, JSTaggedValue right) in FastMod() argument 68 if (right.IsInt() && left.IsInt()) { in FastMod() 70 int iLeft = left.GetInt(); in FastMod() 75 if (left.IsNumber() && right.IsNumber()) { in FastMod() [all …]
|
D | fast_runtime_stub.h | 30 static inline JSTaggedValue FastMul(JSTaggedValue left, JSTaggedValue right); 31 static inline JSTaggedValue FastDiv(JSTaggedValue left, JSTaggedValue right); 32 static inline JSTaggedValue FastMod(JSTaggedValue left, JSTaggedValue right); 33 static inline JSTaggedValue FastEqual(JSTaggedValue left, JSTaggedValue right); 35 static inline JSTaggedValue FastStrictEqual(JSTaggedValue left, JSTaggedValue right);
|
D | slow_runtime_stub.h | 40 static JSTaggedValue Add2(JSThread *thread, JSTaggedValue left, JSTaggedValue right); 41 static JSTaggedValue Sub2(JSThread *thread, JSTaggedValue left, JSTaggedValue right); 42 static JSTaggedValue Mul2(JSThread *thread, JSTaggedValue left, JSTaggedValue right); 43 static JSTaggedValue Div2(JSThread *thread, JSTaggedValue left, JSTaggedValue right); 44 static JSTaggedValue Mod2(JSThread *thread, JSTaggedValue left, JSTaggedValue right); 45 static JSTaggedValue Eq(JSThread *thread, JSTaggedValue left, JSTaggedValue right); 46 static JSTaggedValue NotEq(JSThread *thread, JSTaggedValue left, JSTaggedValue right); 47 static JSTaggedValue Less(JSThread *thread, JSTaggedValue left, JSTaggedValue right); 48 static JSTaggedValue LessEq(JSThread *thread, JSTaggedValue left, JSTaggedValue right); 49 static JSTaggedValue Greater(JSThread *thread, JSTaggedValue left, JSTaggedValue right); [all …]
|
/arkcompiler/ets_runtime/ecmascript/ic/ |
D | ic_binary_op.h | 36 static inline JSTaggedValue AddWithTSType(JSThread *thread, JSTaggedValue left, in AddWithTSType() argument 44 double a0Double = left.IsInt() ? left.GetInt() : left.GetDouble(); in AddWithTSType() 51 JSHandle<JSTaggedValue> leftValue(thread, left); in AddWithTSType() 68 … JSHandle<EcmaString> stringA0 = JSHandle<EcmaString>(JSHandle<JSTaggedValue>(thread, left)); in AddWithTSType() 76 JSHandle<JSTaggedValue> leftValue(thread, left); in AddWithTSType() 78 if (left.IsString()) { in AddWithTSType() 96 JSTaggedValue res = SlowRuntimeStub::Add2(thread, left, right); in AddWithTSType() 106 static inline JSTaggedValue SubWithTSType(JSThread *thread, JSTaggedValue left, in SubWithTSType() argument 114 double a0Double = left.IsInt() ? left.GetInt() : left.GetDouble(); in SubWithTSType() 121 JSHandle<JSTaggedValue> leftValue(thread, left); in SubWithTSType() [all …]
|
D | ic_compare_op.cpp | 29 JSTaggedValue CompareOp::EqualWithIC(JSThread* thread, JSTaggedValue left, in EqualWithIC() argument 38 leftDouble = left.GetNumber(); in EqualWithIC() 44 JSTaggedValue temp = left; in EqualWithIC() 45 left = right; in EqualWithIC() 50 JSHandle<JSTaggedValue> leftHandle(thread, left); in EqualWithIC() 59 JSTaggedValue temp = left; in EqualWithIC() 60 left = right; in EqualWithIC() 65 leftDouble = left.GetNumber(); in EqualWithIC() 73 JSTaggedValue temp = left; in EqualWithIC() 74 left = right; in EqualWithIC() [all …]
|
D | ic_compare_op.h | 56 static JSTaggedValue EqualWithIC(JSThread* thread, JSTaggedValue left, 59 static JSTaggedValue NotEqualWithIC(JSThread *thread, JSTaggedValue left, 62 static ComparisonResult Compare(JSThread *thread, JSTaggedValue left, 65 static JSTaggedValue LessWithIC(JSThread *thread, JSTaggedValue left, 68 static JSTaggedValue LessEqWithIC(JSThread *thread, JSTaggedValue left, 71 static JSTaggedValue GreaterWithIC(JSThread *thread, JSTaggedValue left, 74 static JSTaggedValue GreaterEqWithIC(JSThread *thread, JSTaggedValue left,
|
/arkcompiler/ets_runtime/test/typeinfer/automatedcases/ |
D | numberOnLeftSideOfInExpression.ts | 21 let left: number; 22 AssertType(left, "number"); 27 left in right; 28 AssertType(left in right, "boolean"); 29 AssertType(left, "number");
|
D | genericTypeAliases.ts | 21 type Tree<T> = T | { left: Tree<T>, right: Tree<T> }; 25 AssertType({ left: { left: 0, right: { left: 1, right: 2 … 27 left: { 28 AssertType(left, "{ left: number; right: { left: number; right: number; }; }"); 29 AssertType({ left: 0, right: { left: 1, right: 2 }, }… 31 left: 0, 32 AssertType(left, "number"); 37 AssertType({ left: 1, right: 2 }, "{ left: number; right: number; }"); 39 left: 1, 40 AssertType(left, "number");
|
D | genericFunctionsAndConditionalInference.ts | 60 left: A property 75 const left: Ops<"left"> = {} as any constant 76 AssertType(left, "Ops<"left">"); 107 const leftOk = ok(left) 109 AssertType(ok(left), "{ lr: string; }"); 111 AssertType(left, "Ops<"left">"); 113 const leftOrphaned = orphaned(left) 115 AssertType(orphaned(left), "{ lr: string; }"); 117 AssertType(left, "Ops<"left">");
|
/arkcompiler/ets_frontend/ts2panda/tests/utils/ |
D | base.ts | 67 function isSameOperandType(left: OperandType, right: OperandType): boolean { 68 return (left.constructor === right.constructor); 78 function basicOperandsEqual(left: OperandType, right: OperandType): boolean { 79 if (!isSameOperandType(left, right)) { 83 if (isVReg(left) && isVReg(right)) { 87 if (isImm(left) && isImm(right)) { 88 return left.value === right.value; 91 if (isLabel(left) && isLabel(right)) { 95 if (isId(left) && isId(right)) { 97 return left === right; [all …]
|
/arkcompiler/ets_frontend/es2panda/test/parser/js/ |
D | test-nullish-coalescing-expected.txt | 9 "left": { 12 "left": { 92 "left": { 95 "left": { 175 "left": { 192 "left": { 258 "left": { 275 "left": { 341 "left": { 344 "left": { [all …]
|
D | test-logical-expression-expected.txt | 9 "left": { 64 "left": { 119 "left": { 122 "left": { 202 "left": { 219 "left": { 285 "left": { 288 "left": { 291 "left": { 333 "left": { [all …]
|
D | test-binary-expression-expected.txt | 9 "left": { 64 "left": { 119 "left": { 174 "left": { 229 "left": { 284 "left": { 339 "left": { 394 "left": { 449 "left": { 504 "left": { [all …]
|
D | test-grouping-level-expected.txt | 9 "left": { 26 "left": { 43 "left": { 120 "left": { 123 "left": { 126 "left": { 143 "left": { 196 "left": { 287 "left": { 290 "left": { [all …]
|
D | test-assignment-expression-expected.txt | 9 "left": { 26 "left": { 92 "left": { 147 "left": { 202 "left": { 257 "left": { 312 "left": { 367 "left": { 422 "left": { 477 "left": { [all …]
|
D | test-do-while-expected.txt | 11 "left": { 64 "left": { 121 "left": { 174 "left": { 234 "left": { 299 "left": { 359 "left": { 424 "left": { 481 "left": { 607 "left": {
|
D | invalid-left-hand-side-in-prefix-operation-expected.txt | 1 SyntaxError: Invalid left-hand side operator. [invalid-left-hand-side-in-prefix-operation.js:17:5]
|
/arkcompiler/runtime_core/libark_defect_scan_aux/tests/ |
D | test_helper.h | 25 inline static void ExpectEqual(const T1 &left, const T2 &right) in ExpectEqual() argument 27 if (left != static_cast<T1>(right)) { in ExpectEqual() 34 inline static void ExpectNotEqual(const T1 &left, const T2 &right) in ExpectNotEqual() argument 36 if (left == static_cast<T2>(right)) { in ExpectNotEqual()
|
/arkcompiler/ets_frontend/es2panda/ir/ts/ |
D | tsEnumDeclaration.cpp | 154 binder::EnumMemberResult left = in EvaluateBinaryExpression() local 158 if (std::holds_alternative<double>(left) && std::holds_alternative<double>(right)) { in EvaluateBinaryExpression() 161 … return static_cast<double>(ToUInt(std::get<double>(left)) | ToUInt(std::get<double>(right))); in EvaluateBinaryExpression() 164 … return static_cast<double>(ToUInt(std::get<double>(left)) & ToUInt(std::get<double>(right))); in EvaluateBinaryExpression() 167 … return static_cast<double>(ToUInt(std::get<double>(left)) ^ ToUInt(std::get<double>(right))); in EvaluateBinaryExpression() 170 … return static_cast<double>(ToInt(std::get<double>(left)) << ToUInt(std::get<double>(right))); in EvaluateBinaryExpression() 173 … return static_cast<double>(ToInt(std::get<double>(left)) >> ToUInt(std::get<double>(right))); in EvaluateBinaryExpression() 176 … return static_cast<double>(ToUInt(std::get<double>(left)) >> ToUInt(std::get<double>(right))); in EvaluateBinaryExpression() 179 return std::get<double>(left) + std::get<double>(right); in EvaluateBinaryExpression() 182 return std::get<double>(left) - std::get<double>(right); in EvaluateBinaryExpression() [all …]
|
/arkcompiler/ets_frontend/es2panda/ir/expressions/ |
D | assignmentExpression.h | 35 …explicit AssignmentExpression(Expression *left, Expression *right, lexer::TokenType assignmentOper… in AssignmentExpression() argument 36 : AssignmentExpression(AstNodeType::ASSIGNMENT_EXPRESSION, left, right, assignmentOperator) in AssignmentExpression() 40 explicit AssignmentExpression(AstNodeType type, Expression *left, Expression *right, in AssignmentExpression() argument 42 : Expression(type), left_(left), right_(right), operator_(assignmentOperator) in AssignmentExpression()
|
/arkcompiler/runtime_core/scripts/ |
D | memusage.py | 175 for left, right in zip(memusage, reports.pop(0)): 176 left.size = left.size + right.size 177 left.rss = left.rss + right.rss 178 left.pss = left.pss + right.pss
|