Home
last modified time | relevance | path

Searched full:kind (Results 1 – 25 of 10346) sorted by relevance

12345678910>>...414

/arkcompiler/ets_runtime/ecmascript/
Delements.h11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
60 static std::string GetString(ElementsKind kind);
61 static bool IsInt(ElementsKind kind);
62 static bool IsNumber(ElementsKind kind);
63 static bool IsTagged(ElementsKind kind);
64 static bool IsObject(ElementsKind kind);
65 static bool IsHole(ElementsKind kind);
66 static bool IsGeneric(ElementsKind kind) in IsGeneric() argument
68 return kind == ElementsKind::GENERIC; in IsGeneric()
71 static bool IsNone(ElementsKind kind) in IsNone() argument
[all …]
Djs_function.h11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
161 FunctionKind kind = FunctionKind::NORMAL_FUNCTION);
232 FunctionKind kind = GetFunctionKind(); in IsGetterOrSetter() local
233 return kind == FunctionKind::GETTER_FUNCTION || kind == FunctionKind::SETTER_FUNCTION; in IsGetterOrSetter()
238 FunctionKind kind = GetFunctionKind(); in IsGetter() local
239 return kind == FunctionKind::GETTER_FUNCTION; in IsGetter()
244 FunctionKind kind = GetFunctionKind(); in IsBase() local
245 return kind <= FunctionKind::CLASS_CONSTRUCTOR; in IsBase()
250 FunctionKind kind = GetFunctionKind(); in IsDerivedConstructor() local
251 return kind == FunctionKind::DERIVED_CONSTRUCTOR; in IsDerivedConstructor()
[all …]
Delements.cpp11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
32 std::string Elements::GetString(ElementsKind kind) in GetString() argument
34 return std::to_string(static_cast<uint32_t>(kind)); in GetString()
37 bool Elements::IsInt(ElementsKind kind) in IsInt() argument
39 return kind == ElementsKind::INT; in IsInt()
42 bool Elements::IsNumber(ElementsKind kind) in IsNumber() argument
44 return kind == ElementsKind::NUMBER; in IsNumber()
47 bool Elements::IsTagged(ElementsKind kind) in IsTagged() argument
49 return kind == ElementsKind::TAGGED; in IsTagged()
52 bool Elements::IsObject(ElementsKind kind) in IsObject() argument
[all …]
Delement_accessor.cpp11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
26 ElementsKind kind = receiver->GetClass()->GetElementsKind(); in Get() local
28 kind = ElementsKind::GENERIC; in Get()
35 return GetTaggedValueWithElementsKind(rawValue, kind); in Get()
42 ElementsKind kind = receiver->GetClass()->GetElementsKind(); in Get() local
44 kind = ElementsKind::GENERIC; in Get()
51 return GetTaggedValueWithElementsKind(rawValue, kind); in Get()
54 …ggedValue ElementAccessor::FastGet(JSHandle<TaggedArray> elements, uint32_t idx, ElementsKind kind) in FastGet() argument
60 return GetTaggedValueWithElementsKind(rawValue, kind); in FastGet()
87 …ggedValue ElementAccessor::GetTaggedValueWithElementsKind(JSTaggedType rawValue, ElementsKind kind) in GetTaggedValueWithElementsKind() argument
[all …]
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/include/cg/
Dtarget_machine.h11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
33 TargetMachine(TargetKind kind) : kind(kind) {} in TargetMachine() argument
36 return kind == kAArch64; in isAArch64()
41 return kind == kX8664; in isX8664()
46 return kind == kRiscV; in isRiscV()
51 return kind == kArm32; in isArm32()
56 return kind == kArk; in isArk()
60 TargetKind kind;
/arkcompiler/ets_runtime/ecmascript/pgo_profiler/types/
Dpgo_profile_type.h11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
43 enum class Kind : uint8_t { enum
72 using KindBits = AbcIdBits::NextField<Kind, KIND_BITFIELD_NUM>;
130 BuiltinsArrayId UpdateElementsKind(ElementsKind kind) in UpdateElementsKind() argument
132 id_ = OldElementsKindBits::Update(id_, kind); in UpdateElementsKind()
141 BuiltinsArrayId UpdateTransitionElementsKind(ElementsKind kind) in UpdateTransitionElementsKind() argument
143 id_ = NewElementsKindBits::Update(id_, kind); in UpdateTransitionElementsKind()
198 static_assert(KindBits::IsValid(Kind::TotalKinds));
203 ProfileType(ApEntityId abcId, uint32_t type, Kind kind = Kind::ClassId, bool root = false,
211 UpdateKind(kind);
[all …]
/arkcompiler/runtime_core/static_core/compiler/optimizer/ir/
Dlocations.h11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
44 enum class Kind : uint8_t { enum
53 Location() : Location(Kind::INVALID) {} in Location()
54 …explicit Location(Kind type, uintptr_t value = 0) : bitFields_(KindField::Encode(type) | ValueFiel…
87 return GetKind() == Kind::INVALID; in IsInvalid()
92 return GetKind() == Kind::IMMEDIATE; in IsConstant()
97 return GetKind() == Kind::REGISTER; in IsRegister()
102 return GetKind() == Kind::FP_REGISTER; in IsFpRegister()
107 return GetKind() == Kind::STACK; in IsStack()
112 return GetKind() == Kind::STACK_ARGUMENT; in IsStackArgument()
[all …]
Dlocations.cpp11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
33 case Kind::REGISTER: in Dump()
34 case Kind::FP_REGISTER: in Dump()
43 case Kind::IMMEDIATE: in Dump()
44 case Kind::STACK: in Dump()
45 case Kind::STACK_PARAMETER: in Dump()
46 case Kind::STACK_ARGUMENT: in Dump()
/arkcompiler/runtime_core/compiler/optimizer/ir/
Dlocations.h11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
43 enum class Kind : uint8_t { enum
52 Location() : Location(Kind::INVALID) {} in Location()
53 …explicit Location(Kind type, uintptr_t value = 0) : bit_fields_(KindField::Encode(type) | ValueFie…
86 return GetKind() == Kind::INVALID; in IsInvalid()
91 return GetKind() == Kind::IMMEDIATE; in IsConstant()
96 return GetKind() == Kind::REGISTER; in IsRegister()
101 return GetKind() == Kind::FP_REGISTER; in IsFpRegister()
106 return GetKind() == Kind::STACK; in IsStack()
111 return GetKind() == Kind::STACK_ARGUMENT; in IsStackArgument()
[all …]
/arkcompiler/ets_runtime/ecmascript/stackmap/llvm/
Dllvm_stackmap_type.cpp11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
48 VRegId id, LocationTy::Kind kind) in EncodeVRegsInfo() argument
51 if (kind == LocationTy::Kind::CONSTANT || kind == LocationTy::Kind::CONSTANTNDEX) { in EncodeVRegsInfo()
53 } else if (kind == LocationTy::Kind::INDIRECT) { in EncodeVRegsInfo()
56 LOG_ECMA(FATAL) << "vreg kind branch is unreachable"; in EncodeVRegsInfo()
64 void LLVMStackMapType::DecodeVRegsInfo(SLeb128Type vregsInfo, VRegId &id, KindType &kind) in DecodeVRegsInfo() argument
67 kind = CONSTANT_TYPE; in DecodeVRegsInfo()
69 kind = OFFSET_TYPE; in DecodeVRegsInfo()
Dllvm_stackmap_parser.cpp11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
20 std::string LocationTy::TypeToString(Kind loc) const in TypeToString()
23 case Kind::REGISTER: in TypeToString()
25 case Kind::DIRECT: in TypeToString()
27 case Kind::INDIRECT: in TypeToString()
29 case Kind::CONSTANT: in TypeToString()
31 case Kind::CONSTANTNDEX: in TypeToString()
92 case LocationTy::Kind::REGISTER: in CalcCallSite()
93 case LocationTy::Kind::DIRECT: { in CalcCallSite()
98 case LocationTy::Kind::INDIRECT: { in CalcCallSite()
[all …]
/arkcompiler/ets_runtime/ecmascript/ic/
Dprofile_type_info.h11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
36 static inline bool IsNamedGlobalIC(ICKind kind) in IsNamedGlobalIC() argument
38 return (kind == ICKind::NamedGlobalLoadIC) || (kind == ICKind::NamedGlobalStoreIC) || in IsNamedGlobalIC()
39 (kind == ICKind::NamedGlobalTryLoadIC) || (kind == ICKind::NamedGlobalTryStoreIC); in IsNamedGlobalIC()
42 static inline bool IsValueGlobalIC(ICKind kind) in IsValueGlobalIC() argument
44 return (kind == ICKind::GlobalLoadIC) || (kind == ICKind::GlobalStoreIC); in IsValueGlobalIC()
47 static inline bool IsValueNormalIC(ICKind kind) in IsValueNormalIC() argument
49 return (kind == ICKind::LoadIC) || (kind == ICKind::StoreIC); in IsValueNormalIC()
52 static inline bool IsValueIC(ICKind kind) in IsValueIC() argument
54 return IsValueNormalIC(kind) || IsValueGlobalIC(kind); in IsValueIC()
[all …]
Dic_runtime.h11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
33 …CRuntime(JSThread *thread, JSHandle<ProfileTypeInfo> profileTypeInfo, uint32_t slotId, ICKind kind) in ICRuntime() argument
34 : thread_(thread), icAccessor_(thread, profileTypeInfo, slotId, kind) in ICRuntime()
70 …CRuntime(JSThread *thread, JSHandle<ProfileTypeInfo> profileTypeInfo, uint32_t slotId, ICKind kind) in LoadICRuntime() argument
71 : ICRuntime(thread, profileTypeInfo, slotId, kind) in LoadICRuntime()
87 …CRuntime(JSThread *thread, JSHandle<ProfileTypeInfo> profileTypeInfo, uint32_t slotId, ICKind kind) in StoreICRuntime() argument
88 : ICRuntime(thread, profileTypeInfo, slotId, kind) in StoreICRuntime()
/arkcompiler/runtime_core/static_core/tests/tests-u-runner/tools/generate-es-checked/src/
Dtypes.rb10 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
30 case t[:kind]
47 raise "unknown type kind #{t.kind}"
57 return { :kind => :trivial, :str => "boolean" }
60 return { :kind => :trivial, :str => "number" }
63 return { :kind => :trivial, :str => "string" }
66 return { :kind => :trivial, :str => "bigint" }
70 … return { :kind => :array, :el => { :kind => :trivial, :str => "Object|null|undefined" } }
74 return { :kind => :array, :el => typs[0] }
78 return { :kind => :trivial, :str => "NullishType" }
[all …]
/arkcompiler/runtime_core/static_core/runtime/tooling/sampler/
Dstack_walker_base.h11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
85 template <FrameKind KIND>
88 if constexpr (KIND == FrameKind::INTERPRETER) { // NOLINT in IsBoundaryFrame()
89 return GetBoundaryFrameMethod<KIND>(ptr) == COMPILED_CODE_TO_INTERPRETER; in IsBoundaryFrame()
91 return GetBoundaryFrameMethod<KIND>(ptr) == INTERPRETER_TO_COMPILED_CODE; in IsBoundaryFrame()
95 template <FrameKind KIND>
98 auto frameMethod = reinterpret_cast<uintptr_t>(GetMethodFromBoundary<KIND>(ptr)); in GetBoundaryFrameMethod()
102 template <FrameKind KIND>
106 return *(reinterpret_cast<Method **>(ptr) + BoundaryFrame<KIND>::METHOD_OFFSET); in GetMethodFromBoundary()
109 template <FrameKind KIND>
[all …]
/arkcompiler/ets_runtime/ecmascript/jspandafile/
Dliteral_data_extractor.cpp11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
44 FunctionKind kind; in ExtractObjectDatas() local
47 … &methodId, &kind, &constpool, &entryPoint](const LiteralValue &value, const LiteralTag &tag) { in ExtractObjectDatas()
75 kind = FunctionKind::NORMAL_FUNCTION; in ExtractObjectDatas()
80 kind = FunctionKind::GETTER_FUNCTION; in ExtractObjectDatas()
85 kind = FunctionKind::SETTER_FUNCTION; in ExtractObjectDatas()
90 kind = FunctionKind::GENERATOR_FUNCTION; in ExtractObjectDatas()
95 kind = FunctionKind::ASYNC_GENERATOR_FUNCTION; in ExtractObjectDatas()
101 … DefineMethodInLiteral(thread, jsPandaFile, methodId, constpool, kind, length, entryPoint); in ExtractObjectDatas()
159 FunctionKind kind; in EnumerateLiteralVals() local
[all …]
/arkcompiler/ets_frontend/arkguard/test/grammar/advanced_type/
Ddiscriminated_unions.ts11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19 kind: 'square'; property
24 kind: 'rectangle'; property
30 kind: 'circle'; property
38 switch (s.kind) {
52 let a = {kind: 'square', size: 3};
/arkcompiler/runtime_core/static_core/verification/config/whitelist/
Dwhitelist.cpp11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
22 void DebugConfig::AddWhitelistMethodConfig(WhitelistKind kind, const PandaString &name) in AddWhitelistMethodConfig() argument
24 whitelistNames[static_cast<size_t>(kind)].push_back(name); in AddWhitelistMethodConfig()
28 bool DebugContext::InWhitelist(WhitelistKind kind, uint64_t id) const in InWhitelist() argument
30 return config->whitelistNotEmpty && whitelist.id[static_cast<size_t>(kind)]->count(id) > 0; in InWhitelist()
39 for (auto kind : kindsToAdd) { in InsertIntoWhitelist() local
40 auto k = static_cast<size_t>(kind); in InsertIntoWhitelist()
/arkcompiler/ets_frontend/es2panda/ir/statements/
DvariableDeclaration.cpp11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
35 const char *kind = nullptr; in Dump() local
39 kind = "const"; in Dump()
43 kind = "let"; in Dump()
47 kind = "var"; in Dump()
57 {"kind", kind}, in Dump()
/arkcompiler/ets_runtime/ecmascript/compiler/
Dshare_gate_meta_data.h11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
59 enum class Kind : uint8_t { enum
133 Kind GetKind() const in GetKind()
138 void AssertKind([[maybe_unused]] Kind kind) const in AssertKind() argument
140 ASSERT(GetKind() == kind); in AssertKind()
145 … return GetKind() == Kind::IMMUTABLE_ONE_PARAMETER || GetKind() == Kind::MUTABLE_ONE_PARAMETER || in IsOneParameterKind()
146 GetKind() == Kind::TYPED_BINARY_OP || GetKind() == Kind::TYPED_CALLTARGETCHECK_OP || in IsOneParameterKind()
147 GetKind() == Kind::CALL_NEW; in IsOneParameterKind()
152 return GetKind() == Kind::MUTABLE_STRING; in IsStringType()
199 void SetKind(Kind kind) in SetKind() argument
[all …]
/arkcompiler/ets_runtime/ecmascript/stackmap/litecg/
Dlitecg_stackmap_type.cpp11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
57 int64_t kind = DecodeSLEB128(litecgCallSiteInfo, index); in ConvertToLLVMStackMapInfo() local
59 if (kind == 2) { // kind is 2 means register in ConvertToLLVMStackMapInfo()
61 } else if (kind == 1) { // stack in ConvertToLLVMStackMapInfo()
82 int64_t kind = DecodeSLEB128(litecgDeoptInfo, index); in ConvertToLLVMStackMapInfo() local
85 if (kind == 2) { // kind is 2 means register in ConvertToLLVMStackMapInfo()
87 } else if (kind == 1) { // stack in ConvertToLLVMStackMapInfo()
/arkcompiler/ets_frontend/es2panda/ir/base/
DmetaProperty.cpp11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
28 const char *kind = nullptr; in Dump() local
32 kind = "new.Target"; in Dump()
36 kind = "import.Meta"; in Dump()
44 dumper->Add({{"type", "MetaProperty"}, {"kind", kind}}); in Dump()
Dproperty.h11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
48 …explicit Property(PropertyKind kind, Expression *key, Expression *value, bool isMethod, bool isCom… in Property() argument
50 kind_(kind), in Property()
79 PropertyKind Kind() const in Kind() function
104 static bool IsAccessorKind(PropertyKind kind) in IsAccessorKind() argument
106 return kind == PropertyKind::GET || kind == PropertyKind::SET; in IsAccessorKind()
/arkcompiler/ets_frontend/es2panda/test/parser/ts/
Dtest-ts-key-remapping-via-as.ts11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
20 type NameA = {name: "A", kind: string}
21 type NameB = {name: "B", kind: string}
22 type NameC = {name: "C", kind: string}
/arkcompiler/ets_frontend/ets2panda/ir/expressions/
DmemberExpression.h11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
69 …explicit MemberExpression(Expression *object, Expression *property, MemberExpressionKind kind, boo…
74 kind_(kind),
113 if (Kind() == MemberExpressionKind::ELEMENT_ACCESS) {
121 if (Kind() == MemberExpressionKind::ELEMENT_ACCESS) {
132 [[nodiscard]] MemberExpressionKind Kind() const noexcept
137 void AddMemberKind(MemberExpressionKind kind) noexcept
139 kind_ |= kind;
142 [[nodiscard]] bool HasMemberKind(MemberExpressionKind kind) const noexcept
144 return (kind_ & kind) != 0;
[all …]

12345678910>>...414