Home
last modified time | relevance | path

Searched refs:EnumCacheKind (Results 1 – 12 of 12) sorted by relevance

/arkcompiler/ets_runtime/ecmascript/
Djs_for_in_iterator.cpp25 …nIterator::IsEnumCacheValid(JSTaggedValue receiver, JSTaggedValue cachedHclass, EnumCacheKind kind) in IsEnumCacheValid()
32 if (kind == EnumCacheKind::SIMPLE) { in IsEnumCacheValid()
35 ASSERT(kind == EnumCacheKind::PROTOCHAIN); in IsEnumCacheValid()
86 EnumCacheKind kind = JSObject::GetEnumCacheKind(thread, taggedKeys); in NextInternal()
Djs_object-inl.h482 inline void JSObject::SetEnumCacheKind(JSThread *thread, TaggedArray *array, EnumCacheKind kind) in SetEnumCacheKind()
487 inline EnumCacheKind JSObject::GetEnumCacheKind(JSThread *thread, TaggedArray *array) in GetEnumCacheKind()
489 … return static_cast<EnumCacheKind>(array->Get(thread, EnumCache::ENUM_CACHE_KIND_OFFSET).GetInt()); in GetEnumCacheKind()
492 inline EnumCacheKind JSObject::GetEnumCacheKind(JSThread *thread, JSTaggedValue enumCache) in GetEnumCacheKind()
495 return EnumCacheKind::NONE; in GetEnumCacheKind()
499 return EnumCacheKind::SIMPLE; in GetEnumCacheKind()
Dproperty_accessor.cpp131 JSObject::SetEnumCacheKind(thread_, *newArray, EnumCacheKind::SIMPLE); in InitSimplePropertiesEnumCache()
178 …tEnumCacheKind(thread_, TaggedArray::Cast(fastKeysArray_->GetTaggedObject()), EnumCacheKind::NONE); in TryInitEnumCacheWithProtoChainInfo()
186 thread_, TaggedArray::Cast(fastKeysArray_->GetTaggedObject()), EnumCacheKind::PROTOCHAIN); in TryInitEnumCacheWithProtoChainInfo()
312 JSObject::SetEnumCacheKind(thread_, *keyArray, EnumCacheKind::NONE); in MergeRemainings()
Djs_for_in_iterator.h47 …static bool IsEnumCacheValid(JSTaggedValue receiver, JSTaggedValue cachedHclass, EnumCacheKind kin…
Djs_object.h47 using EnumCacheKind = EnumCache::EnumCacheKind; variable
726 static void SetEnumCacheKind(JSThread *thread, TaggedArray *array, EnumCacheKind kind);
727 static EnumCacheKind GetEnumCacheKind(JSThread *thread, TaggedArray *array);
728 static EnumCacheKind GetEnumCacheKind(JSThread *thread, JSTaggedValue enumCache);
Djs_object.cpp507 if (JSObject::GetEnumCacheKind(thread, enumCache) == EnumCacheKind::ONLY_OWN_KEYS) { in GetAllEnumKeys()
519 JSObject::SetEnumCacheKind(thread, *keyArray, EnumCacheKind::ONLY_OWN_KEYS); in GetAllEnumKeys()
2440 EnumCacheKind kind = JSObject::GetEnumCacheKind(thread, enumCache); in TryGetEnumCache()
2443 case EnumCacheKind::SIMPLE: in TryGetEnumCache()
2446 case EnumCacheKind::PROTOCHAIN: in TryGetEnumCache()
Djs_hclass.h327 enum class EnumCacheKind : uint8_t { enum
/arkcompiler/ets_runtime/ecmascript/base/
Dfast_json_stringifier.cpp495 if (JSObject::GetEnumCacheKind(thread_, enumCache) == EnumCacheKind::ONLY_OWN_KEYS) { in TryCacheSerializeKeys()
780 if (JSObject::GetEnumCacheKind(thread_, enumCache) == EnumCacheKind::ONLY_OWN_KEYS) { in DefaultSerializeKeys()
Djson_stringifier.cpp648 if (JSObject::GetEnumCacheKind(thread_, enumCache) == EnumCacheKind::ONLY_OWN_KEYS) { in SerializeKeys()
/arkcompiler/ets_runtime/ecmascript/compiler/
Dmcr_circuit_builder.cpp1235 DEFVALUE(result, env_, VariableType::INT32(), Int32(static_cast<int32_t>(EnumCacheKind::NONE))); in GetEnumCacheKind()
1247 result = Int32(static_cast<int32_t>(EnumCacheKind::SIMPLE)); in GetEnumCacheKind()
1280 Branch(Int32Equal(kind, Int32(static_cast<int32_t>(EnumCacheKind::SIMPLE))), in IsEnumCacheValid()
Dstub_builder.cpp6535 Branch(Int32Equal(kind, Int32(static_cast<int32_t>(EnumCacheKind::SIMPLE))), in TryGetEnumCache()
6542 Branch(Int32Equal(kind, Int32(static_cast<int32_t>(EnumCacheKind::PROTOCHAIN))), in TryGetEnumCache()
/arkcompiler/ets_runtime/ecmascript/compiler/builtins/
Dbuiltins_object_stub_builder.cpp1096 Branch(Int32Equal(kind, Int32(static_cast<int32_t>(EnumCacheKind::ONLY_OWN_KEYS))), in GetAllEnumKeys()
1114 IntToTaggedInt(Int32(static_cast<int32_t>(EnumCacheKind::ONLY_OWN_KEYS)))); in GetAllEnumKeys()