| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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_FRAMES_H_ | 5 #ifndef V8_FRAMES_H_ |
| 6 #define V8_FRAMES_H_ | 6 #define V8_FRAMES_H_ |
| 7 | 7 |
| 8 #include "src/allocation.h" | 8 #include "src/allocation.h" |
| 9 #include "src/handles.h" | 9 #include "src/handles.h" |
| 10 #include "src/safepoint-table.h" | 10 #include "src/safepoint-table.h" |
| (...skipping 889 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 900 void PatchBytecodeOffset(int new_offset); | 900 void PatchBytecodeOffset(int new_offset); |
| 901 | 901 |
| 902 // Returns the frame's current bytecode array. | 902 // Returns the frame's current bytecode array. |
| 903 BytecodeArray* GetBytecodeArray() const; | 903 BytecodeArray* GetBytecodeArray() const; |
| 904 | 904 |
| 905 // Updates the frame's BytecodeArray with |bytecode_array|. Used by the | 905 // Updates the frame's BytecodeArray with |bytecode_array|. Used by the |
| 906 // debugger to swap execution onto a BytecodeArray patched with breakpoints. | 906 // debugger to swap execution onto a BytecodeArray patched with breakpoints. |
| 907 void PatchBytecodeArray(BytecodeArray* bytecode_array); | 907 void PatchBytecodeArray(BytecodeArray* bytecode_array); |
| 908 | 908 |
| 909 // Access to the interpreter register file for this frame. | 909 // Access to the interpreter register file for this frame. |
| 910 Object* GetInterpreterRegister(int register_index) const; | 910 Object* ReadInterpreterRegister(int register_index) const; |
| 911 void WriteInterpreterRegister(int register_index, Object* value); |
| 911 | 912 |
| 912 // Build a list with summaries for this frame including all inlined frames. | 913 // Build a list with summaries for this frame including all inlined frames. |
| 913 void Summarize(List<FrameSummary>* frames) const override; | 914 void Summarize(List<FrameSummary>* frames) const override; |
| 914 | 915 |
| 915 protected: | 916 protected: |
| 916 inline explicit InterpretedFrame(StackFrameIteratorBase* iterator); | 917 inline explicit InterpretedFrame(StackFrameIteratorBase* iterator); |
| 917 | 918 |
| 918 Address GetExpressionAddress(int n) const override; | 919 Address GetExpressionAddress(int n) const override; |
| 919 | 920 |
| 920 private: | 921 private: |
| (...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1217 | 1218 |
| 1218 | 1219 |
| 1219 // Reads all frames on the current stack and copies them into the current | 1220 // Reads all frames on the current stack and copies them into the current |
| 1220 // zone memory. | 1221 // zone memory. |
| 1221 Vector<StackFrame*> CreateStackMap(Isolate* isolate, Zone* zone); | 1222 Vector<StackFrame*> CreateStackMap(Isolate* isolate, Zone* zone); |
| 1222 | 1223 |
| 1223 } // namespace internal | 1224 } // namespace internal |
| 1224 } // namespace v8 | 1225 } // namespace v8 |
| 1225 | 1226 |
| 1226 #endif // V8_FRAMES_H_ | 1227 #endif // V8_FRAMES_H_ |
| OLD | NEW |