Home
last modified time | relevance | path

Searched refs:caller (Results 1 - 25 of 49) sorted by relevance

12

/arkcompiler/runtime_core/static_core/runtime/interpreter/
H A Dcache.h26 bool Has(const void *pc, Method *caller) const in Has()
29 return entry.pc == pc && entry.caller == caller; in Has()
33 T *Get(const void *pc, Method *caller) const in Get()
35 if (UNLIKELY(!Has(pc, caller))) { in Get()
42 void Set(const void *pc, T *item, Method *caller) in Set() argument
44 data_[GetIndex(pc)] = {pc, caller, item}; in Set()
56 Method *caller {nullptr};
H A Druntime_interface.h40 static Method *ResolveMethod(ManagedThread *thread, const Method &caller, BytecodeId id) in ResolveMethod() argument
42 auto resolvedId = caller.GetClass()->ResolveMethodIndex(id.AsIndex()); in ResolveMethod()
44 auto *method = classLinker->GetMethod(caller, resolvedId); in ResolveMethod()
57 static const uint8_t *GetMethodName(const Method *caller, BytecodeId methodId) in GetMethodName() argument
59 auto resolvedId = caller->GetClass()->ResolveMethodIndex(methodId.AsIndex()); in GetMethodName()
60 const auto *pf = caller->GetPandaFile(); in GetMethodName()
65 static Class *GetMethodClass(const Method *caller, BytecodeId methodId) in GetMethodClass() argument
67 auto resolvedId = caller->GetClass()->ResolveMethodIndex(methodId.AsIndex()); in GetMethodClass()
68 const auto *pf = caller->GetPandaFile(); in GetMethodClass()
73 return classLinker->GetClass(*caller, classI in GetMethodClass()
76 GetMethodArgumentsCount(Method *caller, BytecodeId methodId) GetMethodArgumentsCount() argument
85 ResolveField(ManagedThread *thread, const Method &caller, BytecodeId id) ResolveField() argument
103 ResolveClass(ManagedThread *thread, const Method &caller, BytecodeId id) ResolveClass() argument
123 ResolveLiteralArray(PandaVM *vm, const Method &caller, BytecodeId id) ResolveLiteralArray() argument
[all...]
/arkcompiler/runtime_core/static_core/platforms/unix/libpandabase/
H A Dmem_hooks.cpp73 bool PandaHooks::ShouldCountAllocation(const void *caller) in ShouldCountAllocation() argument
75 return !ignoreCodeRange_.Contains(ToUintPtr(caller)); in ShouldCountAllocation()
79 void *PandaHooks::MallocHook(size_t size, const void *caller) in MallocHook() argument
81 if (ShouldCountAllocation(caller)) { in MallocHook()
100 void *PandaHooks::MemalignHook(size_t alignment, size_t size, const void *caller) in MemalignHook() argument
102 if (ShouldCountAllocation(caller)) { in MemalignHook()
121 void PandaHooks::FreeHook(void *ptr, [[maybe_unused]] const void *caller) in FreeHook() argument
153 void *caller = __builtin_return_address(0); variable
154 return ark::os::mem_hooks::PandaHooks::MallocHook(size, caller);
166 void *caller variable
179 void *caller = __builtin_return_address(0); global() variable
[all...]
H A Dmem_hooks.h40 static void *MallocHook(size_t size, const void *caller);
41 static void *MemalignHook(size_t alignment, size_t size, const void *caller);
42 static void FreeHook(void *ptr, const void *caller);
71 static bool ShouldCountAllocation(const void *caller);
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/
H A Dets_entrypoints.cpp159 Method *caller, const uint8_t *pc) in LookupFieldByNameEntrypoint()
163 auto rawField = classLinker->GetField(*caller, caller->GetClass()->ResolveFieldIndex(id)); in LookupFieldByNameEntrypoint()
166 *entry = {pc, caller, static_cast<void *>(field)}; in LookupFieldByNameEntrypoint()
174 Method *LookupGetterByNameEntrypoint(InterpreterCache::Entry *entry, ObjectHeader *obj, uint32_t id, Method *caller, in LookupGetterByNameEntrypoint() argument
179 auto rawField = classLinker->GetField(*caller, caller->GetClass()->ResolveFieldIndex(id)); in LookupGetterByNameEntrypoint()
183 *entry = {pc, caller, reinterpret_cast<Method *>(mUint | METHOD_FLAG_MASK)}; in LookupGetterByNameEntrypoint()
189 Method *LookupSetterByNameEntrypoint(InterpreterCache::Entry *entry, ObjectHeader *obj, uint32_t id, Method *caller, in LookupSetterByNameEntrypoint() argument
194 auto rawField = classLinker->GetField(*caller, calle in LookupSetterByNameEntrypoint()
158 LookupFieldByNameEntrypoint(InterpreterCache::Entry *entry, ObjectHeader *obj, uint32_t id, Method *caller, const uint8_t *pc) LookupFieldByNameEntrypoint() argument
203 LookupGetterByNameShortEntrypoint(InterpreterCache::Entry *entry, ObjectHeader *obj, uint32_t id, Method *caller, const uint8_t *pc) LookupGetterByNameShortEntrypoint() argument
209 LookupGetterByNameLongEntrypoint(InterpreterCache::Entry *entry, ObjectHeader *obj, uint32_t id, Method *caller, const uint8_t *pc) LookupGetterByNameLongEntrypoint() argument
215 LookupGetterByNameObjEntrypoint(InterpreterCache::Entry *entry, ObjectHeader *obj, uint32_t id, Method *caller, const uint8_t *pc) LookupGetterByNameObjEntrypoint() argument
221 LookupSetterByNameShortEntrypoint(InterpreterCache::Entry *entry, ObjectHeader *obj, uint32_t id, Method *caller, const uint8_t *pc) LookupSetterByNameShortEntrypoint() argument
227 LookupSetterByNameLongEntrypoint(InterpreterCache::Entry *entry, ObjectHeader *obj, uint32_t id, Method *caller, const uint8_t *pc) LookupSetterByNameLongEntrypoint() argument
233 LookupSetterByNameObjEntrypoint(InterpreterCache::Entry *entry, ObjectHeader *obj, uint32_t id, Method *caller, const uint8_t *pc) LookupSetterByNameObjEntrypoint() argument
239 ThrowEtsExceptionNoSuchGetterEntrypoint(ObjectHeader *obj, uint32_t id, Method *caller) ThrowEtsExceptionNoSuchGetterEntrypoint() argument
253 ThrowEtsExceptionNoSuchSetterEntrypoint(ObjectHeader *obj, uint32_t id, Method *caller) ThrowEtsExceptionNoSuchSetterEntrypoint() argument
[all...]
/arkcompiler/runtime_core/static_core/runtime/include/
H A Dclass_linker-inl.h26 inline Class *ClassLinker::GetClass(const Method &caller, panda_file::File::EntityId id, in GetClass() argument
32 Class *klass = caller.GetPandaFile()->GetPandaCache()->GetClassFromCache(id); in GetClass()
36 LanguageContext ctx = Runtime::GetCurrent()->GetLanguageContext(caller); in GetClass()
39 klass = ext->GetClass(*caller.GetPandaFile(), id, caller.GetClass()->GetLoadContext(), in GetClass()
42 caller.GetPandaFile()->GetPandaCache()->SetClassCache(id, klass); in GetClass()
/arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/tests/perf/benchmarks/
H A Dlauncher.js16 let initBenchmarks = require('./caller.js').initBenchmarks;
52 let caller = benchmarks[bench];
53 if (!caller) {
60 caller(warmup);
65 caller(iters);
78 console.log('Expected <test name> <caller-site(JS/STS)> <callee-site(JS/STS)> <warmup iters> <bench iters>');
/arkcompiler/runtime_core/static_core/runtime/tooling/
H A Dmemory_allocation_dumper.h84 void DumpAllocation(const char *err, const char *caller, const PandaString &klassName, ObjectHeader *object, in DumpAllocation() argument
89 dumpstream_ << err << "," << time::GetCurrentTimeInMicros() << "," << caller << "," << klassName << "," in DumpAllocation()
93 void DumpNotAllocEvent(const char *err, const char *caller) in DumpNotAllocEvent() argument
96 dumpstream_ << err << "," << time::GetCurrentTimeInMicros() << "," << caller << std::endl; in DumpNotAllocEvent()
/arkcompiler/runtime_core/static_core/runtime/entrypoints/
H A Dentrypoints.cpp317 extern "C" coretypes::Array *ResolveLiteralArrayEntrypoint(const Method *caller, uint32_t typeId) in ResolveLiteralArrayEntrypoint() argument
321 auto arr = Runtime::GetCurrent()->ResolveLiteralArray(ManagedThread::GetCurrent()->GetVM(), *caller, typeId); in ResolveLiteralArrayEntrypoint()
446 extern "C" ObjectHeader *ResolveClassObjectEntrypoint(const Method *caller, FileEntityId typeId) in ResolveClassObjectEntrypoint() argument
449 auto klass = reinterpret_cast<Class *>(ResolveClassEntrypoint(caller, typeId)); in ResolveClassObjectEntrypoint()
453 extern "C" Class *ResolveClassEntrypoint(const Method *caller, FileEntityId typeId) in ResolveClassEntrypoint() argument
457 Class *klass = classLinker->GetClass(*caller, panda_file::File::EntityId(typeId)); in ResolveClassEntrypoint()
465 extern "C" coretypes::String *ResolveStringEntrypoint(const Method *caller, FileEntityId id) in ResolveStringEntrypoint() argument
468 return Runtime::GetCurrent()->ResolveStringFromCompiledCode(ManagedThread::GetCurrent()->GetVM(), *caller, in ResolveStringEntrypoint()
472 extern "C" coretypes::String *ResolveStringAotEntrypoint(const Method *caller, FileEntityId id, ObjectHeader **slot) in ResolveStringAotEntrypoint() argument
478 auto str = runtime->ResolveStringFromCompiledCode(vm, *caller, ar in ResolveStringAotEntrypoint()
710 InitializeClassByIdEntrypoint(const Method *caller, FileEntityId id) InitializeClassByIdEntrypoint() argument
742 ResolveVirtualCallAotEntrypoint(const Method *caller, ObjectHeader *obj, size_t calleeId, [[maybe_unused]] uintptr_t cacheAddr) ResolveVirtualCallAotEntrypoint() argument
787 ResolveUnknownVirtualCallEntrypoint(const Method *caller, ObjectHeader *obj, size_t calleeId, size_t *slot) ResolveUnknownVirtualCallEntrypoint() argument
850 GetCalleeMethodEntrypoint(const Method *caller, size_t calleeId) GetCalleeMethodEntrypoint() argument
862 GetUnknownCalleeMethodEntrypoint(const Method *caller, size_t calleeId, size_t *slot) GetUnknownCalleeMethodEntrypoint() argument
1172 GetClassIdEntrypoint(const Method *caller, uint32_t classId) GetClassIdEntrypoint() argument
1178 CreateArrayByIdEntrypoint(ManagedThread *thread, const Method *caller, uint32_t classId, int32_t length) CreateArrayByIdEntrypoint() argument
1190 CreateMultiDimArray(ManagedThread *thread, Frame *frame, Class *klass, Method *caller, uint32_t methodId, const uint8_t *pc) CreateMultiDimArray() argument
1200 CreateMultiDimensionalArrayById(ManagedThread *thread, Frame *frame, Class *klass, Method *caller, uint32_t methodId, const uint8_t *pc, int32_t formatIdx) CreateMultiDimensionalArrayById() argument
1261 ResolveLiteralArrayByIdEntrypoint(ManagedThread *thread, const Method *caller, uint32_t typeId) ResolveLiteralArrayByIdEntrypoint() argument
1268 ResolveTypeByIdEntrypoint(ManagedThread *thread, Method *caller, uint32_t id, InterpreterCache::Entry *entry, const uint8_t *pc) ResolveTypeByIdEntrypoint() argument
1280 GetFieldByIdEntrypoint([[maybe_unused]] ManagedThread *thread, Method *caller, uint32_t fieldId, InterpreterCache::Entry *entry, const uint8_t *pc) GetFieldByIdEntrypoint() argument
1293 GetStaticFieldByIdEntrypoint(ManagedThread *thread, Method *caller, uint32_t fieldId, InterpreterCache::Entry *entry, const uint8_t *pc) GetStaticFieldByIdEntrypoint() argument
1306 GetCalleeMethodFromBytecodeId(ManagedThread *thread, Method *caller, uint32_t calleeId, InterpreterCache::Entry *entry, const uint8_t *pc) GetCalleeMethodFromBytecodeId() argument
1325 ResolveVirtualMethod(const Method *callee, Frame *frame, const ObjectPointerType objPtr, const uint8_t *pc, Method *caller) ResolveVirtualMethod() argument
[all...]
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/interpreter/
H A Dinterpreter-inl.h206 auto caller = this->GetFrame()->GetMethod(); in HandleEtsLdobjName() local
207 auto rawField = classLinker->GetField(*caller, caller->GetClass()->ResolveFieldIndex(id.AsIndex())); in HandleEtsLdobjName()
248 auto caller = this->GetFrame()->GetMethod(); in HandleEtsLdobjNameWide() local
249 auto rawField = classLinker->GetField(*caller, caller->GetClass()->ResolveFieldIndex(id.AsIndex())); in HandleEtsLdobjNameWide()
290 auto caller = this->GetFrame()->GetMethod(); in HandleEtsLdobjNameObj() local
291 auto rawField = classLinker->GetField(*caller, caller->GetClass()->ResolveFieldIndex(id.AsIndex())); in HandleEtsLdobjNameObj()
334 auto caller in HandleEtsStobjName() local
376 auto caller = this->GetFrame()->GetMethod(); HandleEtsStobjNameWide() local
418 auto caller = this->GetFrame()->GetMethod(); HandleEtsStobjNameObj() local
[all...]
/arkcompiler/runtime_core/static_core/libllvmbackend/
H A Dllvm_ark_interface.cpp124 int32_t LLVMArkInterface::CreateIntfInlineCacheSlotId(const llvm::Function *caller) const in CreateIntfInlineCacheSlotId()
127 auto callerName = caller->getName(); in CreateIntfInlineCacheSlotId()
578 LLVMArkInterface::MethodId LLVMArkInterface::GetMethodId(const llvm::Function *caller, in GetMethodId() argument
582 ASSERT(caller != nullptr); in GetMethodId()
583 auto callerName = caller->getName(); in GetMethodId()
598 void LLVMArkInterface::RememberFunctionCall(const llvm::Function *caller, const llvm::Function *callee, in RememberFunctionCall() argument
602 ASSERT(caller != nullptr); in RememberFunctionCall()
603 auto callerName = caller->getName(); in RememberFunctionCall()
613 bool ark::llvmbackend::LLVMArkInterface::IsRememberedCall(const llvm::Function *caller, in IsRememberedCall() argument
616 ASSERT(caller ! in IsRememberedCall()
636 auto caller = methodPtrs_.find(call->getFunction()->getName()); IsExternal() local
645 auto caller = methodPtrs_.find(call->getFunction()->getName()); ResolveVirtual() local
662 GetPltSlotId(const llvm::Function *caller, const llvm::Function *callee) const GetPltSlotId() argument
716 GetVTableOffset(llvm::Function *caller, uint32_t methodId) const GetVTableOffset() argument
730 auto caller = methodPtrs_.find(call->getFunction()->getName()); IsInterfaceMethod() local
[all...]
H A Dllvm_ark_interface.h116 bool IsRememberedCall(const llvm::Function *caller, const llvm::Function *callee) const;
123 MethodId GetMethodId(const llvm::Function *caller, const llvm::Function *callee) const;
128 uint32_t GetVTableOffset(llvm::Function *caller, uint32_t methodId) const;
130 void RememberFunctionCall(const llvm::Function *caller, const llvm::Function *callee, MethodId methodId);
132 int32_t GetPltSlotId(const llvm::Function *caller, const llvm::Function *callee) const;
151 int32_t CreateIntfInlineCacheSlotId(const llvm::Function *caller) const;
H A Dutils.cpp80 llvm::Value *CreateLoadMethodUsingVTable(llvm::Value *thiz, llvm::Function *caller, size_t methodId, in CreateLoadMethodUsingVTable() argument
84 ASSERT(caller != nullptr); in CreateLoadMethodUsingVTable()
87 auto offset = arkInterface->GetVTableOffset(caller, methodId); in CreateLoadMethodUsingVTable()
H A Dutils.h31 llvm::Value *CreateLoadMethodUsingVTable(llvm::Value *thiz, llvm::Function *caller, size_t methodId,
H A Dllvm_aot_compiler.h127 void AddInlineMethodByDepth(WrappedModule &module, compiler::Graph *caller,
130 void AddInlineFunctionsByDepth(WrappedModule &module, compiler::Graph *caller, int32_t depth);
H A Dllvm_aot_compiler.cpp707 void LLVMAotCompiler::AddInlineMethodByDepth(WrappedModule &module, compiler::Graph *caller, in AddInlineMethodByDepth() argument
712 << "' for caller = '" << runtime_->GetMethodFullName(caller->GetMethod()) in AddInlineMethodByDepth()
714 "function is external for the caller"; in AddInlineMethodByDepth()
729 << "' for caller = '" << runtime_->GetMethodFullName(caller->GetMethod()) in AddInlineMethodByDepth()
737 << "' for caller = '" << runtime_->GetMethodFullName(caller->GetMethod()) << "'"; in AddInlineMethodByDepth()
742 << "because '" << runtime_->GetMethodFullName(caller->GetMethod(), true) << "' calls it"; in AddInlineMethodByDepth()
746 void LLVMAotCompiler::AddInlineFunctionsByDepth(WrappedModule &module, compiler::Graph *caller, int32_ argument
[all...]
/arkcompiler/runtime_core/static_core/runtime/
H A Dcompiler.cpp134 auto *caller = MethodCast(method); in GetClass() local
136 *caller->GetPandaFile(), panda_file::File::EntityId(id), caller->GetClass()->GetLoadContext()); in GetClass()
142 return Runtime::GetCurrent()->GetClassLinker()->GetClass(*caller->GetPandaFile(), panda_file::File::EntityId(id), in GetClass()
143 caller->GetClass()->GetLoadContext(), &handler); in GetClass()
148 auto *caller = MethodCast(method); in GetStringClass() local
149 LanguageContext ctx = Runtime::GetCurrent()->GetLanguageContext(*caller); in GetStringClass()
161 auto *caller = MethodCast(method); in GetNumberClass() local
162 LanguageContext ctx = Runtime::GetCurrent()->GetLanguageContext(*caller); in GetNumberClass()
172 auto *caller in GetArrayU16Class() local
180 auto *caller = MethodCast(method); GetArrayU8Class() local
364 Method *caller = MethodCast(parentMethod); IsMethodIntrinsic() local
571 GetMethod(MethodPtr caller, RuntimeInterface::IdType id) const GetMethod() argument
766 AddDependency(PandaRuntimeInterface::MethodPtr callee, RuntimeInterface::MethodPtr caller) AddDependency() argument
[all...]
H A Dcha.cpp132 void ClassHierarchyAnalysis::AddDependency(Method *callee, Method *caller) in AddDependency() argument
135 LOG(DEBUG, CLASS_LINKER) << "[CHA] Add dependency: caller " << caller->GetFullName() << ", callee " in AddDependency()
137 // Other thread can remove single implementation of the callee method while we compile caller method. in AddDependency()
143 dependencyMap_[callee].insert(caller); in AddDependency()
H A Dcha.h25 void AddDependency(Method *callee, Method *caller);
/arkcompiler/runtime_core/libark_defect_scan_aux/include/
H A Dcallee_info.h27 CalleeInfo(const Inst &call_inst, const Function *caller) : call_inst_(call_inst), caller_(caller) {} in CalleeInfo() argument
/arkcompiler/runtime_core/static_core/bytecode_optimizer/
H A Druntime_adapter.h60 MethodPtr GetMethodById([[maybe_unused]] MethodPtr caller, MethodId id) const override
102 compiler::DataType::Type GetMethodArgumentType([[maybe_unused]] MethodPtr caller, MethodId id,
121 size_t GetMethodArgumentsCount([[maybe_unused]] MethodPtr caller, MethodId id) const override
129 compiler::DataType::Type GetMethodReturnType(MethodPtr caller, MethodId id) const override
131 return GetMethodReturnType(GetMethodById(caller, id));
197 uint32_t GetClassIdForMethod([[maybe_unused]] MethodPtr caller, size_t methodId) const override
204 bool IsMethodExternal([[maybe_unused]] MethodPtr caller, MethodPtr callee) const override
216 bool IsMethodIntrinsic([[maybe_unused]] MethodPtr caller, MethodId id) const override
218 return GetIntrinsicId(GetMethodById(caller, id)) != IntrinsicId::INVALID;
236 bool IsMethodStatic([[maybe_unused]] MethodPtr caller, MethodI
[all...]
/arkcompiler/ets_runtime/ecmascript/
H A Djs_arguments.cpp31 // 8.If IsDataDescriptor(desc) is true and P is "caller" and desc.[[Value]] is a strict mode Function object, in GetOwnProperty()
33 JSHandle<EcmaString> caller = thread->GetEcmaVM()->GetFactory()->NewFromASCII("caller"); in GetOwnProperty() local
34 if (desc.IsDataDescriptor() && JSTaggedValue::SameValue(key.GetTaggedValue(), caller.GetTaggedValue()) && in GetOwnProperty()
/arkcompiler/runtime_core/static_core/compiler/tests/
H A Dinlining_test.cpp407 ASSERT_EQ(inlineEvents[0U]->caller, "_GLOBAL::main"); in TEST_F()
445 ASSERT_EQ(inlineEvents[0U]->caller, "_GLOBAL::main"); in TEST_F()
482 ASSERT_EQ(inlineEvents[0U]->caller, "_GLOBAL::main"); in TEST_F()
485 ASSERT_EQ(inlineEvents[1U]->caller, "_GLOBAL::main"); in TEST_F()
515 ASSERT_EQ(inlineEvents[0U]->caller, "_GLOBAL::foo_inf"); in TEST_F()
545 ASSERT_EQ(inlineEvents[0U]->caller, "_GLOBAL::foo"); in TEST_F()
587 ASSERT_EQ(inlineEvents[0U]->caller, "_GLOBAL::foo"); in TEST_F()
/arkcompiler/runtime_core/static_core/runtime/tests/interpreter/
H A Dtest_runtime_interface.h162 static coretypes::Array *ResolveLiteralArray([[maybe_unused]] PandaVM *vm, [[maybe_unused]] const Method &caller, in ResolveLiteralArray() argument
170 static Method *ResolveMethod([[maybe_unused]] ManagedThread *thread, [[maybe_unused]] const Method &caller, in ResolveMethod() argument
177 static Field *ResolveField([[maybe_unused]] ManagedThread *thread, [[maybe_unused]] const Method &caller, in ResolveField() argument
185 static Class *ResolveClass([[maybe_unused]] ManagedThread *thread, [[maybe_unused]] const Method &caller, in ResolveClass() argument
433 static const uint8_t *GetMethodName([[maybe_unused]] Method *caller, [[maybe_unused]] BytecodeId methodId) in GetMethodName() argument
438 static Class *GetMethodClass([[maybe_unused]] Method *caller, [[maybe_unused]] BytecodeId methodId) in GetMethodClass() argument
443 static uint32_t GetMethodArgumentsCount([[maybe_unused]] Method *caller, [[maybe_unused]] BytecodeId methodId) in GetMethodArgumentsCount() argument
/arkcompiler/runtime_core/static_core/libllvmbackend/transforms/passes/
H A Dark_inlining.cpp67 auto caller = callBase->getCaller(); in CheckShouldInline() local
74 auto demCallerName = llvm::demangle(std::string(caller->getName())); in CheckShouldInline()

Completed in 16 milliseconds

12