/arkcompiler/ets_runtime/ecmascript/ |
H A D | object_operator.h | 32 enum class OperatorType : uint8_t { class 42 OperatorType type = OperatorType::PROTOTYPE_CHAIN); 45 OperatorType type = OperatorType::PROTOTYPE_CHAIN); 48 OperatorType type = OperatorType::PROTOTYPE_CHAIN); 52 OperatorType type = OperatorType::PROTOTYPE_CHAIN); 55 OperatorType typ [all...] |
H A D | object_operator.cpp | 109 void ObjectOperator::StartLookUp(OperatorType type) in StartLookUp() 113 if (type == OperatorType::OWN) { in StartLookUp() 120 void ObjectOperator::StartGlobalLookUp(OperatorType type) in StartGlobalLookUp() 124 if (type == OperatorType::OWN) { in StartGlobalLookUp() 131 ObjectOperator::ObjectOperator(JSThread *thread, const JSHandle<JSTaggedValue> &key, OperatorType type) in ObjectOperator() 141 OperatorType type) in ObjectOperator() 149 const JSHandle<JSTaggedValue> &key, OperatorType type) in ObjectOperator() 157 OperatorType type) in ObjectOperator() 168 OperatorType type) in ObjectOperator() 178 OperatorType typ in ObjectOperator() [all...] |
/arkcompiler/ets_runtime/ecmascript/tests/ |
H A D | object_operator_second_test.cpp | 56 OperatorType type = OperatorType::PROTOTYPE_CHAIN; in HWTEST_F_L0() 62 type = OperatorType::OWN; in HWTEST_F_L0() 75 OperatorType type = OperatorType::PROTOTYPE_CHAIN; in HWTEST_F_L0() 79 type = OperatorType::OWN; in HWTEST_F_L0() 92 OperatorType type = OperatorType::PROTOTYPE_CHAIN; in HWTEST_F_L0() 96 type = OperatorType::OWN; in HWTEST_F_L0() 107 OperatorType typ in HWTEST_F_L0() [all...] |
/arkcompiler/ets_frontend/es2panda/compiler/base/ |
H A D | condition.cpp | 29 switch (binExpr->OperatorType()) { in Compile() 49 pg->Condition(binExpr, binExpr->OperatorType(), lhs, falseLabel); in Compile() 76 expr->AsUnaryExpression()->OperatorType() == lexer::TokenType::PUNCTUATOR_EXCLAMATION_MARK) { in Compile()
|
/arkcompiler/ets_frontend/ets2panda/compiler/base/ |
H A D | condition.cpp | 28 switch (binExpr->OperatorType()) { in CompileBinaryExpr() 48 pg->Condition(binExpr, binExpr->OperatorType(), lhs, falseLabel); in CompileBinaryExpr() 88 expr->AsUnaryExpression()->OperatorType() == lexer::TokenType::PUNCTUATOR_EXCLAMATION_MARK) { in Compile() 205 switch (expr->OperatorType()) { in CompileBinaryExprForBigInt() 240 ASSERT(binExpr->OperatorType() == lexer::TokenType::KEYW_INSTANCEOF); in CompileInstanceofExpr() 251 switch (binExpr->OperatorType()) { in CompileBinaryExpr() 264 etsg->Condition(binExpr, binExpr->OperatorType(), lhs, falseLabel); in CompileBinaryExpr() 293 expr->AsUnaryExpression()->OperatorType() == lexer::TokenType::PUNCTUATOR_EXCLAMATION_MARK) { in Compile()
|
/arkcompiler/ets_frontend/ets2panda/ast_verifier/ |
H A D | arithmeticOperationValid.cpp | 35 if ((ast->AsBinaryExpression()->OperatorType() == lexer::TokenType::PUNCTUATOR_PLUS || in operator ()() 36 ast->AsBinaryExpression()->OperatorType() == lexer::TokenType::PUNCTUATOR_PLUS_EQUAL) && in operator ()()
|
/arkcompiler/ets_frontend/ets2panda/compiler/lowering/ets/ |
H A D | bigintLowering.cpp | 61 if (expr->OperatorType() == lexer::TokenType::PUNCTUATOR_STRICT_EQUAL) { in ReplaceStrictEqualByNormalEqual() 63 } else if (expr->OperatorType() == lexer::TokenType::PUNCTUATOR_NOT_STRICT_EQUAL) { in ReplaceStrictEqualByNormalEqual()
|
H A D | opAssignment.cpp | 148 const auto opEqual = assignment->OperatorType(); in ConstructOpAssignmentResult() 275 std::string opSign = lexer::TokenToString(CombinedOpToOp(upd->OperatorType())); in ConstructUpdateResult() 347 ast->AsAssignmentExpression()->OperatorType() != lexer::TokenType::PUNCTUATOR_SUBSTITUTION) { in Perform() 383 ast->AsAssignmentExpression()->OperatorType() != lexer::TokenType::PUNCTUATOR_SUBSTITUTION) || in Postcondition()
|
H A D | tupleLowering.cpp | 92 checker_->AllocNode<ir::UpdateExpression>(identClone, update_->OperatorType(), update_->IsPrefix()); in GenerateExpressions() 251 checker->AllocNode<ir::AssignmentExpression>(left, tsAsExpression, assignment->OperatorType()); in ConvertTupleAssignment()
|
H A D | stringComparison.cpp | 41 switch (expr->OperatorType()) { in CheckOperatorType()
|
/arkcompiler/ets_frontend/ets2panda/checker/ |
H A D | checkerContext.cpp | 250 auto const operation = parent->AsBinaryExpression()->OperatorType(); 256 if (parent->AsUnaryExpression()->OperatorType() != lexer::TokenType::PUNCTUATOR_EXCLAMATION_MARK) { 293 if (!IsInTestExpression() || unaryExpression->OperatorType() != lexer::TokenType::PUNCTUATOR_EXCLAMATION_MARK) { 317 if (auto const operatorType = binaryExpression->OperatorType(); operatorType == lexer::TokenType::KEYW_INSTANCEOF) { 337 auto const operatorType = binaryExpression->OperatorType();
|
H A D | TSAnalyzer.cpp | 346 switch (expr->OperatorType()) { in CheckAssignmentExprOperatorType() 359 expr->OperatorType()); in CheckAssignmentExprOperatorType() 362 return checker->CheckPlusOperator(&leftRightType, expr->Left(), expr->Right(), expr, expr->OperatorType()); in CheckAssignmentExprOperatorType() 365 checker->CheckAssignmentOperator(expr->OperatorType(), expr->Left(), leftType, rightType); in CheckAssignmentExprOperatorType() 409 if (expr->OperatorType() == lexer::TokenType::PUNCTUATOR_SUBSTITUTION) { in Check() 429 switch (expr->OperatorType()) { in CheckBinaryExprArithmLogical() 441 return checker->CheckBinaryOperator(leftRightType, expr->Left(), expr->Right(), expr, expr->OperatorType()); in CheckBinaryExprArithmLogical() 444 return checker->CheckPlusOperator(leftRightType, expr->Left(), expr->Right(), expr, expr->OperatorType()); in CheckBinaryExprArithmLogical() 470 switch (expr->OperatorType()) { in Check() 474 expr->OperatorType()); in Check() [all...] |
/arkcompiler/ets_frontend/es2panda/ir/expressions/ |
H A D | updateExpression.h | 44 lexer::TokenType OperatorType() const in OperatorType() function in panda::es2panda::panda::es2panda::panda::es2panda::ir::UpdateExpression
|
H A D | unaryExpression.h | 40 lexer::TokenType OperatorType() const in OperatorType() function in panda::es2panda::panda::es2panda::panda::es2panda::ir::UnaryExpression
|
H A D | binaryExpression.h | 64 lexer::TokenType OperatorType() const in OperatorType() function in panda::es2panda::panda::es2panda::panda::es2panda::ir::BinaryExpression
|
H A D | assignmentExpression.h | 66 lexer::TokenType OperatorType() const in OperatorType() function in panda::es2panda::panda::es2panda::panda::es2panda::ir::AssignmentExpression
|
/arkcompiler/ets_frontend/ets2panda/ir/expressions/ |
H A D | updateExpression.h | 45 [[nodiscard]] lexer::TokenType OperatorType() const noexcept
|
H A D | unaryExpression.h | 51 [[nodiscard]] lexer::TokenType OperatorType() const noexcept
|
H A D | assignmentExpression.h | 92 [[nodiscard]] lexer::TokenType OperatorType() const noexcept
|
H A D | binaryExpression.h | 74 [[nodiscard]] lexer::TokenType OperatorType() const noexcept
|
/arkcompiler/ets_frontend/ets2panda/compiler/core/ |
H A D | JSCompiler.cpp | 445 if (expr->OperatorType() == lexer::TokenType::PUNCTUATOR_LOGICAL_AND_EQUAL || in Compile() 446 expr->OperatorType() == lexer::TokenType::PUNCTUATOR_LOGICAL_OR_EQUAL) { in Compile() 450 if (expr->OperatorType() == lexer::TokenType::PUNCTUATOR_SUBSTITUTION) { in Compile() 461 pg->Binary(expr, expr->OperatorType(), lhsReg); in Compile() 485 ASSERT(expr->OperatorType() == lexer::TokenType::PUNCTUATOR_LOGICAL_AND || in CompileLogical() 486 expr->OperatorType() == lexer::TokenType::PUNCTUATOR_LOGICAL_OR || in CompileLogical() 487 expr->OperatorType() == lexer::TokenType::PUNCTUATOR_NULLISH_COALESCING); in CompileLogical() 496 if (expr->OperatorType() == lexer::TokenType::PUNCTUATOR_LOGICAL_AND) { in CompileLogical() 499 } else if (expr->OperatorType() == lexer::TokenType::PUNCTUATOR_LOGICAL_OR) { in CompileLogical() 502 } else if (expr->OperatorType() in CompileLogical() [all...] |
/arkcompiler/ets_frontend/es2panda/ir/ts/ |
H A D | tsEnumDeclaration.cpp | 112 switch (expr->OperatorType()) { in EvaluateUnaryExpression() 159 switch (expr->AsBinaryExpression()->OperatorType()) { in EvaluateBinaryExpression() 205 expr->AsBinaryExpression()->OperatorType() == lexer::TokenType::PUNCTUATOR_PLUS) { in EvaluateBinaryExpression()
|
H A D | tsAsExpression.cpp | 58 lexer::TokenType op = unaryExpr->OperatorType(); in IsValidConstAssertionArgument()
|
/arkcompiler/ets_runtime/ecmascript/ic/tests/ |
H A D | ic_handler_test.cpp | 227 ObjectOperator handleOp1(thread, handleKey, OperatorType::OWN); in HWTEST_F_L0() 228 ObjectOperator handleOp2(thread, handleKey, OperatorType::OWN); in HWTEST_F_L0() 266 ObjectOperator handleOp(thread, handleKey, OperatorType::OWN); in HWTEST_F_L0()
|
/arkcompiler/ets_frontend/ets2panda/checker/ts/ |
H A D | util.cpp | 47 return IsAssignmentOperator(binaryExpr->OperatorType()) && binaryExpr->Left() == parent; in InAssignment()
|