| OLD | NEW |
| 1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef V8_DEBUG_DEBUG_FRAMES_H_ | 5 #ifndef V8_DEBUG_DEBUG_FRAMES_H_ |
| 6 #define V8_DEBUG_DEBUG_FRAMES_H_ | 6 #define V8_DEBUG_DEBUG_FRAMES_H_ |
| 7 | 7 |
| 8 #include "src/deoptimizer.h" | 8 #include "src/deoptimizer.h" |
| 9 #include "src/frames.h" | 9 #include "src/frames.h" |
| 10 #include "src/isolate.h" | 10 #include "src/isolate.h" |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 Handle<Object> GetParameter(int index); | 26 Handle<Object> GetParameter(int index); |
| 27 Handle<Object> GetExpression(int index); | 27 Handle<Object> GetExpression(int index); |
| 28 int GetSourcePosition(); | 28 int GetSourcePosition(); |
| 29 bool IsConstructor(); | 29 bool IsConstructor(); |
| 30 Handle<Object> GetContext(); | 30 Handle<Object> GetContext(); |
| 31 | 31 |
| 32 inline JavaScriptFrame* javascript_frame() { | 32 inline JavaScriptFrame* javascript_frame() { |
| 33 return frame_->is_arguments_adaptor() ? ArgumentsAdaptorFrame::cast(frame_) | 33 return frame_->is_arguments_adaptor() ? ArgumentsAdaptorFrame::cast(frame_) |
| 34 : JavaScriptFrame::cast(frame_); | 34 : JavaScriptFrame::cast(frame_); |
| 35 } | 35 } |
| 36 inline WasmFrame* wasm_frame() { return WasmFrame::cast(frame_); } | 36 inline WasmCompiledFrame* wasm_frame() { |
| 37 return WasmCompiledFrame::cast(frame_); |
| 38 } |
| 37 | 39 |
| 38 JavaScriptFrame* GetArgumentsFrame() { return javascript_frame(); } | 40 JavaScriptFrame* GetArgumentsFrame() { return javascript_frame(); } |
| 39 void SetArgumentsFrame(StandardFrame* frame); | 41 void SetArgumentsFrame(StandardFrame* frame); |
| 40 | 42 |
| 41 void MaterializeStackLocals(Handle<JSObject> target, | 43 void MaterializeStackLocals(Handle<JSObject> target, |
| 42 Handle<ScopeInfo> scope_info); | 44 Handle<ScopeInfo> scope_info); |
| 43 | 45 |
| 44 void MaterializeStackLocals(Handle<JSObject> target, | 46 void MaterializeStackLocals(Handle<JSObject> target, |
| 45 Handle<JSFunction> function); | 47 Handle<JSFunction> function); |
| 46 | 48 |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 | 81 |
| 80 static StackFrame::Id UnwrapFrameId(int wrapped) { | 82 static StackFrame::Id UnwrapFrameId(int wrapped) { |
| 81 return static_cast<StackFrame::Id>(wrapped << 2); | 83 return static_cast<StackFrame::Id>(wrapped << 2); |
| 82 } | 84 } |
| 83 }; | 85 }; |
| 84 | 86 |
| 85 } // namespace internal | 87 } // namespace internal |
| 86 } // namespace v8 | 88 } // namespace v8 |
| 87 | 89 |
| 88 #endif // V8_DEBUG_DEBUG_FRAMES_H_ | 90 #endif // V8_DEBUG_DEBUG_FRAMES_H_ |
| OLD | NEW |