summaryrefslogtreecommitdiff
path: root/deps/v8/src/debug/debug-frames.h
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/src/debug/debug-frames.h')
-rw-r--r--deps/v8/src/debug/debug-frames.h34
1 files changed, 3 insertions, 31 deletions
diff --git a/deps/v8/src/debug/debug-frames.h b/deps/v8/src/debug/debug-frames.h
index 6b4f8c23f6..6a613dbae9 100644
--- a/deps/v8/src/debug/debug-frames.h
+++ b/deps/v8/src/debug/debug-frames.h
@@ -22,7 +22,7 @@ class FrameInspector {
~FrameInspector();
int GetParametersCount();
- Handle<JSFunction> GetFunction() { return function_; }
+ Handle<JSFunction> GetFunction() const { return function_; }
Handle<Script> GetScript() { return script_; }
Handle<Object> GetParameter(int index);
Handle<Object> GetExpression(int index);
@@ -41,21 +41,14 @@ class FrameInspector {
: JavaScriptFrame::cast(frame_);
}
- JavaScriptFrame* GetArgumentsFrame() { return javascript_frame(); }
- void SetArgumentsFrame(StandardFrame* frame);
-
- void MaterializeStackLocals(Handle<JSObject> target,
- Handle<ScopeInfo> scope_info,
- bool materialize_arguments_object = false);
-
- void UpdateStackLocalsFromMaterializedObject(Handle<JSObject> object,
- Handle<ScopeInfo> scope_info);
+ int inlined_frame_index() const { return inlined_frame_index_; }
private:
bool ParameterIsShadowedByContextLocal(Handle<ScopeInfo> info,
Handle<String> parameter_name);
StandardFrame* frame_;
+ int inlined_frame_index_;
std::unique_ptr<DeoptimizedFrameInfo> deoptimized_frame_;
wasm::WasmInterpreter::FramePtr wasm_interpreted_frame_;
Isolate* isolate_;
@@ -71,27 +64,6 @@ class FrameInspector {
DISALLOW_COPY_AND_ASSIGN(FrameInspector);
};
-
-
-class DebugFrameHelper : public AllStatic {
- public:
- static SaveContext* FindSavedContextForFrame(Isolate* isolate,
- StandardFrame* frame);
- // Advances the iterator to the frame that matches the index and returns the
- // inlined frame index, or -1 if not found. Skips native JS functions.
- static int FindIndexedNonNativeFrame(StackTraceFrameIterator* it, int index);
-
- // Helper functions for wrapping and unwrapping stack frame ids.
- static Smi* WrapFrameId(StackFrame::Id id) {
- DCHECK(IsAligned(OffsetFrom(id), static_cast<intptr_t>(4)));
- return Smi::FromInt(id >> 2);
- }
-
- static StackFrame::Id UnwrapFrameId(int wrapped) {
- return static_cast<StackFrame::Id>(wrapped << 2);
- }
-};
-
} // namespace internal
} // namespace v8