Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Side by Side Diff: src/wasm/wasm-objects.h

Issue 2649533002: [wasm] Implement stepping in wasm code (Closed)
Patch Set: Rebase Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/wasm/wasm-interpreter.cc ('k') | test/cctest/wasm/test-wasm-breakpoints.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « src/wasm/wasm-interpreter.cc ('k') | test/cctest/wasm/test-wasm-breakpoints.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698