Home
last modified time | relevance | path

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

/ark/js_runtime/ecmascript/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 …ValueRef> DebuggerExecutor::GetValue(const EcmaVM *vm, const InterpretedFrameHandler *frameHandler, in GetValue() argument
92 value = GetLocalValue(vm, frameHandler, name); in GetValue()
96 value = GetLexicalValue(vm, frameHandler, name); in GetValue()
108 bool DebuggerExecutor::SetValue(const EcmaVM *vm, InterpretedFrameHandler *frameHandler, in SetValue() argument
[all …]
Ddebugger_api.cpp39 InterpretedFrameHandler frameHandler(ecmaVm->GetJSThread()); in GetStackDepth() local
40 for (; frameHandler.HasFrame(); frameHandler.PrevInterpretedFrame()) { in GetStackDepth()
41 if (frameHandler.IsBreakFrame()) { in GetStackDepth()
56 InterpretedFrameHandler frameHandler(ecmaVm->GetJSThread()); in StackWalker() local
57 for (; frameHandler.HasFrame(); frameHandler.PrevInterpretedFrame()) { in StackWalker()
58 if (frameHandler.IsBreakFrame()) { in StackWalker()
61 StackState state = func(&frameHandler); in StackWalker()
83 void DebuggerApi::SetVRegValue(InterpretedFrameHandler *frameHandler, size_t index, Local<JSValueRe… in SetVRegValue() argument
85 return frameHandler->SetVRegValue(index, JSNApiHelper::ToJSTaggedValue(*value)); in SetVRegValue()
88 uint32_t DebuggerApi::GetBytecodeOffset(const InterpretedFrameHandler *frameHandler) in GetBytecodeOffset() argument
[all …]
Ddebugger_api.h54 static uint32_t GetBytecodeOffset(const InterpretedFrameHandler *frameHandler);
55 static JSMethod *GetMethod(const InterpretedFrameHandler *frameHandler);
56 static JSTaggedValue GetEnv(const InterpretedFrameHandler *frameHandler);
57 static JSTaggedType *GetSp(const InterpretedFrameHandler *frameHandler);
58 static int32_t GetVregIndex(const InterpretedFrameHandler *frameHandler, std::string_view name);
60 … const InterpretedFrameHandler *frameHandler, size_t index);
61 …static void SetVRegValue(InterpretedFrameHandler *frameHandler, size_t index, Local<JSValueRef> va…
63 … Local<JSValueRef> GetProperties(const EcmaVM *ecmaVm, const InterpretedFrameHandler *frameHandler,
65 …static void SetProperties(const EcmaVM *vm, const InterpretedFrameHandler *frameHandler, int32_t l…
67 static std::pair<int32_t, uint32_t> GetLevelSlot(const InterpretedFrameHandler *frameHandler,
[all …]
Ddebugger_executor.h31 static Local<JSValueRef> GetValue(const EcmaVM *vm, const InterpretedFrameHandler *frameHandler,
33 static bool SetValue(const EcmaVM *vm, InterpretedFrameHandler *frameHandler,
47 …atic Local<JSValueRef> GetLocalValue(const EcmaVM *vm, const InterpretedFrameHandler *frameHandler,
49 …ic Local<JSValueRef> GetLexicalValue(const EcmaVM *vm, const InterpretedFrameHandler *frameHandler,
53 static bool SetLocalValue(const EcmaVM *vm, InterpretedFrameHandler *frameHandler,
55 static bool SetLexicalValue(const EcmaVM *vm, const InterpretedFrameHandler *frameHandler,
/ark/js_runtime/ecmascript/interpreter/
Dslow_runtime_helper.cpp85 InterpretedFrameHandler frameHandler(thread); in SaveFrameToContext() local
87 uint32_t nregs = frameHandler.GetSize(); in SaveFrameToContext()
90 JSTaggedValue value = frameHandler.GetVRegValue(i); in SaveFrameToContext()
94 context->SetMethod(thread, frameHandler.GetFunction()); in SaveFrameToContext()
96 context->SetAcc(thread, frameHandler.GetAcc()); in SaveFrameToContext()
99 context->SetBCOffset(frameHandler.GetBytecodeOffset()); in SaveFrameToContext()
125 InterpretedFrameHandler frameHandler(thread); in ConstructGeneric() local
139 JSTaggedValue value = frameHandler.GetVRegValue(baseArgLocation + i); in ConstructGeneric()
145 JSTaggedValue value = frameHandler.GetVRegValue(baseArgLocation + i); in ConstructGeneric()
224 InterpretedFrameHandler frameHandler(thread); in ConstructProxy() local
[all …]
Dframe_handler.cpp207 InterpretedFrameHandler frameHandler(sp_); in DumpStack() local
208 for (; frameHandler.HasFrame(); frameHandler.PrevFrame()) { in DumpStack()
210 << "]:" << frameHandler.GetMethod()->ParseFunctionName() in DumpStack()
217 InterpretedFrameHandler frameHandler(sp_); in DumpPC() local
218 ASSERT(frameHandler.HasFrame()); in DumpPC()
221 int offset = pc - JSMethod::Cast(frameHandler.GetMethod())->GetBytecodeArray(); in DumpPC()
Dinterpreter-inl.h677 InterpretedFrameHandler frameHandler(thread); in NotifyBytecodePcChanged()
678 for (; frameHandler.HasFrame(); frameHandler.PrevInterpretedFrame()) { in NotifyBytecodePcChanged()
679 if (frameHandler.IsBreakFrame()) { in NotifyBytecodePcChanged()
682 JSMethod *method = frameHandler.GetMethod(); in NotifyBytecodePcChanged()
687 auto bcOffset = frameHandler.GetBytecodeOffset(); in NotifyBytecodePcChanged()
3674 InterpretedFrameHandler frameHandler(sp); in RunInternal()
3676 for (; frameHandler.HasFrame(); frameHandler.PrevInterpretedFrame()) { in RunInternal()
3677 if (frameHandler.IsBreakFrame()) { in RunInternal()
3680 auto method = frameHandler.GetMethod(); in RunInternal()
3681 pcOffset = FindCatchBlock(method, frameHandler.GetBytecodeOffset()); in RunInternal()
[all …]
Dinterpreter_assembly.cpp3641 InterpretedFrameHandler frameHandler(sp); in ExceptionHandler() local
3643 for (; frameHandler.HasFrame(); frameHandler.PrevInterpretedFrame()) { in ExceptionHandler()
3644 if (frameHandler.IsBreakFrame()) { in ExceptionHandler()
3645 thread->SetCurrentSPFrame(frameHandler.GetSp()); in ExceptionHandler()
3648 auto method = frameHandler.GetMethod(); in ExceptionHandler()
3649 pcOffset = FindCatchBlock(method, frameHandler.GetBytecodeOffset()); in ExceptionHandler()
3651 sp = frameHandler.GetSp(); in ExceptionHandler()
3652 constpool = JSTaggedValue(frameHandler.GetConstpool()); in ExceptionHandler()
Dslow_runtime_stub.cpp691 InterpretedFrameHandler frameHandler(thread); in CreateObjectWithExcludedKeys() local
692 JSTaggedValue excludedKey = frameHandler.GetVRegValue(firstArgRegIdx); in CreateObjectWithExcludedKeys()
697 excludedKey = frameHandler.GetVRegValue(firstArgRegIdx + i); in CreateObjectWithExcludedKeys()
1873 InterpretedFrameHandler frameHandler(thread); in SuperCall() local
1883 argv->Set(thread, i, frameHandler.GetVRegValue(firstVRegIdx + i)); in SuperCall()
1898 InterpretedFrameHandler frameHandler(thread); in SuperCallSpread() local
/ark/js_runtime/ecmascript/cpu_profiler/
Dcpu_profiler.cpp177 InterpretedFrameHandler frameHandler(sp_); in GetFrameStack() local
178 for (; frameHandler.HasFrame(); frameHandler.PrevInterpretedFrame()) { in GetFrameStack()
179 if (frameHandler.IsBreakFrame()) { in GetFrameStack()
182 auto *method = frameHandler.GetMethod(); in GetFrameStack()
184 ParseMethodInfo(method, thread, frameHandler); in GetFrameStack()
191 …Profiler::ParseMethodInfo(JSMethod *method, JSThread *thread, InterpretedFrameHandler frameHandler) in ParseMethodInfo() argument
237 uint32_t offset = frameHandler.GetBytecodeOffset(); in ParseMethodInfo()
Dcpu_profiler.h52 …tic void ParseMethodInfo(JSMethod *method, JSThread *thread, InterpretedFrameHandler frameHandler);
/ark/js_runtime/ecmascript/base/
Derror_helper.cpp196 InterpretedFrameHandler frameHandler(sp); in BuildNativeEcmaStackTrace() local
197 for (; frameHandler.HasFrame(); frameHandler.PrevInterpretedFrame()) { in BuildNativeEcmaStackTrace()
198 if (frameHandler.IsBreakFrame()) { in BuildNativeEcmaStackTrace()
201 auto method = frameHandler.GetMethod(); in BuildNativeEcmaStackTrace()
227 uint32_t offset = frameHandler.GetBytecodeOffset(); in BuildNativeEcmaStackTrace()
/ark/js_runtime/ecmascript/tooling/agent/
Ddebugger_impl.cpp803 …auto walkerFunc = [this, &callFrameId, &callFrames](const InterpretedFrameHandler *frameHandler) -… in GenerateCallFrames() argument
804 JSMethod *method = DebuggerApi::GetMethod(frameHandler); in GenerateCallFrames()
810 if (!GenerateCallFrame(callFrame.get(), frameHandler, callFrameId)) { in GenerateCallFrames()
815 SaveCallFrameHandler(frameHandler); in GenerateCallFrames()
824 void DebuggerImpl::SaveCallFrameHandler(const InterpretedFrameHandler *frameHandler) in SaveCallFrameHandler() argument
827 *handlerPtr = *frameHandler; in SaveCallFrameHandler()
832 const InterpretedFrameHandler *frameHandler, CallFrameId callFrameId) in GenerateCallFrame() argument
834 JSMethod *method = DebuggerApi::GetMethod(frameHandler); in GenerateCallFrame()
861 …r->MatchLineWithOffset(callbackLineFunc, methodId, DebuggerApi::GetBytecodeOffset(frameHandler)) || in GenerateCallFrame()
862 …atchColumnWithOffset(callbackColumnFunc, methodId, DebuggerApi::GetBytecodeOffset(frameHandler))) { in GenerateCallFrame()
[all …]
Ddebugger_impl.h137 …bool GenerateCallFrame(CallFrame *callFrame, const InterpretedFrameHandler *frameHandler, CallFram…
138 void SaveCallFrameHandler(const InterpretedFrameHandler *frameHandler);
139 std::unique_ptr<Scope> GetLocalScopeChain(const InterpretedFrameHandler *frameHandler,
142 void GetLocalVariables(const InterpretedFrameHandler *frameHandler, const JSMethod *method,
145 void UpdateScopeObject(const InterpretedFrameHandler *frameHandler,
/ark/js_runtime/ecmascript/tooling/interface/
Djs_debugger_manager.h82 void SetEvalFrameHandler(std::shared_ptr<InterpretedFrameHandler> frameHandler) in SetEvalFrameHandler() argument
84 frameHandler_ = frameHandler; in SetEvalFrameHandler()
/ark/js_runtime/ecmascript/ic/
Dinvoke_cache.cpp111 InterpretedFrameHandler frameHandler(thread); in Construct() local
118 JSTaggedValue value = frameHandler.GetVRegValue(firstArgIdx + i); in Construct()
/ark/js_runtime/ecmascript/
Druntime_trampolines.cpp984 InterpretedFrameHandler frameHandler(reinterpret_cast<JSTaggedType *>(sp)); in DEF_RUNTIME_TRAMPOLINES() local
986 for (; frameHandler.HasFrame(); frameHandler.PrevInterpretedFrame()) { in DEF_RUNTIME_TRAMPOLINES()
987 if (frameHandler.IsBreakFrame()) { in DEF_RUNTIME_TRAMPOLINES()
990 auto method = frameHandler.GetMethod(); in DEF_RUNTIME_TRAMPOLINES()
991 pcOffset = EcmaInterpreter::FindCatchBlock(method, frameHandler.GetBytecodeOffset()); in DEF_RUNTIME_TRAMPOLINES()
993 thread->SetCurrentSPFrame(frameHandler.GetSp()); in DEF_RUNTIME_TRAMPOLINES()