Home
last modified time | relevance | path

Searched refs:OperatorType (Results 1 - 25 of 49) sorted by relevance

12

/arkcompiler/ets_runtime/ecmascript/
H A Dobject_operator.h32 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 Dobject_operator.cpp109 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 Dobject_operator_second_test.cpp56 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 Dcondition.cpp29 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 Dcondition.cpp28 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 DarithmeticOperationValid.cpp35 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 DbigintLowering.cpp61 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 DopAssignment.cpp148 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 DtupleLowering.cpp92 checker_->AllocNode<ir::UpdateExpression>(identClone, update_->OperatorType(), update_->IsPrefix()); in GenerateExpressions()
251 checker->AllocNode<ir::AssignmentExpression>(left, tsAsExpression, assignment->OperatorType()); in ConvertTupleAssignment()
H A DstringComparison.cpp41 switch (expr->OperatorType()) { in CheckOperatorType()
/arkcompiler/ets_frontend/ets2panda/checker/
H A DcheckerContext.cpp250 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 DTSAnalyzer.cpp346 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 DupdateExpression.h44 lexer::TokenType OperatorType() const in OperatorType() function in panda::es2panda::panda::es2panda::panda::es2panda::ir::UpdateExpression
H A DunaryExpression.h40 lexer::TokenType OperatorType() const in OperatorType() function in panda::es2panda::panda::es2panda::panda::es2panda::ir::UnaryExpression
H A DbinaryExpression.h64 lexer::TokenType OperatorType() const in OperatorType() function in panda::es2panda::panda::es2panda::panda::es2panda::ir::BinaryExpression
H A DassignmentExpression.h66 lexer::TokenType OperatorType() const in OperatorType() function in panda::es2panda::panda::es2panda::panda::es2panda::ir::AssignmentExpression
/arkcompiler/ets_frontend/ets2panda/ir/expressions/
H A DupdateExpression.h45 [[nodiscard]] lexer::TokenType OperatorType() const noexcept
H A DunaryExpression.h51 [[nodiscard]] lexer::TokenType OperatorType() const noexcept
H A DassignmentExpression.h92 [[nodiscard]] lexer::TokenType OperatorType() const noexcept
H A DbinaryExpression.h74 [[nodiscard]] lexer::TokenType OperatorType() const noexcept
/arkcompiler/ets_frontend/ets2panda/compiler/core/
H A DJSCompiler.cpp445 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 DtsEnumDeclaration.cpp112 switch (expr->OperatorType()) { in EvaluateUnaryExpression()
159 switch (expr->AsBinaryExpression()->OperatorType()) { in EvaluateBinaryExpression()
205 expr->AsBinaryExpression()->OperatorType() == lexer::TokenType::PUNCTUATOR_PLUS) { in EvaluateBinaryExpression()
H A DtsAsExpression.cpp58 lexer::TokenType op = unaryExpr->OperatorType(); in IsValidConstAssertionArgument()
/arkcompiler/ets_runtime/ecmascript/ic/tests/
H A Dic_handler_test.cpp227 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 Dutil.cpp47 return IsAssignmentOperator(binaryExpr->OperatorType()) && binaryExpr->Left() == parent; in InAssignment()

Completed in 22 milliseconds

12