/ark/js_runtime/ecmascript/ |
D | js_tagged_value-inl.h | 304 return IsHeapObject() && GetTaggedObject()->GetClass()->IsCallable(); in IsCallable() 309 return IsHeapObject() && GetTaggedObject()->GetClass()->IsConstructor(); in IsConstructor() 318 return IsHeapObject() && GetTaggedObject()->GetClass()->IsExtensible(); in IsExtensible() 323 return IsHeapObject() && GetTaggedObject()->GetClass()->IsClassConstructor(); in IsClassConstructor() 328 return IsHeapObject() && GetTaggedObject()->GetClass()->IsClassPrototype(); in IsClassPrototype() 450 return IsHeapObject() && GetTaggedObject()->GetClass()->IsString(); in IsString() 455 return IsHeapObject() && GetTaggedObject()->GetClass()->IsBigInt(); in IsBigInt() 460 return IsHeapObject() && GetTaggedObject()->GetClass()->IsStringOrSymbol(); in IsStringOrSymbol() 465 return IsHeapObject() && GetTaggedObject()->GetClass()->IsTaggedArray(); in IsTaggedArray() 475 return IsHeapObject() && GetTaggedObject()->GetClass()->IsJSNativePointer(); in IsJSNativePointer() [all …]
|
D | js_object-inl.h | 28 GetClass()->SetBuiltinsCtor(true); in SetBuiltinsCtorMode() 33 return GetClass()->IsBuiltinsCtor(); in IsBuiltinsConstructor() 38 GetClass()->SetCallable(flag); in SetCallable() 43 return GetClass()->IsCallable(); in IsCallable() 66 return GetClass(); in GetJSHClass()
|
D | free_object.h | 56 auto hclass = GetClass(); in Available() 66 return GetClass()->IsFreeObject(); in IsFreeObject()
|
D | js_proxy.h | 71 GetClass()->SetCallable(callable); in SetCallable() 76 GetClass()->SetConstructor(constructor); in SetConstructor()
|
D | js_for_in_iterator.cpp | 39 auto *hclass = object->GetTaggedObject()->GetClass(); in CheckObjProto() 48 return hclass->GetPrototype().GetTaggedObject()->GetClass() == in CheckObjProto() 49 env->GetObjectFunctionPrototypeClass().GetTaggedValue().GetTaggedObject()->GetClass(); in CheckObjProto()
|
D | js_function.h | 134 proto.GetTaggedObject()->GetClass()->SetIsPrototype(true); in SetFunctionPrototype() 207 return GetClass()->IsClassConstructor(); in IsClassConstructor() 212 GetClass()->SetClassConstructor(flag); in SetClassConstructor()
|
/ark/runtime_core/runtime/interpreter/ |
D | runtime_interface.h | 49 auto resolved_id = caller.GetClass()->ResolveMethodIndex(id.AsIndex()); in ResolveMethod() 56 auto *klass = method->GetClass(); in ResolveMethod() 66 auto resolved_id = caller->GetClass()->ResolveMethodIndex(method_id.AsIndex()); in GetMethodName() 74 auto resolved_id = caller->GetClass()->ResolveMethodIndex(method_id.AsIndex()); in GetMethodClass() 80 return class_linker->GetClass(*caller, class_id); in GetMethodClass() 85 auto resolved_id = caller->GetClass()->ResolveMethodIndex(method_id.AsIndex()); in GetMethodArgumentsCount() 94 auto resolved_id = caller.GetClass()->ResolveFieldIndex(id.AsIndex()); in ResolveField() 101 auto *klass = field->GetClass(); in ResolveField() 102 if (!klass->IsInitialized() && !class_linker->InitializeClass(thread, field->GetClass())) { in ResolveField() 112 auto resolved_id = caller.GetClass()->ResolveClassIndex(id.AsIndex()); in ResolveClass() [all …]
|
/ark/runtime_core/runtime/include/ |
D | class_linker-inl.h | 26 inline Class *ClassLinker::GetClass(const Method &caller, panda_file::File::EntityId id, in GetClass() function 36 klass = ext->GetClass(*caller.GetPandaFile(), id, caller.GetClass()->GetLoadContext(), in GetClass()
|
D | class_linker.h | 65 … Class *GetClass(const uint8_t *descriptor, bool need_copy_descriptor, ClassLinkerContext *context, 68 …Class *GetClass(const panda_file::File &pf, panda_file::File::EntityId id, ClassLinkerContext *con… 71 Class *GetClass(const Method &caller, panda_file::File::EntityId id,
|
/ark/runtime_core/runtime/tests/ |
D | class_linker_test.cpp | 105 …klass = ext->GetClass(ClassHelper::GetDescriptor(utf::CStringAsMutf8("_GLOBAL"), descriptor.get())… in TEST_F() 110 …EXPECT_EQ(klass, ext->GetClass(ClassHelper::GetDescriptor(utf::CStringAsMutf8("_GLOBAL"), &descrip… in TEST_F() 139 ext->GetClass(ClassHelper::GetDescriptor(utf::CStringAsMutf8("_GLOBAL"), &descriptor)); in TEST_F() 433 … Class *klass = ext->GetClass(ClassHelper::GetDescriptor(utf::CStringAsMutf8("R2"), &descriptor)); in TEST_F() 537 …auto *klass = ext->GetClass(ClassHelper::GetDescriptor(utf::CStringAsMutf8("_GLOBAL"), &descriptor… in TEST_F() 543 auto *external_class = class_linker->GetClass(*method, panda_file::File::EntityId(offset)); in TEST_F() 560 external_class = class_linker->GetClass(*method, panda_file::File::EntityId(offset)); in TEST_F() 586 …auto *klass = ext->GetClass(ClassHelper::GetArrayDescriptor(utf::CStringAsMutf8("UnknownClass"), 1… in TEST_F() 590 …auto *cls = ext->GetClass(ClassHelper::GetArrayDescriptor(utf::CStringAsMutf8("R"), i, &descriptor… in TEST_F() 600 …auto *klass = ext->GetClass(ClassHelper::GetDescriptor(utf::CStringAsMutf8(class_name), &descripto… in GetMethod() [all …]
|
D | method_test.cpp | 94 …Class *klass = extension->GetClass(ClassHelper::GetDescriptor(utf::CStringAsMutf8("_GLOBAL"), &des… in VerifyLineNumber() 157 …Class *klass = extension->GetClass(ClassHelper::GetDescriptor(utf::CStringAsMutf8("_GLOBAL"), &des… in TEST_F() 218 …Class *klass = extension->GetClass(ClassHelper::GetDescriptor(utf::CStringAsMutf8("_GLOBAL"), &des… in TEST_F() 254 …Class *klass = extension->GetClass(ClassHelper::GetDescriptor(utf::CStringAsMutf8("R"), &descripto… in TEST_F() 291 …Class *klass = extension->GetClass(ClassHelper::GetDescriptor(utf::CStringAsMutf8("_GLOBAL"), &des… in TEST_F() 375 …Class *klass = extension->GetClass(ClassHelper::GetDescriptor(utf::CStringAsMutf8("_GLOBAL"), &des… in TEST_F() 386 …Class *klass = extension->GetClass(ClassHelper::GetDescriptor(utf::CStringAsMutf8("R"), &descripto… in TEST_F() 490 …Class *klass = extension->GetClass(ClassHelper::GetDescriptor(utf::CStringAsMutf8("_GLOBAL"), &des… in TEST_F()
|
/ark/js_runtime/ecmascript/ic/tests/ |
D | ic_invoke_test.cpp | 60 func.GetTaggedValue().GetTaggedObject()->GetClass()->SetClassConstructor(true); in HWTEST_F_L0() 79 func0.GetTaggedValue().GetTaggedObject()->GetClass()->SetClassConstructor(true); in HWTEST_F_L0() 83 func1.GetTaggedValue().GetTaggedObject()->GetClass()->SetClassConstructor(true); in HWTEST_F_L0() 87 func2.GetTaggedValue().GetTaggedObject()->GetClass()->SetClassConstructor(true); in HWTEST_F_L0()
|
/ark/runtime_core/runtime/ |
D | class_linker_extension.cpp | 41 …return extension_->GetClassLinker()->GetClass(descriptor, need_copy_descriptor, this, error_handle… in LoadClass() 54 auto *cls = extension_->GetClass(descriptor, need_copy_descriptor, nullptr, &handler); in LoadClass() 154 Class *ClassLinkerExtension::GetClass(const uint8_t *descriptor, bool need_copy_descriptor /* = tru… in GetClass() function in panda::ClassLinkerExtension 161 return class_linker_->GetClass(descriptor, need_copy_descriptor, ResolveContext(context), in GetClass() 174 class_linker->GetExtension(ctx)->GetClass(ctx.GetClassNotFoundExceptionDescriptor()); in WrapClassNotFoundExceptionIfNeeded() 184 Class *ClassLinkerExtension::GetClass(const panda_file::File &pf, panda_file::File::EntityId id, in GetClass() function in panda::ClassLinkerExtension 191 …auto *cls = class_linker_->GetClass(pf, id, ResolveContext(context), ResolveErrorHandler(error_han… in GetClass()
|
D | runtime_helpers.cpp | 39 …LOG(ERROR, RUNTIME) << method->GetClass()->GetName() << "." << method->GetName().data << " at " <<… in PrintStackTrace()
|
D | class_linker.cpp | 640 auto *base_class = ext->GetClass(pf, base_class_id, context, error_handler); in LoadBaseClass() 668 auto *iface = GetClass(pf, id, context, error_handler); in LoadInterfaces() 941 Class *component_class = GetClass(sp.cend(), need_copy_descriptor, context, error_handler); in LoadArrayClass() 999 Class *ClassLinker::GetClass(const uint8_t *descriptor, bool need_copy_descriptor, ClassLinkerConte… in GetClass() function in panda::ClassLinker 1029 Class *ClassLinker::GetClass(const panda_file::File &pf, panda_file::File::EntityId id, ClassLinker… in GetClass() function in panda::ClassLinker 1101 Class *klass = GetClass(pf, class_id, context, error_handler); in GetMethod() 1127 auto *context = caller.GetClass()->GetLoadContext(); in GetMethod() 1128 auto *ext = GetExtension(caller.GetClass()->GetSourceLang()); in GetMethod() 1129 Class *klass = ext->GetClass(*pf, class_id, context, error_handler); in GetMethod() 1273 Class *klass = GetClass(pf, field_data_accessor.GetClassId(), context, error_handler); in GetField() [all …]
|
D | method.cpp | 278 ss << PandaString(GetClass()->GetName()) << "::" << utf::Mutf8AsCString(Method::GetName().data); in GetFullName() 352 auto type_id = GetClass()->ResolveClassIndex(type_idx); in FindCatchBlock() 353 … auto *handler_class = Runtime::GetCurrent()->GetClassLinker()->GetClass(*this, type_id); in FindCatchBlock() 450 panda_file::ClassDataAccessor cda(*panda_file_, GetClass()->GetFileId()); in GetClassSourceFile() 586 auto *klass = GetClass(); in EnqueueForVerification()
|
/ark/js_runtime/ecmascript/ic/ |
D | ic_runtime.cpp | 42 JSHandle<JSHClass> hclass(GetThread(), JSHandle<JSObject>::Cast(receiver)->GetClass()); in UpdateLoadHandler() 96 JSHandle<JSHClass> hclass(thread_, JSHandle<JSObject>::Cast(receiver)->GetClass()); in UpdateStoreHandler() 126 … << ", receiver is " << receiver->GetTaggedObject()->GetClass()->IsDictionaryMode() in TraceIC() 130 … << ", receiver is " << receiver->GetTaggedObject()->GetClass()->IsDictionaryMode() in TraceIC() 193 …ceiverHClass(JSHandle<JSTaggedValue>(GetThread(), JSHandle<JSObject>::Cast(receiver)->GetClass())); in StoreMiss()
|
/ark/runtime_core/runtime/include/tooling/ |
D | pt_lang_extension.h | 36 virtual PtClass GetClass(PtObject object) const = 0; 37 virtual PtClass GetClass(PtProperty property) const = 0;
|
/ark/runtime_core/runtime/bridge/ |
D | bridge.cpp | 37 if (method->GetClass() == nullptr) { in GetCompiledCodeToInterpreterBridge() 40 if (method->GetClass()->GetSourceLang() == panda_file::SourceLang::ECMASCRIPT) { in GetCompiledCodeToInterpreterBridge()
|
/ark/js_runtime/ecmascript/mem/ |
D | parallel_marker.cpp | 85 JSHClass *jsHclass = obj->GetClass(); in ProcessMarkStack() 123 auto jsHclass = obj->GetClass(); in ProcessMarkStack() 151 auto jsHclass = obj->GetClass(); in ProcessMarkStack()
|
D | tagged_object.h | 41 JSHClass *GetClass() const;
|
D | parallel_evacuation.cpp | 112 auto klass = header->GetClass(); in EvacuateRegion() 150 auto klass = object->GetClass(); in VerifyHeapObject() 331 auto klass = obj->GetClass(); in UpdateNewRegionReference() 352 JSHClass *klass = header->GetClass(); in UpdateAndSweepNewRegionReference()
|
D | tagged_object-inl.h | 42 inline JSHClass *TaggedObject::GetClass() const in GetClass() function
|
/ark/runtime_core/runtime/core/ |
D | core_vm.cpp | 200 auto *array_klass = class_linker->GetExtension(ctx)->GetClass(utf::CStringAsMutf8(class_name)); in CreateArgumentsArray() 228 if (!class_linker->InitializeClass(thread, entrypoint->GetClass())) { in InvokeEntrypointImpl() 229 … LOG(ERROR, RUNTIME) << "Cannot initialize class '" << entrypoint->GetClass()->GetName() << "'"; in InvokeEntrypointImpl()
|
/ark/js_runtime/ecmascript/snapshot/mem/ |
D | slot_bit.cpp | 25 auto hclass = objectHeader->GetClass(); in GetObjectType()
|