/ark/js_runtime/ecmascript/tooling/backend/ |
D | debugger_executor.cpp | 45 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 …]
|
D | debugger_api.cpp | 39 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 …]
|
D | debugger_api.h | 54 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 …]
|
D | debugger_executor.h | 31 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/ |
D | slow_runtime_helper.cpp | 85 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 …]
|
D | frame_handler.cpp | 207 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()
|
D | interpreter-inl.h | 677 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 …]
|
D | interpreter_assembly.cpp | 3641 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()
|
D | slow_runtime_stub.cpp | 691 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/ |
D | cpu_profiler.cpp | 177 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()
|
D | cpu_profiler.h | 52 …tic void ParseMethodInfo(JSMethod *method, JSThread *thread, InterpretedFrameHandler frameHandler);
|
/ark/js_runtime/ecmascript/base/ |
D | error_helper.cpp | 196 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/ |
D | debugger_impl.cpp | 803 …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 …]
|
D | debugger_impl.h | 137 …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/ |
D | js_debugger_manager.h | 82 void SetEvalFrameHandler(std::shared_ptr<InterpretedFrameHandler> frameHandler) in SetEvalFrameHandler() argument 84 frameHandler_ = frameHandler; in SetEvalFrameHandler()
|
/ark/js_runtime/ecmascript/ic/ |
D | invoke_cache.cpp | 111 InterpretedFrameHandler frameHandler(thread); in Construct() local 118 JSTaggedValue value = frameHandler.GetVRegValue(firstArgIdx + i); in Construct()
|
/ark/js_runtime/ecmascript/ |
D | runtime_trampolines.cpp | 984 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()
|