| 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 1051 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1062 int index) const override; | 1062 int index) const override; |
| 1063 | 1063 |
| 1064 // Lookup exception handler for current {pc}, returns -1 if none found. Also | 1064 // Lookup exception handler for current {pc}, returns -1 if none found. Also |
| 1065 // returns the stack slot count of the entire frame. | 1065 // returns the stack slot count of the entire frame. |
| 1066 int LookupExceptionHandlerInTable(int* data); | 1066 int LookupExceptionHandlerInTable(int* data); |
| 1067 | 1067 |
| 1068 // Determine the code for the frame. | 1068 // Determine the code for the frame. |
| 1069 Code* unchecked_code() const override; | 1069 Code* unchecked_code() const override; |
| 1070 | 1070 |
| 1071 // Accessors. | 1071 // Accessors. |
| 1072 Object* wasm_obj() const; | 1072 Object* wasm_instance() const; |
| 1073 uint32_t function_index() const; | 1073 uint32_t function_index() const; |
| 1074 Script* script() const override; | 1074 Script* script() const override; |
| 1075 int position() const override; | 1075 int position() const override; |
| 1076 | 1076 |
| 1077 static WasmFrame* cast(StackFrame* frame) { | 1077 static WasmFrame* cast(StackFrame* frame) { |
| 1078 DCHECK(frame->is_wasm()); | 1078 DCHECK(frame->is_wasm()); |
| 1079 return static_cast<WasmFrame*>(frame); | 1079 return static_cast<WasmFrame*>(frame); |
| 1080 } | 1080 } |
| 1081 | 1081 |
| 1082 protected: | 1082 protected: |
| (...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1327 | 1327 |
| 1328 | 1328 |
| 1329 // Reads all frames on the current stack and copies them into the current | 1329 // Reads all frames on the current stack and copies them into the current |
| 1330 // zone memory. | 1330 // zone memory. |
| 1331 Vector<StackFrame*> CreateStackMap(Isolate* isolate, Zone* zone); | 1331 Vector<StackFrame*> CreateStackMap(Isolate* isolate, Zone* zone); |
| 1332 | 1332 |
| 1333 } // namespace internal | 1333 } // namespace internal |
| 1334 } // namespace v8 | 1334 } // namespace v8 |
| 1335 | 1335 |
| 1336 #endif // V8_FRAMES_H_ | 1336 #endif // V8_FRAMES_H_ |
| OLD | NEW |