/arkcompiler/ets_runtime/ecmascript/ |
D | js_hclass.cpp | 176 JSHandle<JSHClass> JSHClass::Clone(const JSThread *thread, const JSHandle<JSHClass> &jshclass, in Clone() argument 179 JSType type = jshclass->GetObjectType(); in Clone() 180 uint32_t size = jshclass->GetInlinedPropsStartSize(); in Clone() 181 uint32_t numInlinedProps = withoutInlinedProperties ? 0 : jshclass->GetInlinedProperties(); in Clone() 184 newJsHClass->Copy(thread, *jshclass); in Clone() 189 newJsHClass->SetLayout(thread, jshclass->GetLayout()); in Clone() 191 if (jshclass->IsTS()) { in Clone() 199 …JSHClass::CloneWithoutInlinedProperties(const JSThread *thread, const JSHandle<JSHClass> &jshclass) in CloneWithoutInlinedProperties() argument 201 return Clone(thread, jshclass, true); in CloneWithoutInlinedProperties() 215 …le<JSHClass> JSHClass::SetPropertyOfObjHClass(const JSThread *thread, JSHandle<JSHClass> &jshclass, in SetPropertyOfObjHClass() argument [all …]
|
D | js_hclass-inl.h | 226 inline void JSHClass::Copy(const JSThread *thread, const JSHClass *jshclass) in Copy() argument 231 SetPrototype(thread, jshclass->GetPrototype()); in Copy() 232 SetBitField(jshclass->GetBitField()); in Copy() 233 SetIsAllTaggedProp(jshclass->IsAllTaggedProp()); in Copy() 234 SetNumberOfProps(jshclass->NumberOfProps()); in Copy()
|
D | js_hclass.h | 341 static JSHandle<JSHClass> Clone(const JSThread *thread, const JSHandle<JSHClass> &jshclass, 343 …SHClass> CloneWithoutInlinedProperties(const JSThread *thread, const JSHandle<JSHClass> &jshclass); 346 …tic JSHandle<JSHClass> SetPropertyOfObjHClass(const JSThread *thread, JSHandle<JSHClass> &jshclass, 352 …JSHandle<JSHClass> TransitionExtension(const JSThread *thread, const JSHandle<JSHClass> &jshclass); 353 …atic JSHandle<JSHClass> TransitionProto(const JSThread *thread, const JSHandle<JSHClass> &jshclass, 355 …andle<JSHClass> TransProtoWithoutLayout(const JSThread *thread, const JSHandle<JSHClass> &jshclass, 364 …JSTaggedValue> EnableProtoChangeMarker(const JSThread *thread, const JSHandle<JSHClass> &jshclass); 369 static void RegisterOnProtoChain(const JSThread *thread, const JSHandle<JSHClass> &jshclass); 371 static bool UnregisterOnProtoChain(const JSThread *thread, const JSHandle<JSHClass> &jshclass); 374 const JSHandle<JSHClass> &jshclass); [all …]
|
D | dump.cpp | 517 static void DumpHClass(const JSHClass *jshclass, std::ostream &os, bool withDetail) in DumpHClass() argument 521 os << "Type :" << JSHClass::DumpJSType(jshclass->GetObjectType()) << "\n"; in DumpHClass() 524 jshclass->GetPrototype().DumpTaggedValue(os); in DumpHClass() 527 JSTaggedValue attrs = jshclass->GetLayout(); in DumpHClass() 536 JSTaggedValue transtions = jshclass->GetTransitions(); in DumpHClass() 544 JSTaggedValue marker = jshclass->GetProtoChangeMarker(); in DumpHClass() 553 JSTaggedValue details = jshclass->GetProtoChangeDetails(); in DumpHClass() 561 JSTaggedValue supers = jshclass->GetSupers(); in DumpHClass() 576 JSTaggedValue vtable = jshclass->GetVTable(); in DumpHClass() 585 os << "IsCtor :" << std::boolalpha << jshclass->IsConstructor(); in DumpHClass() [all …]
|
D | object_factory.h | 492 void InitializeJSObject(const JSHandle<JSObject> &obj, const JSHandle<JSHClass> &jshclass); 494 JSHandle<JSObject> NewJSObjectWithInit(const JSHandle<JSHClass> &jshclass); 544 JSHandle<JSObject> NewJSObject(const JSHandle<JSHClass> &jshclass); 618 JSHandle<JSObject> NewOldSpaceJSObject(const JSHandle<JSHClass> &jshclass); 665 JSHandle<JSObject> NewNonMovableJSObject(const JSHandle<JSHClass> &jshclass);
|
D | object_operator.cpp | 352 JSHClass *jshclass = obj->GetJSHClass(); in LookupPropertyInlinedProps() local 353 int entry = JSHClass::FindPropertyEntry(thread_, jshclass, key_.GetTaggedValue()); in LookupPropertyInlinedProps() 357 JSTaggedValue attrs = jshclass->GetLayout(); in LookupPropertyInlinedProps() 371 entry -= static_cast<int>(jshclass->GetInlinedProperties()); in LookupPropertyInlinedProps()
|
D | object_factory.cpp | 401 JSHandle<JSObject> ObjectFactory::NewJSObject(const JSHandle<JSHClass> &jshclass) in NewJSObject() argument 403 JSHandle<JSObject> obj(thread_, JSObject::Cast(NewObject(jshclass))); in NewJSObject() 579 JSHandle<JSHClass> jshclass(thread_, func->GetJSHClass()); in CloneJSFuction() local 581 JSHandle<JSFunction> cloneFunc = NewJSFunctionByHClass(method, jshclass); in CloneJSFuction() 630 JSHandle<JSObject> ObjectFactory::NewNonMovableJSObject(const JSHandle<JSHClass> &jshclass) in NewNonMovableJSObject() argument 633 … JSObject::Cast(NewNonMovableObject(jshclass, jshclass->GetInlinedProperties()))); in NewNonMovableJSObject() 874 JSHandle<JSHClass> jshclass = JSFunction::GetInstanceJSHClass(thread_, constructor, in NewJSObjectByConstructor() local 876 return NewJSObjectWithInit(jshclass); in NewJSObjectByConstructor() 890 JSHandle<JSHClass> jshclass; in NewJSObjectByConstructor() local 893 jshclass = JSFunction::GetInstanceJSHClass(thread_, constructor, newTarget); in NewJSObjectByConstructor() [all …]
|
D | js_object.cpp | 148 JSHandle<JSHClass> jshclass(thread, receiver->GetJSHClass()); in TransitionToDictionary() local 149 ASSERT(!jshclass->IsDictionaryMode()); in TransitionToDictionary() 150 uint32_t propNumber = jshclass->NumberOfProps(); in TransitionToDictionary() 152 ASSERT(!jshclass->GetLayout().IsNull()); in TransitionToDictionary() 153 JSHandle<LayoutInfo> layoutInfoHandle(thread, jshclass->GetLayout()); in TransitionToDictionary() 159 uint32_t numberInlinedProps = jshclass->GetInlinedProperties(); in TransitionToDictionary() 1262 JSHandle<JSHClass> jshclass(thread, obj->GetJSHClass()); in PreventExtensions() local 1263 JSHandle<JSHClass> newHclass = JSHClass::TransitionExtension(thread, jshclass); in PreventExtensions()
|
D | js_tagged_value-inl.h | 1069 auto *jshclass = GetTaggedObject()->GetClass(); in IsAccessor() local 1070 return jshclass->IsAccessorData() || jshclass->IsInternalAccessor(); in IsAccessor()
|
/arkcompiler/ets_runtime/ecmascript/compiler/trampoline/aarch64/ |
D | optimized_call.cpp | 546 Register jshclass(X2); in JSCallCheck() local 547 __ Ldr(jshclass, MemoryOperand(jsfunc, JSFunction::HCLASS_OFFSET)); in JSCallCheck() 549 __ Ldr(bitfield, MemoryOperand(jshclass, JSHClass::BIT_FIELD_OFFSET)); in JSCallCheck()
|
/arkcompiler/ets_runtime/ecmascript/builtins/ |
D | builtins_string.cpp | 1901 auto jshclass = value.GetTaggedObject()->GetClass(); in ThisStringValue() local 1902 if (jshclass->GetObjectType() == JSType::JS_PRIMITIVE_REF) { in ThisStringValue()
|