/arkcompiler/ets_runtime/ecmascript/ |
D | js_hclass.cpp | 179 JSHandle<JSHClass> JSHClass::Clone(const JSThread *thread, const JSHandle<JSHClass> &jshclass, in Clone() argument 182 JSType type = jshclass->GetObjectType(); in Clone() 183 uint32_t size = jshclass->GetInlinedPropsStartSize(); in Clone() 184 …uint32_t numInlinedProps = withoutInlinedProperties ? 0 : jshclass->GetInlinedProperties() + incIn… in Clone() 187 newJsHClass->Copy(thread, *jshclass); in Clone() 193 newJsHClass->SetLayout(thread, jshclass->GetLayout()); in Clone() 195 if (jshclass->IsTS()) { in Clone() 203 …JSHClass::CloneWithoutInlinedProperties(const JSThread *thread, const JSHandle<JSHClass> &jshclass) in CloneWithoutInlinedProperties() argument 205 return Clone(thread, jshclass, true); in CloneWithoutInlinedProperties() 236 JSHandle<JSHClass> jshclass(thread, obj->GetJSHClass()); in AddProperty() local [all …]
|
D | js_hclass-inl.h | 235 inline void JSHClass::Copy(const JSThread *thread, const JSHClass *jshclass) in Copy() argument 240 SetPrototype(thread, jshclass->GetPrototype()); in Copy() 241 SetBitField(jshclass->GetBitField()); in Copy() 242 SetIsAllTaggedProp(jshclass->IsAllTaggedProp()); in Copy() 243 SetNumberOfProps(jshclass->NumberOfProps()); in Copy() 296 void JSHClass::AddPropertyToNewHClass(const JSThread *thread, JSHandle<JSHClass> &jshclass, in AddPropertyToNewHClass() argument 301 ASSERT(!jshclass->IsDictionaryMode()); in AddPropertyToNewHClass() 322 AddTransitions(thread, jshclass, newJsHClass, key, attr); in AddPropertyToNewHClass() 326 …le<JSHClass> JSHClass::SetPropertyOfObjHClass(const JSThread *thread, JSHandle<JSHClass> &jshclass, in SetPropertyOfObjHClass() argument 330 …JSHClass *newClass = jshclass->FindTransitions(key.GetTaggedValue(), JSTaggedValue(attr.GetPropert… in SetPropertyOfObjHClass() [all …]
|
D | property_accessor.cpp | 46 JSHClass *jshclass = receiverObj->GetJSHClass(); in PreLoad() local 47 if (jshclass->IsDictionaryMode()) { in PreLoad() 103 JSHClass *jshclass = currentObj->GetJSHClass(); in CollectPrototypeInfo() local 104 if (jshclass->IsDictionaryMode()) { in CollectPrototypeInfo() 110 jshclass->SetEnumCache(thread_, JSTaggedValue::Undefined()); in CollectPrototypeInfo()
|
D | js_hclass.h | 393 static JSHandle<JSHClass> Clone(const JSThread *thread, const JSHandle<JSHClass> &jshclass, 395 …SHClass> CloneWithoutInlinedProperties(const JSThread *thread, const JSHandle<JSHClass> &jshclass); 402 …tic JSHandle<JSHClass> SetPropertyOfObjHClass(const JSThread *thread, JSHandle<JSHClass> &jshclass, 410 …JSHandle<JSHClass> TransitionExtension(const JSThread *thread, const JSHandle<JSHClass> &jshclass); 411 …atic JSHandle<JSHClass> TransitionProto(const JSThread *thread, const JSHandle<JSHClass> &jshclass, 413 …andle<JSHClass> TransProtoWithoutLayout(const JSThread *thread, const JSHandle<JSHClass> &jshclass, 415 …ic JSHandle<JSHClass> CloneWithAddProto(const JSThread *thread, const JSHandle<JSHClass> &jshclass, 432 …JSTaggedValue> EnableProtoChangeMarker(const JSThread *thread, const JSHandle<JSHClass> &jshclass); 441 static void RegisterOnProtoChain(const JSThread *thread, const JSHandle<JSHClass> &jshclass); 443 static bool UnregisterOnProtoChain(const JSThread *thread, const JSHandle<JSHClass> &jshclass); [all …]
|
D | dump.cpp | 606 static void DumpHClass(const JSHClass *jshclass, std::ostream &os, bool withDetail) in DumpHClass() argument 610 os << "Type :" << JSHClass::DumpJSType(jshclass->GetObjectType()) << "\n"; in DumpHClass() 613 jshclass->GetPrototype().DumpTaggedValue(os); in DumpHClass() 616 JSTaggedValue attrs = jshclass->GetLayout(); in DumpHClass() 620 LayoutInfo *layout = LayoutInfo::Cast(jshclass->GetLayout().GetTaggedObject()); in DumpHClass() 621 int element = static_cast<int>(jshclass->NumberOfProps()); in DumpHClass() 635 JSTaggedValue transtions = jshclass->GetTransitions(); in DumpHClass() 643 JSTaggedValue marker = jshclass->GetProtoChangeMarker(); in DumpHClass() 652 JSTaggedValue details = jshclass->GetProtoChangeDetails(); in DumpHClass() 660 JSTaggedValue supers = jshclass->GetSupers(); in DumpHClass() [all …]
|
D | object_factory.cpp | 421 JSHandle<JSObject> ObjectFactory::NewJSObject(const JSHandle<JSHClass> &jshclass) in NewJSObject() argument 423 JSHandle<JSObject> obj(thread_, JSObject::Cast(NewObject(jshclass))); in NewJSObject() 602 JSHandle<JSHClass> jshclass(thread_, func->GetJSHClass()); in CloneJSFuction() local 604 JSHandle<JSFunction> cloneFunc = NewJSFunctionByHClass(method, jshclass); in CloneJSFuction() 614 JSHandle<JSHClass> jshclass(thread_, func->GetJSHClass()); in CloneSFunction() local 616 JSHandle<JSFunction> cloneFunc = NewSFunctionByHClass(method, jshclass); in CloneSFunction() 666 JSHandle<JSObject> ObjectFactory::NewNonMovableJSObject(const JSHandle<JSHClass> &jshclass) in NewNonMovableJSObject() argument 669 … JSObject::Cast(NewNonMovableObject(jshclass, jshclass->GetInlinedProperties()))); in NewNonMovableJSObject() 949 JSHandle<JSHClass> jshclass; in NewJSObjectByConstructor() local 951 …jshclass = JSHandle<JSHClass>(thread_, JSFunction::GetOrCreateInitialJSHClass(thread_, constructor… in NewJSObjectByConstructor() [all …]
|
D | object_factory.h | 534 void InitializeJSObject(const JSHandle<JSObject> &obj, const JSHandle<JSHClass> &jshclass); 536 JSHandle<JSObject> NewJSObjectWithInit(const JSHandle<JSHClass> &jshclass); 588 JSHandle<JSObject> NewJSObject(const JSHandle<JSHClass> &jshclass); 667 JSHandle<JSObject> NewOldSpaceJSObject(const JSHandle<JSHClass> &jshclass); 721 JSHandle<JSObject> NewNonMovableJSObject(const JSHandle<JSHClass> &jshclass);
|
D | object_operator.cpp | 543 JSHClass *jshclass = obj->GetJSHClass(); in LookupPropertyInlinedProps() local 544 int entry = JSHClass::FindPropertyEntry(thread_, jshclass, key_.GetTaggedValue()); in LookupPropertyInlinedProps() 548 JSTaggedValue attrs = jshclass->GetLayout(); in LookupPropertyInlinedProps() 562 entry -= static_cast<int>(jshclass->GetInlinedProperties()); in LookupPropertyInlinedProps()
|
D | js_tagged_value-inl.h | 1104 auto *jshclass = GetTaggedObject()->GetClass(); in IsAccessor() local 1105 return jshclass->IsAccessorData() || jshclass->IsInternalAccessor(); in IsAccessor()
|
D | js_object.cpp | 177 JSHandle<JSHClass> jshclass(thread, receiver->GetJSHClass()); in TransitionToDictionary() local 178 ASSERT(!jshclass->IsDictionaryMode()); in TransitionToDictionary() 179 uint32_t propNumber = jshclass->NumberOfProps(); in TransitionToDictionary() 181 ASSERT(!jshclass->GetLayout().IsNull()); in TransitionToDictionary() 182 JSHandle<LayoutInfo> layoutInfoHandle(thread, jshclass->GetLayout()); in TransitionToDictionary() 188 uint32_t numberInlinedProps = jshclass->GetInlinedProperties(); in TransitionToDictionary() 1458 JSHandle<JSHClass> jshclass(thread, obj->GetJSHClass()); in PreventExtensions() local 1459 JSHandle<JSHClass> newHclass = JSHClass::TransitionExtension(thread, jshclass); in PreventExtensions()
|
/arkcompiler/ets_runtime/ecmascript/compiler/trampoline/aarch64/ |
D | optimized_call.cpp | 549 Register jshclass(X2); in JSCallCheck() local 550 __ Ldr(jshclass, MemoryOperand(jsfunc, JSFunction::HCLASS_OFFSET)); in JSCallCheck() 552 __ Ldr(bitfield, MemoryOperand(jshclass, JSHClass::BIT_FIELD_OFFSET)); in JSCallCheck()
|
/arkcompiler/ets_runtime/ecmascript/interpreter/ |
D | slow_runtime_stub.h | 202 static JSTaggedValue UpdateAOTHClass(JSThread *thread, JSTaggedValue jshclass,
|
D | slow_runtime_stub.cpp | 1222 JSTaggedValue SlowRuntimeStub::UpdateAOTHClass(JSThread *thread, JSTaggedValue jshclass, in UpdateAOTHClass() argument 1227 JSHandle<JSHClass> oldhclass(thread, jshclass); in UpdateAOTHClass()
|
/arkcompiler/ets_runtime/ecmascript/builtins/ |
D | builtins_string.cpp | 2019 auto jshclass = value.GetTaggedObject()->GetClass(); in ThisStringValue() local 2020 if (jshclass->GetObjectType() == JSType::JS_PRIMITIVE_REF) { in ThisStringValue()
|
/arkcompiler/ets_runtime/ecmascript/stubs/ |
D | runtime_stubs.cpp | 3157 …JSHandle<JSHClass> jshclass = GetHArg<JSHClass>(argv, argc, 0); // 0: means the zeroth … in DEF_RUNTIME_STUBS() local 3160 return JSHClass::CloneWithAddProto(thread, jshclass, key, proto).GetTaggedValue().GetRawData(); in DEF_RUNTIME_STUBS()
|