Home
last modified time | relevance | path

Searched refs:GetClass (Results 1 – 25 of 80) sorted by relevance

1234

/ark/js_runtime/ecmascript/
Djs_tagged_value-inl.h304 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 …]
Djs_object-inl.h28 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()
Dfree_object.h56 auto hclass = GetClass(); in Available()
66 return GetClass()->IsFreeObject(); in IsFreeObject()
Djs_proxy.h71 GetClass()->SetCallable(callable); in SetCallable()
76 GetClass()->SetConstructor(constructor); in SetConstructor()
Djs_for_in_iterator.cpp39 auto *hclass = object->GetTaggedObject()->GetClass(); in CheckObjProto()
48 return hclass->GetPrototype().GetTaggedObject()->GetClass() == in CheckObjProto()
49 env->GetObjectFunctionPrototypeClass().GetTaggedValue().GetTaggedObject()->GetClass(); in CheckObjProto()
Djs_function.h134 proto.GetTaggedObject()->GetClass()->SetIsPrototype(true); in SetFunctionPrototype()
207 return GetClass()->IsClassConstructor(); in IsClassConstructor()
212 GetClass()->SetClassConstructor(flag); in SetClassConstructor()
/ark/runtime_core/runtime/interpreter/
Druntime_interface.h49 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/
Dclass_linker-inl.h26 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()
Dclass_linker.h65 … 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/
Dclass_linker_test.cpp105 …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 …]
Dmethod_test.cpp94 …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/
Dic_invoke_test.cpp60 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/
Dclass_linker_extension.cpp41 …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()
Druntime_helpers.cpp39 …LOG(ERROR, RUNTIME) << method->GetClass()->GetName() << "." << method->GetName().data << " at " <<… in PrintStackTrace()
Dclass_linker.cpp640 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 …]
Dmethod.cpp278 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/
Dic_runtime.cpp42 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/
Dpt_lang_extension.h36 virtual PtClass GetClass(PtObject object) const = 0;
37 virtual PtClass GetClass(PtProperty property) const = 0;
/ark/runtime_core/runtime/bridge/
Dbridge.cpp37 if (method->GetClass() == nullptr) { in GetCompiledCodeToInterpreterBridge()
40 if (method->GetClass()->GetSourceLang() == panda_file::SourceLang::ECMASCRIPT) { in GetCompiledCodeToInterpreterBridge()
/ark/js_runtime/ecmascript/mem/
Dparallel_marker.cpp85 JSHClass *jsHclass = obj->GetClass(); in ProcessMarkStack()
123 auto jsHclass = obj->GetClass(); in ProcessMarkStack()
151 auto jsHclass = obj->GetClass(); in ProcessMarkStack()
Dtagged_object.h41 JSHClass *GetClass() const;
Dparallel_evacuation.cpp112 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()
Dtagged_object-inl.h42 inline JSHClass *TaggedObject::GetClass() const in GetClass() function
/ark/runtime_core/runtime/core/
Dcore_vm.cpp200 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/
Dslot_bit.cpp25 auto hclass = objectHeader->GetClass(); in GetObjectType()

1234