/arkcompiler/ets_frontend/es2panda/lexer/token/ |
H A D | token.cpp | 24 return (type_ == TokenType::LITERAL_IDENT && in IsAccessability() 32 return (type_ == TokenType::LITERAL_IDENT && keywordType_ == TokenType::KEYW_ASYNC && in IsAsyncModifier() 38 return (type_ == TokenType::LITERAL_IDENT && keywordType_ == TokenType::KEYW_STATIC && in IsStaticModifier() 44 return (type_ == TokenType::LITERAL_IDENT && keywordType_ == TokenType::KEYW_DECLARE && in IsDeclareModifier() 50 return (type_ == TokenType::LITERAL_IDENT && keywordType_ == TokenType::KEYW_READONLY && in IsReadonlyModifier() 56 return (type_ == TokenType::LITERAL_IDENT && keywordType_ == TokenType::KEYW_ACCESSOR && in IsAccessorModifier() 62 return (type_ == TokenType::PUNCTUATOR_MINUS_MINUS || type_ == TokenType::PUNCTUATOR_PLUS_PLUS); in IsUpdate() 67 return (type_ == TokenType::PUNCTUATOR_MINUS || type_ in IsUnary() [all...] |
/arkcompiler/ets_runtime/ecmascript/compiler/ |
H A D | type.h | 64 explicit ParamType(uint32_t type = 0) : type_(type) {} in ParamType() 68 type_ = BUILTIN_TYPE | static_cast<uint32_t>(jsType); in ParamType() 79 bool Is##name() const { return type_ == static_cast<uint32_t>(type); } 87 return type_; in Value() 97 return type_ & BUILTIN_TYPE; in IsBuiltinType() 102 return static_cast<JSType>(type_ & ~BUILTIN_TYPE); in GetBuiltinType() 107 return type_ == other.type_; in operator ==() 125 uint32_t type_ {0}; 134 type_ | in GateType() [all...] |
/arkcompiler/ets_frontend/ets2panda/lexer/ |
H A D | lexer.cpp | 119 pos_.token_.type_ = type; in BackwardToken() 126 pos_.token_.type_ = type; in ForwardToken() 296 const bool isPeriod = GetToken().type_ == TokenType::PUNCTUATOR_PERIOD; in ScanNumber() 297 GetToken().type_ = TokenType::LITERAL_NUMBER; in ScanNumber() 610 GetToken().type_ = TokenType::PUNCTUATOR_QUESTION_MARK; in ScanQuestionPunctuator() 614 GetToken().type_ = TokenType::PUNCTUATOR_NULLISH_COALESCING; in ScanQuestionPunctuator() 619 GetToken().type_ = TokenType::PUNCTUATOR_LOGICAL_NULLISH_EQUAL; in ScanQuestionPunctuator() 634 GetToken().type_ = TokenType::PUNCTUATOR_QUESTION_DOT; in ScanQuestionPunctuator() 649 GetToken().type_ = TokenType::PUNCTUATOR_LESS_THAN; in ScanLessThanPunctuator() 653 GetToken().type_ in ScanLessThanPunctuator() [all...] |
H A D | ETSLexer.cpp | 40 GetToken().type_ = TokenType::LITERAL_CHAR; in ScanCharLiteral() 99 GetToken().type_ = TokenType::PUNCTUATOR_MULTIPLY; in ScanAsteriskPunctuator() 103 GetToken().type_ = TokenType::PUNCTUATOR_MULTIPLY_EQUAL; in ScanAsteriskPunctuator() 124 GetToken().type_ = TokenType::PUNCTUATOR_SUBSTITUTION; in ScanEqualsPunctuator() 128 GetToken().type_ = TokenType::PUNCTUATOR_EQUAL; in ScanEqualsPunctuator() 132 GetToken().type_ = TokenType::PUNCTUATOR_STRICT_EQUAL; in ScanEqualsPunctuator() 138 GetToken().type_ = TokenType::PUNCTUATOR_ARROW; in ScanEqualsPunctuator() 150 GetToken().type_ = TokenType::PUNCTUATOR_EXCLAMATION_MARK; in ScanExclamationPunctuator() 154 GetToken().type_ = TokenType::PUNCTUATOR_NOT_EQUAL; in ScanExclamationPunctuator() 158 GetToken().type_ in ScanExclamationPunctuator() [all...] |
/arkcompiler/runtime_core/bytecode_optimizer/constant_propagation/ |
H A D | constant_value.h | 33 : type_(CONSTANT_INVALID), value_() {} in ConstantValue() 40 : type_(CONSTANT_BOOL), value_(val) {} in ConstantValue() 43 : type_(CONSTANT_INT32), value_(val) {} in ConstantValue() 46 : type_(CONSTANT_INT64), value_(val) {} in ConstantValue() 49 : type_(CONSTANT_DOUBLE), value_(val) {} in ConstantValue() 52 : type_(CONSTANT_STRING), value_(val) {} in ConstantValue() 56 return type_; in GetType() 74 switch (type_) { in ToString() 98 return type_ == other.type_ 102 ConstantType type_; global() member in panda::bytecodeopt::ConstantValue [all...] |
/arkcompiler/ets_runtime/ecmascript/pgo_profiler/types/ |
H A D | pgo_profile_type.h | 203 explicit ProfileType(uint64_t rawType) : type_(rawType) {}; in ProfileType() 209 type_ = 0; in ProfileType() 266 return type_ == PROFILE_TYPE_NONE.type_; in IsNone() 271 return type_; in GetRaw() 276 return IsRootBits::Decode(type_); in IsRootType() 281 return EverOutOfBoundsBits::Decode(type_); in IsEverOutOfBounds() 366 return IdBits::Decode(type_); in GetId() 371 return KindBits::Decode(type_); in GetKind() 376 return AbcIdBits::Decode(type_); in GetAbcId() [all...] |
H A D | pgo_profiler_type.h | 103 PGOSampleTemplate() : type_(Type::NONE) {}; in PGOSampleTemplate() 105 explicit PGOSampleTemplate(Type type) : type_(type) {}; in PGOSampleTemplate() 106 explicit PGOSampleTemplate(uint32_t type) : type_(Type(type)) {}; in PGOSampleTemplate() 107 explicit PGOSampleTemplate(PGOProfileType type) : type_(type) {} in PGOSampleTemplate() 208 if (std::holds_alternative<PGOProfileType>(type.type_)) { in CombineType() 212 auto oldType = static_cast<uint32_t>(std::get<Type>(type_)); in CombineType() 214 type_ = in CombineType() 215 Type(oldType | static_cast<uint32_t>(std::get<Type>(type.type_))); in CombineType() 224 ASSERT(type_.index() == 1); in CombineCallTargetType() 232 type_ in CombineCallTargetType() 447 std::variant<Type, PGOProfileType> type_; global() member in panda::ecmascript::pgo::PGOSampleTemplate 1260 const PGOType *type_; global() member in panda::ecmascript::pgo::PGOTypeRef [all...] |
/arkcompiler/ets_runtime/ecmascript/ts_types/ |
H A D | global_ts_type_ref.h | 83 explicit GlobalTSTypeRef(uint32_t type = 0) : type_(type) {} in GlobalTSTypeRef() 84 GlobalTSTypeRef(int moduleId, int localId) : type_(0) in GlobalTSTypeRef() 99 return type_; in GetType() 104 type_ = type; in SetType() 109 type_ = 0; in Clear() 114 return type_ == 0; in IsDefault() 119 return type_ < other.type_; in operator <() 124 return type_ == other.type_; in operator ==() [all...] |
/arkcompiler/runtime_core/static_core/verification/value/ |
H A D | abstract_typed_value.h | 35 return type_.IsNone(); in IsNone() 43 AbstractTypedValue(Type type, AbstractValue value) : value_ {std::move(value)}, type_ {type} {} in AbstractTypedValue() 45 : value_ {atv.value_}, type_ {atv.type_}, origin_ {inst} in AbstractTypedValue() 49 : value_ {std::move(value)}, type_ {type}, origin_ {inst} in AbstractTypedValue() 53 : value_ {std::move(value)}, type_ {type}, origin_ {std::move(origin)} in AbstractTypedValue() 58 : value_ {std::move(value)}, type_ {type}, origin_ {OriginType::START, n} in AbstractTypedValue() 63 type_ = type; in SetAbstractType() 73 return type_; in GetAbstractType() 81 return type_ in IsConsistent() 107 Type type_; global() member in ark::verifier::AbstractTypedValue [all...] |
/arkcompiler/runtime_core/libark_defect_scan_aux/ |
H A D | graph.cpp | 40 return type_; in GetType() 45 return type_ == InstType::STLEXVAR_IMM4_IMM4 || type_ == InstType::STLEXVAR_IMM8_IMM8 || in IsInstStLexVar() 46 type_ == InstType::WIDE_STLEXVAR_PREF_IMM16_IMM16; in IsInstStLexVar() 51 return type_ == InstType::LDLEXVAR_IMM4_IMM4 || type_ == InstType::LDLEXVAR_IMM8_IMM8 || in IsInstLdLexVar() 52 type_ == InstType::WIDE_LDLEXVAR_PREF_IMM16_IMM16; in IsInstLdLexVar() 57 return type_ == InstType::TRYSTGLOBALBYNAME_IMM8_ID16 || type_ == InstType::TRYSTGLOBALBYNAME_IMM16_ID16 || in IsInstStGlobal() 58 type_ in IsInstStGlobal() [all...] |
/arkcompiler/ets_runtime/ecmascript/pgo_profiler/ap_file/ |
H A D | pgo_method_type_set.h | 162 type_.AddObjectInfo(info); in RWScalarOpTemplate() 169 type_.ConvertFrom(context, from.GetTypeRef()); in ConvertFrom() 179 return type_.GetCount(); in GetCount() 184 type_.Merge(type.type_); in Merge() 189 type_.AddObjectInfo(info); in AddObjectInfo() 194 return type_; in GetTypeRef() 203 for (uint32_t i = 0; i < type_.GetCount(); i++) { in ProcessToText() 208 text += type_.GetObjectInfo(i).GetInfoString(); in ProcessToText() 215 for (uint32_t i = 0; i < type_ in ProcessToJson() 223 RWOpType type_; global() member in panda::ecmascript::pgo::PGOMethodTypeSet::RWScalarOpTemplate 267 SampleType type_; global() member in panda::ecmascript::pgo::PGOMethodTypeSet::ScalarOpTemplate 315 PGODefineOpType type_; global() member in panda::ecmascript::pgo::PGOMethodTypeSet::ObjDefOpTemplate [all...] |
H A D | pgo_profile_type_pool.h | 43 explicit Entry(ProfileType type) : type_(type) {} in Entry() 57 return type_; in GetProfileType() 62 return type_; in GetData() 67 auto profileType = type_.GetRaw(); 75 type_ = base::ReadBuffer<ProfileType>(buffer, sizeof(ProfileType)); 81 stream << type_.GetTypeString(); 87 type_.Remap(context); in Remap() 92 ProfileType type_; member in panda::ecmascript::pgo::PGOProfileTypePool::Entry
|
/arkcompiler/ets_frontend/ets2panda/lexer/token/ |
H A D | token.cpp | 21 return (type_ == TokenType::LITERAL_IDENT && in IsAccessability() 29 return (type_ == TokenType::LITERAL_IDENT && keywordType_ == TokenType::KEYW_ASYNC && in IsAsyncModifier() 40 return (type_ == TokenType::LITERAL_IDENT && keywordType_ == TokenType::KEYW_STATIC && in IsStaticModifier() 46 return (type_ == TokenType::LITERAL_IDENT && keywordType_ == TokenType::KEYW_DECLARE && in IsDeclareModifier() 52 return (type_ == TokenType::LITERAL_IDENT && keywordType_ == TokenType::KEYW_READONLY && in IsReadonlyModifier() 58 return (type_ == TokenType::PUNCTUATOR_MINUS_MINUS || type_ == TokenType::PUNCTUATOR_PLUS_PLUS); in IsUpdate() 63 return (type_ == TokenType::PUNCTUATOR_MINUS || type_ == TokenType::PUNCTUATOR_PLUS || in IsUnary() 64 type_ in IsUnary() [all...] |
H A D | token.h | 59 return type_; in Type() 74 type_ = type; in SetTokenType() 104 ASSERT(type_ == TokenType::LITERAL_NUMBER && (flags_ & TokenFlags::NUMBER_BIGINT)); in BigInt() 110 ASSERT(type_ == TokenType::LITERAL_NUMBER && !(flags_ & TokenFlags::NUMBER_BIGINT)); in GetNumber() 116 ASSERT(type_ == TokenType::LITERAL_STRING || type_ == TokenType::LITERAL_NUMBER || in String() 117 type_ == TokenType::LITERAL_CHAR); in String() 147 TokenType type_ {TokenType::EOS};
|
/arkcompiler/ets_frontend/es2panda/lexer/ |
H A D | lexer.cpp | 117 pos_.token.type_ = type; in BackwardToken() 125 pos_.token.type_ = type; in ForwardToken() 236 GetToken().type_ = TokenType::LITERAL_NUMBER; in ScanNumberLeadingZero() 376 GetToken().type_ = TokenType::LITERAL_NUMBER; in ScanNumber() 643 GetToken().type_ = TokenType::PUNCTUATOR_QUESTION_MARK; in ScanQuestionPunctuator() 647 GetToken().type_ = TokenType::PUNCTUATOR_NULLISH_COALESCING; in ScanQuestionPunctuator() 652 GetToken().type_ = TokenType::PUNCTUATOR_LOGICAL_NULLISH_EQUAL; in ScanQuestionPunctuator() 667 GetToken().type_ = TokenType::PUNCTUATOR_QUESTION_DOT; in ScanQuestionPunctuator() 682 GetToken().type_ = TokenType::PUNCTUATOR_LESS_THAN; in ScanLessThanPunctuator() 686 GetToken().type_ in ScanLessThanPunctuator() [all...] |
/arkcompiler/ets_frontend/ets2panda/ir/ts/ |
H A D | tsParenthesizedType.cpp | 27 if (auto *transformedNode = cb(type_); type_ != transformedNode) { in TransformChildren() 28 type_->SetTransformedNode(transformationName, transformedNode); in TransformChildren() 29 type_ = static_cast<TypeNode *>(transformedNode); in TransformChildren() 35 cb(type_); in Iterate() 40 dumper->Add({{"type", "TSParenthesizedType"}, {"typeAnnotation", type_}}); in Dump() 69 SetTsType(type_->GetType(checker)); in GetType()
|
H A D | tsTypeOperator.cpp | 27 if (auto *transformedNode = cb(type_); type_ != transformedNode) { in TransformChildren() 28 type_->SetTransformedNode(transformationName, transformedNode); in TransformChildren() 29 type_ = static_cast<TypeNode *>(transformedNode); in TransformChildren() 35 cb(type_); in Iterate() 43 {"typeAnnotation", type_}, in Dump()
|
/arkcompiler/ets_runtime/ecmascript/ |
H A D | date_parse.h | 169 return type_ == DATE_INVALID;
in IsInvalid() 174 return type_ == DATE_UNKNOWN;
in IsUnknown() 179 return type_ == DATE_NUMBER;
in IsNumber() 184 return type_ == DATE_SYMBOL;
in IsSymbol() 189 return type_ == DATE_SYMBOL && static_cast<int>(ch) == value_;
in IsSymbol() 194 return type_ == DATE_STRING_END;
in IsStringEnd() 199 return type_ == DATE_TIME_ZONE;
in IsTimeZone() 204 return type_ == DATE_TIME_FALG;
in IsTimeFlag() 209 return type_ == DATE_INVALID_WORD;
in IsInvalidWord() 214 return type_ in IsMonth() 316 DateValueType type_; global() member in panda::ecmascript::DateParse::DateUnit [all...] |
/arkcompiler/ets_runtime/tools/circuit_viewer/src/engine/control/ |
H A D | XScroll.js | 21 this.type_ = options['type']; 24 this.type_ = 'right'; 38 if (this.type_ === 'right') { 41 else if (this.type_ === 'button') { 61 if (this.type_ === 'right') { 70 if (this.type_ === 'right') { 78 if (this.type_ === 'right') { 98 if (this.type_ === 'right') { 106 if (this.type_ === 'right') { 116 if (this.type_ [all...] |
/arkcompiler/ets_frontend/ets2panda/ir/as/ |
H A D | prefixAssertionExpression.cpp | 28 if (auto *transformedNode = cb(type_); type_ != transformedNode) { in TransformChildren() 29 type_->SetTransformedNode(transformationName, transformedNode); in TransformChildren() 30 type_ = static_cast<TypeNode *>(transformedNode); in TransformChildren() 41 cb(type_); in Iterate() 47 dumper->Add({{"type", "PrefixAssertionExpression"}, {"expression", expr_}, {"type", type_}}); in Dump()
|
/arkcompiler/ets_frontend/ets2panda/checker/types/ts/ |
H A D | indexInfo.h | 25 : type_(type), paramName_(paramName), readonly_(readonly) in IndexInfo() 30 : type_(type), paramName_(paramName), readonly_(readonly), pos_(pos) in IndexInfo() 40 return type_; in GetType() 45 return type_; in GetType() 50 type_ = type; in SetType() 74 Type *type_; member in ark::es2panda::checker::IndexInfo
|
/arkcompiler/ets_frontend/es2panda/typescript/types/ |
H A D | indexInfo.h | 26 : type_(type), paramName_(paramName), readonly_(readonly) in IndexInfo() 31 : type_(type), paramName_(paramName), readonly_(readonly), pos_(pos) in IndexInfo() 41 return type_; in GetType() 46 return type_; in GetType() 51 type_ = type; in SetType() 75 Type *type_; member in panda::es2panda::checker::IndexInfo
|
/arkcompiler/ets_frontend/es2panda/ir/ts/ |
H A D | tsParenthesizedType.cpp | 25 cb(type_); in Iterate() 30 dumper->Add({{"type", "TSParenthesizedType"}, {"typeAnnotation", type_}}); in Dump() 37 type_->Check(checker); in Check() 48 checker::Type *type = type_->AsTypeNode()->GetType(checker); in GetType() 55 type_ = std::get<ir::AstNode *>(cb(type_))->AsExpression(); in UpdateSelf()
|
H A D | tsRestType.cpp | 25 cb(type_); in Iterate() 30 dumper->Add({{"type", "TSRestType"}, {"typeAnnotation", type_}}); in Dump() 48 checker::Type *type = type_->AsTypeNode()->GetType(checker); in GetType() 55 type_ = std::get<ir::AstNode *>(cb(type_))->AsExpression(); in UpdateSelf()
|
H A D | tsOptionalType.cpp | 25 cb(type_); in Iterate() 30 dumper->Add({{"type", "TSOptionalType"}, {"typeAnnotation", type_}}); in Dump() 48 checker::Type *type = type_->AsTypeNode()->GetType(checker); in GetType() 55 type_ = std::get<ir::AstNode *>(cb(type_))->AsExpression(); in UpdateSelf()
|