/arkcompiler/ets_runtime/ecmascript/ |
D | object_operator.h | 29 enum class OperatorType : uint8_t { enum 39 OperatorType type = OperatorType::PROTOTYPE_CHAIN); 42 OperatorType type = OperatorType::PROTOTYPE_CHAIN); 45 OperatorType type = OperatorType::PROTOTYPE_CHAIN); 49 OperatorType type = OperatorType::PROTOTYPE_CHAIN); 52 OperatorType type = OperatorType::PROTOTYPE_CHAIN); 55 OperatorType type = OperatorType::PROTOTYPE_CHAIN); 323 void StartLookUp(OperatorType type); 324 void StartGlobalLookUp(OperatorType type);
|
D | object_operator.cpp | 117 void ObjectOperator::StartLookUp(OperatorType type) in StartLookUp() 121 if (type == OperatorType::OWN) { in StartLookUp() 128 void ObjectOperator::StartGlobalLookUp(OperatorType type) in StartGlobalLookUp() 132 if (type == OperatorType::OWN) { in StartGlobalLookUp() 139 ObjectOperator::ObjectOperator(JSThread *thread, const JSHandle<JSTaggedValue> &key, OperatorType t… in ObjectOperator() 149 OperatorType type) in ObjectOperator() 157 const JSHandle<JSTaggedValue> &key, OperatorType type) in ObjectOperator() 165 OperatorType type) in ObjectOperator() 176 OperatorType type) in ObjectOperator() 186 OperatorType type) in ObjectOperator()
|
/arkcompiler/ets_runtime/ecmascript/tests/ |
D | object_operator_second_test.cpp | 79 OperatorType type = OperatorType::PROTOTYPE_CHAIN; in HWTEST_F_L0() 85 type = OperatorType::OWN; in HWTEST_F_L0() 98 OperatorType type = OperatorType::PROTOTYPE_CHAIN; in HWTEST_F_L0() 102 type = OperatorType::OWN; in HWTEST_F_L0() 115 OperatorType type = OperatorType::PROTOTYPE_CHAIN; in HWTEST_F_L0() 119 type = OperatorType::OWN; in HWTEST_F_L0() 130 OperatorType type = OperatorType::PROTOTYPE_CHAIN; in HWTEST_F_L0() 134 type = OperatorType::OWN; in HWTEST_F_L0() 145 OperatorType type = OperatorType::PROTOTYPE_CHAIN; in HWTEST_F_L0() 149 type = OperatorType::OWN; in HWTEST_F_L0() [all …]
|
/arkcompiler/ets_frontend/es2panda/compiler/base/ |
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/ |
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() 244 switch (binExpr->OperatorType()) { in CompileBinaryExpr() 261 etsg->Condition(binExpr, binExpr->OperatorType(), lhs, falseLabel); in CompileBinaryExpr() 286 … expr->AsUnaryExpression()->OperatorType() == lexer::TokenType::PUNCTUATOR_EXCLAMATION_MARK) { in Compile()
|
/arkcompiler/ets_runtime/ecmascript/ic/ |
D | ic_runtime.h | 63 isOwn ? OperatorType::OWN : OperatorType::PROTOTYPE_CHAIN); in ConstructOp()
|
/arkcompiler/ets_frontend/ets2panda/compiler/lowering/ets/ |
D | opAssignment.cpp | 97 const auto opEqual = assignment->OperatorType(); in HandleOpAssignment() 224 … ast->AsAssignmentExpression()->OperatorType() != lexer::TokenType::PUNCTUATOR_SUBSTITUTION) { in Perform() 249 … ast->AsAssignmentExpression()->OperatorType() != lexer::TokenType::PUNCTUATOR_SUBSTITUTION; in Postcondition()
|
D | unionLowering.cpp | 205 ASSERT(expr->OperatorType() == lexer::TokenType::PUNCTUATOR_EQUAL || in GenVariableDeclForBinaryExpr() 206 expr->OperatorType() == lexer::TokenType::PUNCTUATOR_NOT_EQUAL); in GenVariableDeclForBinaryExpr() 273 ASSERT(expr->OperatorType() == lexer::TokenType::PUNCTUATOR_EQUAL || in ProcessOperandsInBinaryExpr() 274 expr->OperatorType() == lexer::TokenType::PUNCTUATOR_NOT_EQUAL); in ProcessOperandsInBinaryExpr() 357 if (binExpr->OperatorType() != lexer::TokenType::PUNCTUATOR_EQUAL && in HandleBlockWithBinaryAndUnion() 358 binExpr->OperatorType() != lexer::TokenType::PUNCTUATOR_NOT_EQUAL) { in HandleBlockWithBinaryAndUnion()
|
D | tupleLowering.cpp | 116 …auto *gensymUpdate = checker->AllocNode<ir::UpdateExpression>(gensym, update->OperatorType(), upda… in ConvertTupleUpdate() 190 … checker->AllocNode<ir::AssignmentExpression>(left, tsAsExpression, assignment->OperatorType()); in ConvertTupleAssignment()
|
/arkcompiler/ets_frontend/es2panda/ir/expressions/ |
D | unaryExpression.h | 40 lexer::TokenType OperatorType() const in OperatorType() function
|
D | updateExpression.h | 44 lexer::TokenType OperatorType() const in OperatorType() function
|
D | assignmentExpression.h | 66 lexer::TokenType OperatorType() const in OperatorType() function
|
D | binaryExpression.h | 64 lexer::TokenType OperatorType() const in OperatorType() function
|
/arkcompiler/ets_runtime/ecmascript/ic/tests/ |
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/ir/expressions/ |
D | unaryExpression.h | 51 [[nodiscard]] lexer::TokenType OperatorType() const noexcept in OperatorType() function
|
D | updateExpression.h | 45 [[nodiscard]] lexer::TokenType OperatorType() const noexcept in OperatorType() function
|
D | assignmentExpression.h | 83 [[nodiscard]] lexer::TokenType OperatorType() const noexcept in OperatorType() function
|
D | binaryExpression.h | 73 [[nodiscard]] lexer::TokenType OperatorType() const noexcept in OperatorType() function
|
/arkcompiler/ets_frontend/ets2panda/checker/ |
D | TSAnalyzer.cpp | 505 if (expr->OperatorType() == lexer::TokenType::PUNCTUATOR_SUBSTITUTION) { in Check() 512 switch (expr->OperatorType()) { in Check() 525 expr->OperatorType()); in Check() 529 expr->OperatorType()); in Check() 532 … checker->CheckAssignmentOperator(expr->OperatorType(), expr->Left(), leftType, rightType); in Check() 557 switch (expr->OperatorType()) { in Check() 570 expr->OperatorType()); in Check() 574 expr->OperatorType()); in Check() 579 expr->OperatorType()); in Check() 590 checker->ThrowBinaryLikeError(expr->OperatorType(), leftType, rightType, expr->Start()); in Check() [all …]
|
/arkcompiler/ets_frontend/es2panda/ir/ts/ |
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()
|
D | tsAsExpression.cpp | 58 lexer::TokenType op = unaryExpr->OperatorType(); in IsValidConstAssertionArgument()
|
/arkcompiler/ets_frontend/ets2panda/compiler/core/ |
D | JSCompiler.cpp | 581 if (expr->OperatorType() == lexer::TokenType::PUNCTUATOR_LOGICAL_AND_EQUAL || in Compile() 582 expr->OperatorType() == lexer::TokenType::PUNCTUATOR_LOGICAL_OR_EQUAL) { in Compile() 586 if (expr->OperatorType() == lexer::TokenType::PUNCTUATOR_SUBSTITUTION) { in Compile() 597 pg->Binary(expr, expr->OperatorType(), lhsReg); in Compile() 621 ASSERT(expr->OperatorType() == lexer::TokenType::PUNCTUATOR_LOGICAL_AND || in CompileLogical() 622 expr->OperatorType() == lexer::TokenType::PUNCTUATOR_LOGICAL_OR || in CompileLogical() 623 expr->OperatorType() == lexer::TokenType::PUNCTUATOR_NULLISH_COALESCING); in CompileLogical() 632 if (expr->OperatorType() == lexer::TokenType::PUNCTUATOR_LOGICAL_AND) { in CompileLogical() 635 } else if (expr->OperatorType() == lexer::TokenType::PUNCTUATOR_LOGICAL_OR) { in CompileLogical() 638 } else if (expr->OperatorType() == lexer::TokenType::PUNCTUATOR_NULLISH_COALESCING) { in CompileLogical() [all …]
|
D | ETSCompiler.cpp | 451 ASSERT(expr->OperatorType() == lexer::TokenType::PUNCTUATOR_SUBSTITUTION); in Compile() 511 if (expr->OperatorType() == lexer::TokenType::PUNCTUATOR_NULLISH_COALESCING) { in CompileLogical() 527 if (expr->OperatorType() == lexer::TokenType::PUNCTUATOR_LOGICAL_AND) { in CompileLogical() 591 if (map.find(expr->OperatorType()) == map.end()) { in CompileBigInt() 606 std::string_view signature = map.at(expr->OperatorType()); in CompileBigInt() 607 switch (expr->OperatorType()) { in CompileBigInt() 645 if (expr->OperatorType() == lexer::TokenType::PUNCTUATOR_PLUS && in Compile() 659 etsg->Binary(expr, expr->OperatorType(), lhs); in Compile() 1174 if (expr->OperatorType() == lexer::TokenType::PUNCTUATOR_TILDE) { in Compile() 1178 etsg->Unary(expr, expr->OperatorType()); in Compile() [all …]
|
/arkcompiler/ets_frontend/ets2panda/checker/ts/ |
D | util.cpp | 47 return IsAssignmentOperator(binaryExpr->OperatorType()) && binaryExpr->Left() == parent; in InAssignment()
|
/arkcompiler/ets_frontend/es2panda/typescript/core/ |
D | util.cpp | 59 return IsAssignmentOperator(binaryExpr->OperatorType()) && binaryExpr->Left() == parent; in InAssignment()
|