Home
last modified time | relevance | path

Searched refs:frameHandler (Results 1 – 21 of 21) sorted by relevance

/arkcompiler/toolchain/tooling/backend/
Ddebugger_executor.cpp45 auto &frameHandler = vm->GetJsDebuggerManager()->GetEvalFrameHandler(); in DebuggerGetValue() local
46 ASSERT(frameHandler); in DebuggerGetValue()
48 Local<JSValueRef> value = GetValue(vm, frameHandler.get(), Local<StringRef>(name)); in DebuggerGetValue()
76 auto &frameHandler = vm->GetJsDebuggerManager()->GetEvalFrameHandler(); in DebuggerSetValue() local
77 ASSERT(frameHandler); in DebuggerSetValue()
79 if (SetValue(vm, frameHandler.get(), Local<StringRef>(name), value)) { in DebuggerSetValue()
88 Local<JSValueRef> DebuggerExecutor::GetValue(const EcmaVM *vm, const FrameHandler *frameHandler, Lo… in GetValue() argument
91 value = GetLocalValue(vm, frameHandler, name); in GetValue()
95 value = GetLexicalValue(vm, frameHandler, name); in GetValue()
99 value = GetModuleValue(vm, frameHandler, name); in GetValue()
[all …]
Ddebugger_executor.h31 …static Local<JSValueRef> GetValue(const EcmaVM *vm, const FrameHandler *frameHandler, Local<String…
32 static bool SetValue(const EcmaVM *vm, FrameHandler *frameHandler,
44 …static Local<JSValueRef> GetLocalValue(const EcmaVM *vm, const FrameHandler *frameHandler, Local<S…
45 static Local<JSValueRef> GetLexicalValue(const EcmaVM *vm, const FrameHandler *frameHandler,
47 …static Local<JSValueRef> GetModuleValue(const EcmaVM *vm, const FrameHandler *frameHandler, Local<…
50 static bool SetLocalValue(const EcmaVM *vm, FrameHandler *frameHandler,
52 static bool SetLexicalValue(const EcmaVM *vm, const FrameHandler *frameHandler,
54 static bool SetModuleValue(const EcmaVM *vm, const FrameHandler *frameHandler,
/arkcompiler/ets_runtime/ecmascript/debugger/
Ddebugger_api.h60 static uint32_t GetBytecodeOffset(const FrameHandler *frameHandler);
62 static Method *GetMethod(const FrameHandler *frameHandler);
64 static bool IsNativeMethod(const FrameHandler *frameHandler);
67 static JSTaggedValue GetEnv(const FrameHandler *frameHandler);
68 static JSTaggedType *GetSp(const FrameHandler *frameHandler);
69 static int32_t GetVregIndex(const FrameHandler *frameHandler, std::string_view name);
71 const FrameHandler *frameHandler, size_t index);
72 static void SetVRegValue(FrameHandler *frameHandler, size_t index, Local<JSValueRef> value);
74 static Local<JSValueRef> GetProperties(const EcmaVM *ecmaVm, const FrameHandler *frameHandler,
76 static void SetProperties(const EcmaVM *ecmaVm, const FrameHandler *frameHandler, int32_t level,
[all …]
Ddebugger_api.cpp76 FrameHandler frameHandler(ecmaVm->GetJSThread()); in GetStackDepth() local
77 for (; frameHandler.HasFrame(); frameHandler.PrevJSFrame()) { in GetStackDepth()
78 if (frameHandler.IsEntryFrame() || frameHandler.IsBuiltinFrame()) { in GetStackDepth()
93 FrameHandler frameHandler(ecmaVm->GetJSThread()); in StackWalker() local
94 for (; frameHandler.HasFrame(); frameHandler.PrevJSFrame()) { in StackWalker()
95 if (frameHandler.IsEntryFrame() || frameHandler.IsBuiltinFrame()) { in StackWalker()
98 StackState state = func(&frameHandler); in StackWalker()
117 FrameHandler frameHandler(ecmaVm->GetJSThread()); in GetMethod() local
118 Method* method = frameHandler.GetMethod(); in GetMethod()
124 void DebuggerApi::SetVRegValue(FrameHandler *frameHandler, size_t index, Local<JSValueRef> value) in SetVRegValue() argument
[all …]
Djs_debugger.cpp215 FrameHandler frameHandler(ecmaVm_->GetJSThread()); in MethodEntry() local
216 …if (frameHandler.IsEntryFrame() || frameHandler.IsBuiltinFrame() || frameHandler.GetEnv().IsUndefi… in MethodEntry()
228 FrameHandler frameHandler(ecmaVm_->GetJSThread()); in MethodExit() local
229 if (frameHandler.IsEntryFrame() || frameHandler.IsBuiltinFrame()) { in MethodExit()
Djs_debugger_manager.h102 void SetEvalFrameHandler(std::shared_ptr<FrameHandler> frameHandler) in SetEvalFrameHandler() argument
104 frameHandler_ = frameHandler; in SetEvalFrameHandler()
Ddropframe_manager.cpp79 FrameHandler frameHandler(thread); in MethodEntry() local
93 JSTaggedValue env = frameHandler.GetEnv(); in MethodEntry()
/arkcompiler/toolchain/tooling/agent/
Ddebugger_impl.h152 …bool GenerateCallFrame(CallFrame *callFrame, const FrameHandler *frameHandler, CallFrameId frameId…
153 void SaveCallFrameHandler(const FrameHandler *frameHandler);
154 std::unique_ptr<Scope> GetLocalScopeChain(const FrameHandler *frameHandler,
158 void GetLocalVariables(const FrameHandler *frameHandler, panda_file::File::EntityId methodId,
160 void GetClosureVariables(const FrameHandler *frameHandler, Local<JSValueRef> &thisVal,
163 …void UpdateScopeObject(const FrameHandler *frameHandler, std::string_view varName, Local<JSValueRe…
Ddebugger_impl.cpp1063 …auto walkerFunc = [this, &callFrameId, &callFrames](const FrameHandler *frameHandler) -> StackStat… in GenerateCallFrames() argument
1064 if (DebuggerApi::IsNativeMethod(frameHandler)) { in GenerateCallFrames()
1069 if (!GenerateCallFrame(callFrame.get(), frameHandler, callFrameId)) { in GenerateCallFrames()
1074 SaveCallFrameHandler(frameHandler); in GenerateCallFrames()
1083 void DebuggerImpl::SaveCallFrameHandler(const FrameHandler *frameHandler) in SaveCallFrameHandler() argument
1086 *handlerPtr = *frameHandler; in SaveCallFrameHandler()
1091 const FrameHandler *frameHandler, CallFrameId callFrameId) in GenerateCallFrame() argument
1093 if (!frameHandler->HasFrame()) { in GenerateCallFrame()
1096 Method *method = DebuggerApi::GetMethod(frameHandler); in GenerateCallFrame()
1127 …r->MatchLineWithOffset(callbackLineFunc, methodId, DebuggerApi::GetBytecodeOffset(frameHandler)) || in GenerateCallFrame()
[all …]
/arkcompiler/ets_runtime/ecmascript/base/
Derror_helper.cpp208 FrameHandler frameHandler(thread); in GetErrorJSFunction() local
209 for (; frameHandler.HasFrame(); frameHandler.PrevJSFrame()) { in GetErrorJSFunction()
210 if (!frameHandler.IsJSFrame()) { in GetErrorJSFunction()
214 auto function = frameHandler.GetFunction(); in GetErrorJSFunction()
/arkcompiler/ets_runtime/ecmascript/interpreter/
Dframe_handler.cpp258 FrameHandler frameHandler(thread_); in DumpStack() local
259 for (; frameHandler.HasFrame(); frameHandler.PrevJSFrame()) { in DumpStack()
261 << "]:" << frameHandler.GetMethod()->ParseFunctionName() in DumpStack()
268 FrameHandler frameHandler(thread_); in DumpPC() local
269 ASSERT(frameHandler.HasFrame()); in DumpPC()
271 int offset = pc - frameHandler.GetMethod()->GetBytecodeArray(); in DumpPC()
Dinterpreter-inl.h846 FrameHandler frameHandler(thread); in NotifyBytecodePcChanged()
847 for (; frameHandler.HasFrame(); frameHandler.PrevJSFrame()) { in NotifyBytecodePcChanged()
848 if (frameHandler.IsEntryFrame()) { in NotifyBytecodePcChanged()
851 Method *method = frameHandler.GetMethod(); in NotifyBytecodePcChanged()
856 auto bcOffset = frameHandler.GetBytecodeOffset(); in NotifyBytecodePcChanged()
865 FrameHandler frameHandler(thread); in NotifyDebuggerStmt()
866 for (; frameHandler.HasFrame(); frameHandler.PrevJSFrame()) { in NotifyDebuggerStmt()
867 if (frameHandler.IsEntryFrame()) { in NotifyDebuggerStmt()
870 Method *method = frameHandler.GetMethod(); in NotifyDebuggerStmt()
874 auto bcOffset = frameHandler.GetBytecodeOffset(); in NotifyDebuggerStmt()
[all …]
Dinterpreter_assembly.cpp7449 FrameHandler frameHandler(thread); in ExceptionHandler() local
7451 for (; frameHandler.HasFrame(); frameHandler.PrevJSFrame()) { in ExceptionHandler()
7452 if (frameHandler.IsEntryFrame() || frameHandler.IsBuiltinFrame()) { in ExceptionHandler()
7453 thread->SetLastFp(frameHandler.GetFp()); in ExceptionHandler()
7456 auto method = frameHandler.GetMethod(); in ExceptionHandler()
7457 pcOffset = method->FindCatchBlock(frameHandler.GetBytecodeOffset()); in ExceptionHandler()
7459 thread->SetCurrentFrame(frameHandler.GetSp()); in ExceptionHandler()
7460 thread->SetLastFp(frameHandler.GetFp()); in ExceptionHandler()
/arkcompiler/ets_runtime/ecmascript/
Djs_thread.cpp144 FrameHandler frameHandler(this); in GetCurrentLexenv() local
145 return frameHandler.GetEnv(); in GetCurrentLexenv()
167 auto frameHandler = FrameHandler(this); in GetCurrentInterpretedFrame() local
168 return frameHandler.GetSp(); in GetCurrentInterpretedFrame()
223 FrameHandler frameHandler(this); in Iterate() local
224 frameHandler.Iterate(visitor, rangeVisitor, derivedVisitor); in Iterate()
Dobject_factory.cpp811 FrameHandler frameHandler(thread_); in NewJSError() local
812 if (frameHandler.IsInterpretedEntryFrame()) { in NewJSError()
813 thread_->SetCurrentSPFrame(frameHandler.GetPrevJSFrame()); in NewJSError()
/arkcompiler/ets_runtime/ecmascript/ic/
Dinvoke_cache.cpp112 FrameHandler frameHandler(thread); in Construct() local
114 info->SetCallArg(i, frameHandler.GetVRegValue(firstArgIdx + i)); in Construct()
/arkcompiler/ets_runtime/ecmascript/stubs/
Druntime_stubs.cpp1144 FrameHandler frameHandler(thread); in DEF_RUNTIME_STUBS() local
1146 for (; frameHandler.HasFrame(); frameHandler.PrevJSFrame()) { in DEF_RUNTIME_STUBS()
1147 if (frameHandler.IsEntryFrame() || frameHandler.IsBuiltinFrame()) { in DEF_RUNTIME_STUBS()
1148 thread->SetCurrentFrame(frameHandler.GetSp()); in DEF_RUNTIME_STUBS()
1149 thread->SetLastFp(frameHandler.GetFp()); in DEF_RUNTIME_STUBS()
1152 auto method = frameHandler.GetMethod(); in DEF_RUNTIME_STUBS()
1153 pcOffset = method->FindCatchBlock(frameHandler.GetBytecodeOffset()); in DEF_RUNTIME_STUBS()
1155 thread->SetCurrentFrame(frameHandler.GetSp()); in DEF_RUNTIME_STUBS()
1156 thread->SetLastFp(frameHandler.GetFp()); in DEF_RUNTIME_STUBS()
1534 FrameHandler frameHandler(thread); in DEF_RUNTIME_STUBS() local
[all …]
Druntime_stubs-inl.h774 FrameHandler frameHandler(thread); in RuntimeResolveClass()
775 JSTaggedValue currentFunc = frameHandler.GetFunction(); in RuntimeResolveClass()
1876 FrameHandler frameHandler(thread); in RuntimeNewObjRange()
1878 JSTaggedValue value = frameHandler.GetVRegValue(firstArgIdx + i); in RuntimeNewObjRange()
1990 FrameHandler frameHandler(thread); in RuntimeCreateObjectWithExcludedKeys()
1991 JSTaggedValue excludedKey = frameHandler.GetVRegValue(firstArgRegIdx); in RuntimeCreateObjectWithExcludedKeys()
1996 excludedKey = frameHandler.GetVRegValue(firstArgRegIdx + i); in RuntimeCreateObjectWithExcludedKeys()
2100 FrameHandler frameHandler(thread); in RuntimeSuperCall()
2102 argv->Set(thread, i, frameHandler.GetVRegValue(firstVRegIdx + i)); in RuntimeSuperCall()
2651 FrameHandler frameHandler(thread); in RuntimeNotifyDebuggerStatement()
[all …]
/arkcompiler/ets_runtime/ecmascript/dfx/hprof/
Dheap_sampling.cpp88 FrameHandler frameHandler(thread); in GetStack() local
89 FrameIterator it(frameHandler.GetSp(), thread); in GetStack()
/arkcompiler/ets_runtime/ecmascript/dfx/cpu_profiler/
Dcpu_profiler.cpp458 FrameHandler frameHandler(thread); in GetStackSignalHandler() local
459 FrameIterator it(frameHandler.GetSp(), thread); in GetStackSignalHandler()
/arkcompiler/ets_runtime/ecmascript/module/
Djs_module_manager.cpp48 FrameHandler frameHandler(vm_->GetJSThread()); in GetCurrentModule() local
49 JSTaggedValue currentFunc = frameHandler.GetFunction(); in GetCurrentModule()