/arkcompiler/ets_frontend/ets2panda/checker/ets/ |
H A D | arithmetic.h | 62 UType leftValue = GetOperand<TargetType>(left); in PerformRelationOperationOnTypes() 68 result = leftValue < rightValue; in PerformRelationOperationOnTypes() 72 result = leftValue <= rightValue; in PerformRelationOperationOnTypes() 76 result = leftValue > rightValue; in PerformRelationOperationOnTypes() 80 result = leftValue >= rightValue; in PerformRelationOperationOnTypes() 84 result = leftValue == rightValue; in PerformRelationOperationOnTypes() 88 result = leftValue != rightValue; in PerformRelationOperationOnTypes() 104 UType leftValue = GetOperand<TargetType>(left); in PerformArithmeticOperationOnTypes() 106 auto result = leftValue; in PerformArithmeticOperationOnTypes() 112 result = leftValue in PerformArithmeticOperationOnTypes() 150 HandleModulo(IntType::UType leftValue, IntType::UType rightValue) HandleModulo() argument 158 HandleModulo(LongType::UType leftValue, LongType::UType rightValue) HandleModulo() argument 166 HandleModulo(FloatType::UType leftValue, FloatType::UType rightValue) HandleModulo() argument 173 HandleModulo( DoubleType::UType leftValue, DoubleType::UType rightValue) HandleModulo() argument [all...] |
H A D | helpers.cpp | 441 auto [resolveLeft, leftValue] = IsResolvedAndValue(expr->Left(), leftType); in HandleBooleanLogicalOperatorsExtended() 450 if (leftValue) { in HandleBooleanLogicalOperatorsExtended() 459 if (leftValue) { in HandleBooleanLogicalOperatorsExtended() 484 UType leftValue = leftType->AsETSBooleanType()->GetValue(); in HandleBooleanLogicalOperators() local 489 return CreateETSBooleanType(leftValue ^ rightValue); in HandleBooleanLogicalOperators() 492 return CreateETSBooleanType((static_cast<uint8_t>(leftValue) & static_cast<uint8_t>(rightValue)) != 0); in HandleBooleanLogicalOperators() 495 return CreateETSBooleanType((static_cast<uint8_t>(leftValue) | static_cast<uint8_t>(rightValue)) != 0); in HandleBooleanLogicalOperators() 498 return CreateETSBooleanType(leftValue || rightValue); in HandleBooleanLogicalOperators() 501 return CreateETSBooleanType(leftValue && rightValue); in HandleBooleanLogicalOperators()
|
/arkcompiler/ets_runtime/ecmascript/ic/ |
H A D | ic_binary_op.h | 51 JSHandle<JSTaggedValue> leftValue(thread, left); in AddWithTSType() 53 JSHandle<JSTaggedValue> primitiveA0(thread, JSTaggedValue::ToPrimitive(thread, leftValue)); in AddWithTSType() 76 JSHandle<JSTaggedValue> leftValue(thread, left); in AddWithTSType() 79 JSHandle<EcmaString> stringA0 = JSHandle<EcmaString>(leftValue); in AddWithTSType() 86 JSHandle<EcmaString> stringA0 = JSTaggedValue::ToString(thread, leftValue); in AddWithTSType() 121 JSHandle<JSTaggedValue> leftValue(thread, left); in SubWithTSType() 123 JSTaggedNumber number0 = JSTaggedValue::ToNumber(thread, leftValue); in SubWithTSType() 151 JSHandle<JSTaggedValue> leftValue(thread, left); in MulWithTSType() 153 // 6. Let lnum be ToNumber(leftValue). in MulWithTSType() 154 JSTaggedNumber primitiveA = JSTaggedValue::ToNumber(thread, leftValue); in MulWithTSType() [all...] |
/arkcompiler/ets_frontend/ets2panda/lexer/regexp/ |
H A D | regexp.cpp | 784 uint32_t leftValue = 0; in ParseBracedQuantifier() local 788 uint32_t newValue = leftValue * MULTIPLIER + DigitValue(Next()); in ParseBracedQuantifier() 789 if (newValue < leftValue) { in ParseBracedQuantifier() 790 leftValue = std::numeric_limits<uint32_t>::max(); in ParseBracedQuantifier() 794 leftValue = newValue; in ParseBracedQuantifier() 819 if (rightValue < leftValue) { in ParseBracedQuantifier()
|
/arkcompiler/ets_frontend/es2panda/lexer/regexp/ |
H A D | regexp.cpp | 763 uint32_t leftValue = 0; in ParseBracedQuantifier() local 767 uint32_t newValue = leftValue * MULTIPLIER + DigitValue(Next()); in ParseBracedQuantifier() 768 if (newValue < leftValue) { in ParseBracedQuantifier() 769 leftValue = std::numeric_limits<uint32_t>::max(); in ParseBracedQuantifier() 773 leftValue = newValue; in ParseBracedQuantifier() 798 if (rightValue < leftValue) { in ParseBracedQuantifier()
|
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/mpl2mpl/include/ |
H A D | constantfold.h | 84 bool ConstValueEqual(int64 leftValue, int64 rightValue) const; 85 bool ConstValueEqual(float leftValue, float rightValue) const; 86 bool ConstValueEqual(double leftValue, double rightValue) const; 88 bool FullyEqual(T leftValue, T rightValue) const;
|
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/mpl2mpl/src/ |
H A D | constantfold.cpp | 522 bool ConstantFold::ConstValueEqual(int64 leftValue, int64 rightValue) const in ConstValueEqual() argument 524 return (leftValue == rightValue); in ConstValueEqual() 527 bool ConstantFold::ConstValueEqual(float leftValue, float rightValue) const in ConstValueEqual() argument 529 auto result = fabs(leftValue - rightValue); in ConstValueEqual() 530 return leftValue <= FLT_MIN && rightValue <= FLT_MIN ? result < FLT_MIN : result <= FLT_MIN; in ConstValueEqual() 533 bool ConstantFold::ConstValueEqual(double leftValue, double rightValue) const in ConstValueEqual() argument 535 auto result = fabs(leftValue - rightValue); in ConstValueEqual() 536 return leftValue <= DBL_MIN && rightValue <= DBL_MIN ? result < DBL_MIN : result <= DBL_MIN; in ConstValueEqual() 540 bool ConstantFold::FullyEqual(T leftValue, T rightValue) const in FullyEqual() argument 542 if (std::isinf(leftValue) in FullyEqual() 554 typename T::value_type leftValue = leftConst->GetValue(); ComparisonResult() local [all...] |
/arkcompiler/ets_runtime/ecmascript/ |
H A D | tagged_node.cpp | 277 JSTaggedValue leftValue = treeNode->GetLeft();
in Balance() local 278 if (!leftValue.IsHole()) {
in Balance() 279 RBTreeNode *leftChild = RBTreeNode::Cast(leftValue.GetTaggedObject());
in Balance() 355 JSTaggedValue leftValue = Delete(thread, leftChildVa, hash, key, oldValue);
in Delete() local 356 treeNode->SetLeft(thread, leftValue);
in Delete()
|
H A D | js_array.cpp | 609 JSMutableHandle<JSTaggedValue> leftValue(thread, JSTaggedValue::Undefined()); in MergeSortedElements() 612 leftValue.Update(leftArray->Get(i)); in MergeSortedElements() 614 int64_t compareRet = base::ArrayHelper::SortCompare(thread, fn, leftValue, rightValue); in MergeSortedElements()
|
/arkcompiler/ets_runtime/ecmascript/interpreter/ |
H A D | slow_runtime_stub.cpp | 127 JSHandle<JSTaggedValue> leftValue(thread, left); in Add2() 129 return RuntimeStubs::RuntimeAdd2(thread, leftValue, rightValue); in Add2() 177 JSHandle<JSTaggedValue> leftValue(thread, left); in Eq() 179 return RuntimeStubs::RuntimeEq(thread, leftValue, rightValue); in Eq() 187 JSHandle<JSTaggedValue> leftValue(thread, left); in NotEq() 189 return RuntimeStubs::RuntimeNotEq(thread, leftValue, rightValue); in NotEq() 197 JSHandle<JSTaggedValue> leftValue(thread, left); in Less() 199 return RuntimeStubs::RuntimeLess(thread, leftValue, rightValue); in Less() 207 JSHandle<JSTaggedValue> leftValue(thread, left); in LessEq() 209 return RuntimeStubs::RuntimeLessEq(thread, leftValue, rightValu in LessEq() [all...] |
/arkcompiler/ets_frontend/ets2panda/checker/ |
H A D | ETSchecker.h | 840 UType HandleModulo(UType leftValue, UType rightValue); 843 Type *HandleBitWiseArithmetic(Type *leftValue, Type *rightValue, lexer::TokenType operationType);
|
/arkcompiler/ets_runtime/ecmascript/stubs/ |
H A D | runtime_stubs-inl.h | 1887 JSHandle<JSTaggedValue> leftValue = JSTaggedValue::ToNumeric(thread, left); in RuntimeShl2() local 1891 if (leftValue->IsBigInt() || rightValue->IsBigInt()) { in RuntimeShl2() 1892 if (leftValue->IsBigInt() && rightValue->IsBigInt()) { in RuntimeShl2() 1893 JSHandle<BigInt> leftBigint(leftValue); in RuntimeShl2() 1899 JSTaggedValue taggedNumber0 = RuntimeToJSTaggedValueWithInt32(thread, leftValue); in RuntimeShl2()
|