Home
last modified time | relevance | path

Searched refs:left (Results 1 - 25 of 164) sorted by relevance

1234567

/arkcompiler/ets_runtime/ecmascript/compiler/
H A Doperations_stub_builder.h37 GateRef Equal(GateRef glue, GateRef left, GateRef right, ProfileOperation callback = ProfileOperation());
38 GateRef NotEqual(GateRef glue, GateRef left, GateRef right, ProfileOperation callback = ProfileOperation());
39 GateRef StrictEqual(GateRef glue, GateRef left, GateRef right, ProfileOperation callback = ProfileOperation());
40 GateRef StrictNotEqual(GateRef glue, GateRef left, GateRef right, ProfileOperation callback = ProfileOperation());
41 GateRef Less(GateRef glue, GateRef left, GateRef right, ProfileOperation callback = ProfileOperation());
42 GateRef LessEq(GateRef glue, GateRef left, GateRef right, ProfileOperation callback = ProfileOperation());
43 GateRef Greater(GateRef glue, GateRef left, GateRef right, ProfileOperation callback = ProfileOperation());
44 GateRef GreaterEq(GateRef glue, GateRef left, GateRef right, ProfileOperation callback = ProfileOperation());
45 GateRef Add(GateRef glue, GateRef left, GateRef right, ProfileOperation callback = ProfileOperation());
46 GateRef Sub(GateRef glue, GateRef left, GateRe
[all...]
H A Dconstant_folding.cpp78 auto left = acc_.GetValueIn(gate, 0); in VisitSMOD() local
80 if (!IsInt32Type(gate) || !IsInt32Type(left) || !IsInt32Type(right)) { in VisitSMOD()
85 if (IsConstant(left) && IsConstant(right)) { in VisitSMOD()
86 int lvalue = acc_.GetInt32FromConstant(left); in VisitSMOD()
97 auto left = acc_.GetValueIn(gate, 0); in VisitUMOD() local
99 if (!IsInt32Type(gate) || !IsInt32Type(left) || !IsInt32Type(right)) { in VisitUMOD()
104 if (IsConstant(left) && IsConstant(right)) { in VisitUMOD()
105 int lvalue = acc_.GetInt32FromConstant(left); in VisitUMOD()
116 auto left = acc_.GetValueIn(gate, 0); in VisitADD() local
118 if (!IsInt32Type(gate) || !IsInt32Type(left) || !IsInt32Typ in VisitADD()
133 auto left = acc_.GetValueIn(gate, 0); VisitSUB() local
150 auto left = acc_.GetValueIn(gate, 0); VisitMUL() local
[all...]
H A Dts_hcr_opt_pass.cpp72 GateRef left = acc_.GetValueIn(gate, 0); in VisitStringEqual() local
74 if (acc_.IsConstString(left) && acc_.IsConstString(right)) { in VisitStringEqual()
75 return ConvertStringEqualToConst(left, right); in VisitStringEqual()
78 if (IsSingleCharString(left) && IsSingleCharString(right)) { in VisitStringEqual()
79 return ConvertToSingleCharComparison(left, right); in VisitStringEqual()
82 if (IsNotLoadStrOrStringLoadElement(left) || IsNotLoadStrOrStringLoadElement(right)) { in VisitStringEqual()
86 if (IsSingleCharString(left) || IsSingleCharString(right)) { in VisitStringEqual()
93 GateRef TSHCROptPass::ConvertStringEqualToConst(GateRef left, GateRef right) in ConvertStringEqualToConst() argument
95 uint32_t leftId = acc_.GetStringIdFromLdaStrGate(left); in ConvertStringEqualToConst()
98 auto leftMethodOffset = acc_.TryGetMethodOffset(left); in ConvertStringEqualToConst()
153 ConvertToSingleCharComparison(GateRef left, GateRef right) ConvertToSingleCharComparison() argument
[all...]
H A Dnumber_speculative_lowering.cpp297 GateRef left = acc_.GetValueIn(gate, 0); in VisitNumberCalculate() local
304 result = CalculateInts<Op>(left, right); // int op int in VisitNumberCalculate()
308 result = CalculateDoubles<Op>(left, right); // float op float in VisitNumberCalculate()
318 GateRef left = acc_.GetValueIn(gate, 0); in VisitNumberCompare() local
325 result = CompareInts<Op>(left, right); // int op int in VisitNumberCompare()
327 result = CompareDoubles<Op>(left, right); // float op float in VisitNumberCompare()
337 GateRef left = acc_.GetValueIn(gate, 0); in VisitNumberShift() local
339 GateRef result = ShiftInts<Op>(left, right); // int op int in VisitNumberShift()
349 GateRef left = acc_.GetValueIn(gate, 0); in VisitNumberLogical() local
351 GateRef result = LogicalInts<Op>(left, righ in VisitNumberLogical()
360 GateRef left = acc_.GetValueIn(gate, 0); VisitNumberDiv() local
381 GateRef left = acc_.GetValueIn(gate, 0); VisitNumberMod() local
474 GateRef left = acc_.GetValueIn(gate, 0); VisitUndefinedStrictEqOrUndefinedStrictNotEq() local
493 GateRef left = acc_.GetValueIn(gate, 0); VisitUndefinedEqOrUndefinedNotEq() local
662 CalculateInts(GateRef left, GateRef right) CalculateInts() argument
702 CalculateDoubles(GateRef left, GateRef right) CalculateDoubles() argument
722 CompareInts(GateRef left, GateRef right) CompareInts() argument
753 CompareDoubles(GateRef left, GateRef right) CompareDoubles() argument
794 ShiftInts(GateRef left, GateRef right) ShiftInts() argument
827 LogicalInts(GateRef left, GateRef right) LogicalInts() argument
945 GateRef left = acc_.GetValueIn(gate, 0); VisitStringCompare() local
960 GateRef left = acc_.GetValueIn(gate, 0); VisitStringAdd() local
[all...]
H A Doperations_stub_builder.cpp22 GateRef OperationsStubBuilder::Equal(GateRef glue, GateRef left, GateRef right, ProfileOperation callback) in Equal() argument
31 result = FastEqual(glue, left, right, callback); in Equal()
36 result = CallRuntime(glue, RTSTUB_ID(Eq), { left, right }); in Equal()
61 GateRef OperationsStubBuilder::NotEqual(GateRef glue, GateRef left, GateRef right, ProfileOperation callback) in NotEqual() argument
69 result = FastEqual(glue, left, right, callback); in NotEqual()
76 result = CallRuntime(glue, RTSTUB_ID(NotEq), { left, right }); in NotEqual()
103 GateRef OperationsStubBuilder::StrictEqual(GateRef glue, GateRef left, GateRef right, ProfileOperation callback) in StrictEqual() argument
112 BRANCH(FastStrictEqual(glue, left, right, callback), &strictEqual, &notStrictEqual); in StrictEqual()
130 GateRef OperationsStubBuilder::StrictNotEqual(GateRef glue, GateRef left, GateRef right, ProfileOperation callback) in StrictNotEqual() argument
139 BRANCH(FastStrictEqual(glue, left, righ in StrictNotEqual()
157 Less(GateRef glue, GateRef left, GateRef right, ProfileOperation callback) Less() argument
264 LessEq(GateRef glue, GateRef left, GateRef right, ProfileOperation callback) LessEq() argument
371 Greater(GateRef glue, GateRef left, GateRef right, ProfileOperation callback) Greater() argument
477 GreaterEq(GateRef glue, GateRef left, GateRef right, ProfileOperation callback) GreaterEq() argument
584 Add(GateRef glue, GateRef left, GateRef right, ProfileOperation callback) Add() argument
605 Sub(GateRef glue, GateRef left, GateRef right, ProfileOperation callback) Sub() argument
626 Mul(GateRef glue, GateRef left, GateRef right, ProfileOperation callback) Mul() argument
647 Div(GateRef glue, GateRef left, GateRef right, ProfileOperation callback) Div() argument
668 Mod(GateRef glue, GateRef left, GateRef right, ProfileOperation callback) Mod() argument
689 Shl(GateRef glue, GateRef left, GateRef right, ProfileOperation callback) Shl() argument
779 Shr(GateRef glue, GateRef left, GateRef right, ProfileOperation callback) Shr() argument
884 Ashr(GateRef glue, GateRef left, GateRef right, ProfileOperation callback) Ashr() argument
974 And(GateRef glue, GateRef left, GateRef right, ProfileOperation callback) And() argument
1063 Or(GateRef glue, GateRef left, GateRef right, ProfileOperation callback) Or() argument
1152 Xor(GateRef glue, GateRef left, GateRef right, ProfileOperation callback) Xor() argument
[all...]
H A Dnumber_speculative_lowering.h83 GateRef CalculateInts(GateRef left, GateRef right);
85 GateRef CalculateDoubles(GateRef left, GateRef right);
87 GateRef CompareInts(GateRef left, GateRef right);
89 GateRef CompareDoubles(GateRef left, GateRef right);
91 GateRef ShiftInts(GateRef left, GateRef right);
93 GateRef LogicalInts(GateRef left, GateRef right);
/arkcompiler/ets_runtime/ecmascript/ic/
H A Dic_binary_op.h36 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
139 MulWithTSType(JSThread *thread, JSTaggedValue left, JSTaggedValue right, JSTaggedValue argType) MulWithTSType() argument
174 DivWithTSType(JSThread *thread, JSTaggedValue left, JSTaggedValue right, JSTaggedValue argType) DivWithTSType() argument
210 ModWithTSType(JSThread *thread, JSTaggedValue left, JSTaggedValue right, JSTaggedValue argType) ModWithTSType() argument
257 GetBitOPDate(JSThread *thread, JSTaggedValue left, JSTaggedValue right, int32_t &opNumber0, int32_t &opNumber1, BinaryType opType) GetBitOPDate() argument
294 ShlWithTSType(JSThread *thread, JSTaggedValue left, JSTaggedValue right, JSTaggedValue argType) ShlWithTSType() argument
310 ShrWithTSType(JSThread *thread, JSTaggedValue left, JSTaggedValue right, JSTaggedValue argType) ShrWithTSType() argument
324 AshrWithTSType(JSThread *thread, JSTaggedValue left, JSTaggedValue right, JSTaggedValue argType) AshrWithTSType() argument
340 AndWithTSType(JSThread *thread, JSTaggedValue left, JSTaggedValue right, JSTaggedValue argType) AndWithTSType() argument
353 OrWithTSType(JSThread *thread, JSTaggedValue left, JSTaggedValue right, JSTaggedValue argType) OrWithTSType() argument
366 XorWithTSType(JSThread *thread, JSTaggedValue left, JSTaggedValue right, JSTaggedValue argType) XorWithTSType() argument
[all...]
H A Dic_compare_op.cpp21 JSTaggedValue CompareOp::EqualWithIC(JSThread* thread, JSTaggedValue left, in EqualWithIC() argument
30 leftDouble = left.GetNumber(); in EqualWithIC()
36 JSTaggedValue temp = left; in EqualWithIC()
37 left = right; in EqualWithIC()
42 JSHandle<JSTaggedValue> leftHandle(thread, left); in EqualWithIC()
51 JSTaggedValue temp = left; in EqualWithIC()
52 left = right; in EqualWithIC()
57 leftDouble = left.GetNumber(); in EqualWithIC()
65 JSTaggedValue temp = left; in EqualWithIC()
66 left in EqualWithIC()
206 NotEqualWithIC(JSThread *thread, JSTaggedValue left, JSTaggedValue right, CompareOpType operationType) NotEqualWithIC() argument
214 Compare(JSThread *thread, JSTaggedValue left, JSTaggedValue right, CompareOpType operationType) Compare() argument
425 LessWithIC(JSThread *thread, JSTaggedValue left, JSTaggedValue right, CompareOpType operationType) LessWithIC() argument
434 LessEqWithIC(JSThread *thread, JSTaggedValue left, JSTaggedValue right, CompareOpType operationType) LessEqWithIC() argument
443 GreaterWithIC(JSThread *thread, JSTaggedValue left, JSTaggedValue right, CompareOpType operationType) GreaterWithIC() argument
452 GreaterEqWithIC(JSThread *thread, JSTaggedValue left, JSTaggedValue right, CompareOpType operationType) GreaterEqWithIC() argument
[all...]
H A Dic_compare_op.h56 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/ecmascript/interpreter/
H A Dfast_runtime_stub-inl.h39 JSTaggedValue FastRuntimeStub::FastMul(JSTaggedValue left, JSTaggedValue right) in FastMul() argument
41 if (left.IsNumber() && right.IsNumber()) { in FastMul()
42 return JSTaggedValue(left.GetNumber() * right.GetNumber()); in FastMul()
48 JSTaggedValue FastRuntimeStub::FastDiv(JSTaggedValue left, JSTaggedValue right) in FastDiv() argument
50 if (left.IsNumber() && right.IsNumber()) { in FastDiv()
51 double dLeft = left.IsInt() ? left.GetInt() : left.GetDouble(); in FastDiv()
67 JSTaggedValue FastRuntimeStub::FastMod(JSTaggedValue left, JSTaggedValue right) in FastMod() argument
69 if (right.IsInt() && left in FastMod()
90 FastEqual(JSTaggedValue left, JSTaggedValue right) FastEqual() argument
123 FastStrictEqual(JSTaggedValue left, JSTaggedValue right) FastStrictEqual() argument
[all...]
H A Dfast_runtime_stub.h31 static inline JSTaggedValue FastMul(JSTaggedValue left, JSTaggedValue right);
32 static inline JSTaggedValue FastDiv(JSTaggedValue left, JSTaggedValue right);
33 static inline JSTaggedValue FastMod(JSTaggedValue left, JSTaggedValue right);
34 static inline JSTaggedValue FastEqual(JSTaggedValue left, JSTaggedValue right);
36 static inline JSTaggedValue FastStrictEqual(JSTaggedValue left, JSTaggedValue right);
/arkcompiler/ets_frontend/ets2panda/checker/ets/
H A Darithmetic.cpp20 static inline void RepairTypeErrorsInOperands(Type **left, Type **right) in RepairTypeErrorsInOperands() argument
22 if (IsTypeError(*left)) { in RepairTypeErrorsInOperands()
23 *left = *right; in RepairTypeErrorsInOperands()
26 *right = *left; in RepairTypeErrorsInOperands()
130 Type *ETSChecker::HandleRelationOperationOnTypes(Type *left, Type *right, lexer::TokenType operationType) in HandleRelationOperationOnTypes() argument
132 ASSERT(left->HasTypeFlag(TypeFlag::CONSTANT | TypeFlag::ETS_CONVERTIBLE_TO_NUMERIC) && in HandleRelationOperationOnTypes()
135 if (left->IsDoubleType() || right->IsDoubleType()) { in HandleRelationOperationOnTypes()
136 return PerformRelationOperationOnTypes<DoubleType>(left, right, operationType); in HandleRelationOperationOnTypes()
139 if (left->IsFloatType() || right->IsFloatType()) { in HandleRelationOperationOnTypes()
140 return PerformRelationOperationOnTypes<FloatType>(left, righ in HandleRelationOperationOnTypes()
150 CheckBinaryOperatorForBigInt(Type *left, Type *right, lexer::TokenType op) CheckBinaryOperatorForBigInt() argument
179 CheckBinaryPlusMultDivOperandsForUnionType(const Type *leftType, const Type *rightType, const ir::Expression *left, const ir::Expression *right) CheckBinaryPlusMultDivOperandsForUnionType() argument
413 CheckBinaryOperatorLogical(ir::Expression *left, ir::Expression *right, ir::Expression *expr, lexer::SourcePosition pos, checker::Type *leftType, checker::Type *rightType, Type *unboxedL, Type *unboxedR) CheckBinaryOperatorLogical() argument
497 CheckBinaryOperatorStrictEqual(ir::Expression *left, lexer::TokenType operationType, lexer::SourcePosition pos, checker::Type *leftType, checker::Type *rightType) CheckBinaryOperatorStrictEqual() argument
561 CheckBinaryOperatorEqual(ir::Expression *left, ir::Expression *right, lexer::TokenType operationType, lexer::SourcePosition pos, checker::Type *leftType, checker::Type *rightType, Type *unboxedL, Type *unboxedR) CheckBinaryOperatorEqual() argument
619 CheckBinaryOperatorEqualDynamic(ir::Expression *left, ir::Expression *right, lexer::SourcePosition pos) CheckBinaryOperatorEqualDynamic() argument
651 CheckBinaryOperatorLessGreater(ir::Expression *left, ir::Expression *right, lexer::TokenType operationType, lexer::SourcePosition pos, bool isEqualOp, checker::Type *leftType, checker::Type *rightType, Type *unboxedL, Type *unboxedR) CheckBinaryOperatorLessGreater() argument
754 CheckBinaryOperatorNullishCoalescing(ir::Expression *left, ir::Expression *right, lexer::SourcePosition pos) CheckBinaryOperatorNullishCoalescing() argument
829 ir::Expression *left; global() member
848 ir::Expression *left = binaryParams.left; CheckBinaryOperatorHelper() local
971 CheckRelationalOperatorsBetweenEnums(ir::Expression *left, ir::Expression *right, lexer::TokenType op) CheckRelationalOperatorsBetweenEnums() argument
1046 CheckBinaryOperator(ir::Expression *left, ir::Expression *right, ir::Expression *expr, lexer::TokenType operationType, lexer::SourcePosition pos, bool forcePromotion) CheckBinaryOperator() argument
1103 HandleArithmeticOperationOnTypes(Type *left, Type *right, lexer::TokenType operationType) HandleArithmeticOperationOnTypes() argument
1123 HandleBitwiseOperationOnTypes(Type *left, Type *right, lexer::TokenType operationType) HandleBitwiseOperationOnTypes() argument
[all...]
/arkcompiler/ets_frontend/ets2panda/ast_verifier/
H A DforLoopCorrectlyInitialized.cpp41 auto const *left = ast->AsForInStatement()->Left(); in HandleForInStatement() local
42 if (left == nullptr) { in HandleForInStatement()
47 if (!left->IsIdentifier() && !left->IsVariableDeclaration()) { in HandleForInStatement()
57 auto const *left = ast->AsForOfStatement()->Left(); in HandleForOfStatement() local
58 if (left == nullptr) { in HandleForOfStatement()
63 if (!left->IsIdentifier() && !left->IsVariableDeclaration()) { in HandleForOfStatement()
/arkcompiler/runtime_core/static_core/platforms/windows/libpandabase/
H A Dmem_hooks.cpp72 std::cout << std::left << std::setfill(' ') << std::setw(ALIGN_SIZE) << "alloc type"; in PandaAllocHook()
73 std::cout << std::left << std::setfill(' ') << std::setw(ALIGN_SIZE) << "block type"; in PandaAllocHook()
74 std::cout << std::left << std::setfill(' ') << std::setw(ALIGN_SIZE) << "size"; in PandaAllocHook()
75 std::cout << std::left << std::setfill(' ') << std::setw(ALIGN_SIZE) << "filename"; in PandaAllocHook()
76 std::cout << std::left << std::setfill(' ') << std::setw(ALIGN_SIZE) << "linenumber" << std::endl; in PandaAllocHook()
83 std::cout << std::left << std::setfill(' ') << std::setw(ALIGN_SIZE) << alloctypeName; in PandaAllocHook()
84 std::cout << std::left << std::setfill(' ') << std::setw(ALIGN_SIZE) << blocktypeName; in PandaAllocHook()
85 std::cout << std::left << std::setfill(' ') << std::setw(ALIGN_SIZE) << static_cast<int>(size); in PandaAllocHook()
86 std::cout << std::left << std::setfill(' ') << std::setw(ALIGN_SIZE) << filename; in PandaAllocHook()
87 std::cout << std::left << st in PandaAllocHook()
[all...]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/tests/checked/js_call/
H A Djs_call.js36 left;
39 constructor(value, left, right) {
41 this.left = left;
47 if (this.left) {
48 res += this.left.sum();
/arkcompiler/runtime_core/libpandafile/
H A Ddata_protect.h258 uint32_t left = 0; in CompareStringWithPacedString() local
259 while (left < len) { in CompareStringWithPacedString()
260 uint32_t right = left + step; in CompareStringWithPacedString()
263 while (left < right) { in CompareStringWithPacedString()
265 temp_data += (left < len ? str[left] : 0); in CompareStringWithPacedString()
266 ++left; in CompareStringWithPacedString()
306 uint32_t left = 0; in AppendWithoutCheckBack() local
309 while (left < len) { in AppendWithoutCheckBack()
310 uint32_t right = left in AppendWithoutCheckBack()
[all...]
/arkcompiler/ets_frontend/ets2panda/compiler/lowering/ets/
H A DbigintLowering.cpp53 auto left = expr->Left()->TsType(); in ReplaceStrictEqualByNormalEqual() local
54 auto isBigintLeft = (left != nullptr && left->IsETSBigIntType()) || expr->Left()->IsBigIntLiteral(); in ReplaceStrictEqualByNormalEqual()
76 auto left = expr->Left()->TsType(); in RemoveConst() local
77 if (left != nullptr && left->IsETSBigIntType()) { in RemoveConst()
78 left->RemoveTypeFlag(checker::TypeFlag::CONSTANT); in RemoveConst()
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/src/cg/
H A Disa.cpp27 bool InsnDesc::IsSame(const InsnDesc &left, std::function<bool(const InsnDesc &left, const InsnDesc &right)> cmp) const in IsSame() argument
29 return cmp == nullptr ? false : cmp(left, *this); in IsSame()
/arkcompiler/runtime_core/static_core/compiler/optimizer/analysis/
H A Dbounds_analysis.cpp44 BoundsRange::BoundsRange(int64_t left, int64_t right, const Inst *inst, [[maybe_unused]] DataType::Type type) in BoundsRange() argument
45 : left_(left), right_(right), lenArray_(inst) in BoundsRange()
48 ASSERT(left <= right); in BoundsRange()
49 ASSERT(GetMin(type) <= left); in BoundsRange()
76 auto left = right_ == MIN_RANGE_VALUE ? MAX_RANGE_VALUE : -right_; in Neg() local
77 return BoundsRange(left, right); in Neg()
91 int64_t left = 0; in Abs() local
94 left = std::min(val1, val2); in Abs()
96 return BoundsRange(left, right); in Abs()
105 auto left in Add() local
120 auto left = AddWithOverflowCheck(left_, negRight); Sub() local
142 auto left = std::min(m1.value(), std::min(m2.value(), std::min(m3.value(), m4.value()))); Mul() local
161 auto left = std::min(m1.value(), m2.value()); Div() local
186 auto left = left_ < 0 ? std::max(left_, -maxMod) : 0; Mod() local
252 auto left = AddWithOverflowCheck(left_, negLeft); Diff() local
618 AddWithOverflowCheck(int64_t left, int64_t right) AddWithOverflowCheck() argument
637 AddWithOverflowCheck(uint64_t left, uint64_t right) AddWithOverflowCheck() argument
650 MulWithOverflowCheck(int64_t left, int64_t right) MulWithOverflowCheck() argument
667 MulWithOverflowCheck(uint64_t left, uint64_t right) MulWithOverflowCheck() argument
680 DivWithOverflowCheck(int64_t left, int64_t right) DivWithOverflowCheck() argument
1088 auto left = lowerRange.GetLeft(); ProcessIndexPhi() local
[all...]
/arkcompiler/ets_frontend/es2panda/ir/ts/
H A DtsEnumDeclaration.cpp154 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) in EvaluateBinaryExpression()
[all...]
/arkcompiler/ets_runtime/test/aottest/js_string_add/
H A Djs_string_add.js39 let left = foo(true);
42 print(left + right1);
43 print(left + right2);
/arkcompiler/ets_frontend/ets2panda/test/unit/public/
H A Dast_builder_test.cpp106 auto left = NumberLiteralBuilder(Allocator()).SetValue("10").Build(); in TEST_F() local
109 .SetLeft(left) in TEST_F()
119 auto left = NumberLiteralBuilder(Allocator()).SetValue("10").Build(); in TEST_F() local
122 .SetLeft(left) in TEST_F()
138 auto left = NumberLiteralBuilder(Allocator()).SetValue("10").Build(); in TEST_F() local
141 .SetLeft(left) in TEST_F()
150 auto left = NumberLiteralBuilder(Allocator()).SetValue("10").Build(); in TEST_F() local
153 .SetLeft(left) in TEST_F()
164 auto left = NumberLiteralBuilder(Allocator()).SetValue("10").Build(); in TEST_F() local
167 .SetLeft(left) in TEST_F()
248 auto left = NumberLiteralBuilder(Allocator()).SetValue("10").Build(); TEST_F() local
261 auto left = NumberLiteralBuilder(Allocator()).SetValue("10").Build(); TEST_F() local
311 auto left = NumberLiteralBuilder(Allocator()).SetValue("10").Build(); TEST_F() local
327 auto left = NumberLiteralBuilder(Allocator()).SetValue("10").Build(); TEST_F() local
405 auto left = NumberLiteralBuilder(Allocator()).SetValue("10").Build(); TEST_F() local
[all...]
/arkcompiler/ets_frontend/es2panda/ir/expressions/
H A DassignmentExpression.h35 explicit AssignmentExpression(Expression *left, Expression *right, lexer::TokenType assignmentOperator) 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/bytecode_optimizer/constant_propagation/
H A Dconstant_propagation.h112 LatticeElement *FoldingConstant(ConstantElement *left, ConstantElement *right, RuntimeInterface::IntrinsicId id);
113 LatticeElement *FoldingCompare(const ConstantElement *left, const ConstantElement *right,
116 LatticeElement *FoldingGreater(const ConstantElement *left, const ConstantElement *right, bool equal = false);
117 LatticeElement *FoldingLess(const ConstantElement *left, const ConstantElement *right, bool equal = false);
118 LatticeElement *FoldingEq(const ConstantElement *left, const ConstantElement *right);
119 LatticeElement *FoldingNotEq(const ConstantElement *left, const ConstantElement *right);
/arkcompiler/ets_runtime/ecmascript/
H A Dtagged_tree.cpp95 JSTaggedValue left = GetLeftChild(parentOfIndex); in LeftRotate() local
96 if (!left.IsHole() && left.GetInt() == index) { // change to isleft in LeftRotate()
111 int left = GetLeftChild(index).GetInt(); in RightRotate() local
112 JSTaggedValue rightOfLeft = GetRightChild(left); in RightRotate()
118 SetParent(thread, left, JSTaggedValue(parentOfIndex)); in RightRotate()
120 SetRootEntries(thread, left); in RightRotate()
124 SetRightChild(thread, parentOfIndex, JSTaggedValue(left)); in RightRotate()
126 SetLeftChild(thread, parentOfIndex, JSTaggedValue(left)); in RightRotate()
129 SetRightChild(thread, left, JSTaggedValu in RightRotate()
157 JSTaggedValue left = tree->GetLeftChild(parent); AdjustTaggedTree() local
586 int left = GetLeftChildIndex(parent); HasValue() local
609 int left = src->GetLeftChildIndex(parent); SetAll() local
[all...]

Completed in 13 milliseconds

1234567