Home
last modified time | relevance | path

Searched refs:OperatorType (Results 1 – 25 of 42) sorted by relevance

12

/arkcompiler/ets_runtime/ecmascript/
Dobject_operator.h29 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);
Dobject_operator.cpp117 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/
Dobject_operator_second_test.cpp79 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/
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/
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()
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/
Dic_runtime.h63 isOwn ? OperatorType::OWN : OperatorType::PROTOTYPE_CHAIN); in ConstructOp()
/arkcompiler/ets_frontend/ets2panda/compiler/lowering/ets/
DopAssignment.cpp97 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()
DunionLowering.cpp205 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()
DtupleLowering.cpp116 …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/
DunaryExpression.h40 lexer::TokenType OperatorType() const in OperatorType() function
DupdateExpression.h44 lexer::TokenType OperatorType() const in OperatorType() function
DassignmentExpression.h66 lexer::TokenType OperatorType() const in OperatorType() function
DbinaryExpression.h64 lexer::TokenType OperatorType() const in OperatorType() function
/arkcompiler/ets_runtime/ecmascript/ic/tests/
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/ir/expressions/
DunaryExpression.h51 [[nodiscard]] lexer::TokenType OperatorType() const noexcept in OperatorType() function
DupdateExpression.h45 [[nodiscard]] lexer::TokenType OperatorType() const noexcept in OperatorType() function
DassignmentExpression.h83 [[nodiscard]] lexer::TokenType OperatorType() const noexcept in OperatorType() function
DbinaryExpression.h73 [[nodiscard]] lexer::TokenType OperatorType() const noexcept in OperatorType() function
/arkcompiler/ets_frontend/ets2panda/checker/
DTSAnalyzer.cpp505 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/
DtsEnumDeclaration.cpp112 switch (expr->OperatorType()) { in EvaluateUnaryExpression()
159 switch (expr->AsBinaryExpression()->OperatorType()) { in EvaluateBinaryExpression()
205 expr->AsBinaryExpression()->OperatorType() == lexer::TokenType::PUNCTUATOR_PLUS) { in EvaluateBinaryExpression()
DtsAsExpression.cpp58 lexer::TokenType op = unaryExpr->OperatorType(); in IsValidConstAssertionArgument()
/arkcompiler/ets_frontend/ets2panda/compiler/core/
DJSCompiler.cpp581 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 …]
DETSCompiler.cpp451 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/
Dutil.cpp47 return IsAssignmentOperator(binaryExpr->OperatorType()) && binaryExpr->Left() == parent; in InAssignment()
/arkcompiler/ets_frontend/es2panda/typescript/core/
Dutil.cpp59 return IsAssignmentOperator(binaryExpr->OperatorType()) && binaryExpr->Left() == parent; in InAssignment()

12