| OLD | NEW |
| 1 // Copyright 2016 the V8 project authors. All rights reserved. | 1 // Copyright 2016 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_WASM_OBJECTS_H_ | 5 #ifndef V8_WASM_OBJECTS_H_ |
| 6 #define V8_WASM_OBJECTS_H_ | 6 #define V8_WASM_OBJECTS_H_ |
| 7 | 7 |
| 8 #include "src/debug/debug.h" | 8 #include "src/debug/debug.h" |
| 9 #include "src/debug/interface-types.h" | 9 #include "src/debug/interface-types.h" |
| 10 #include "src/objects-inl.h" | 10 #include "src/objects-inl.h" |
| (...skipping 404 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 415 kFieldCount | 415 kFieldCount |
| 416 }; | 416 }; |
| 417 | 417 |
| 418 static Handle<WasmDebugInfo> New(Handle<WasmInstanceObject>); | 418 static Handle<WasmDebugInfo> New(Handle<WasmInstanceObject>); |
| 419 | 419 |
| 420 static bool IsDebugInfo(Object*); | 420 static bool IsDebugInfo(Object*); |
| 421 static WasmDebugInfo* cast(Object*); | 421 static WasmDebugInfo* cast(Object*); |
| 422 | 422 |
| 423 static void SetBreakpoint(Handle<WasmDebugInfo>, int func_index, int offset); | 423 static void SetBreakpoint(Handle<WasmDebugInfo>, int func_index, int offset); |
| 424 | 424 |
| 425 void PrepareStep(StepAction); |
| 426 |
| 425 void RunInterpreter(int func_index, uint8_t* arg_buffer); | 427 void RunInterpreter(int func_index, uint8_t* arg_buffer); |
| 426 | 428 |
| 427 // Get the stack of the wasm interpreter as pairs of <function index, byte | 429 // Get the stack of the wasm interpreter as pairs of <function index, byte |
| 428 // offset>. The list is ordered bottom-to-top, i.e. caller before callee. | 430 // offset>. The list is ordered bottom-to-top, i.e. caller before callee. |
| 429 std::vector<std::pair<uint32_t, int>> GetInterpretedStack( | 431 std::vector<std::pair<uint32_t, int>> GetInterpretedStack( |
| 430 Address frame_pointer); | 432 Address frame_pointer); |
| 431 | 433 |
| 432 std::unique_ptr<wasm::InterpretedFrame> GetInterpretedFrame( | 434 std::unique_ptr<wasm::InterpretedFrame> GetInterpretedFrame( |
| 433 Address frame_pointer, int idx); | 435 Address frame_pointer, int idx); |
| 434 | 436 |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 490 }; | 492 }; |
| 491 }; | 493 }; |
| 492 | 494 |
| 493 #undef DECLARE_ACCESSORS | 495 #undef DECLARE_ACCESSORS |
| 494 #undef DECLARE_OPTIONAL_ACCESSORS | 496 #undef DECLARE_OPTIONAL_ACCESSORS |
| 495 | 497 |
| 496 } // namespace internal | 498 } // namespace internal |
| 497 } // namespace v8 | 499 } // namespace v8 |
| 498 | 500 |
| 499 #endif // V8_WASM_OBJECTS_H_ | 501 #endif // V8_WASM_OBJECTS_H_ |
| OLD | NEW |