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

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

Issue 2074933005: [wasm] Handlify WasmDebugInfo where needed (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 6 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 | « no previous file | src/wasm/wasm-debug.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_DEBUG_H_ 5 #ifndef V8_WASM_DEBUG_H_
6 #define V8_WASM_DEBUG_H_ 6 #define V8_WASM_DEBUG_H_
7 7
8 #include "src/handles.h" 8 #include "src/handles.h"
9 #include "src/objects.h" 9 #include "src/objects.h"
10 10
11 namespace v8 { 11 namespace v8 {
12 namespace internal { 12 namespace internal {
13 namespace wasm { 13 namespace wasm {
14 14
15 class WasmDebugInfo : public FixedArray { 15 class WasmDebugInfo : public FixedArray {
16 public: 16 public:
17 static Handle<WasmDebugInfo> New(Handle<JSObject> wasm); 17 static Handle<WasmDebugInfo> New(Handle<JSObject> wasm);
18 18
19 static bool IsDebugInfo(Object* object); 19 static bool IsDebugInfo(Object* object);
20 static WasmDebugInfo* cast(Object* object); 20 static WasmDebugInfo* cast(Object* object);
21 21
22 JSObject* wasm_object(); 22 JSObject* wasm_object();
23 23
24 bool SetBreakPoint(int byte_offset); 24 bool SetBreakPoint(int byte_offset);
25 25
26 // Disassemble the specified function from this module. 26 // Disassemble the specified function from this module.
27 Handle<String> DisassembleFunction(int func_index); 27 static Handle<String> DisassembleFunction(Handle<WasmDebugInfo> debug_info,
28 int func_index);
28 29
29 // Get the offset table for the specified function. 30 // Get the offset table for the specified function.
30 // Returns an array with three entries per instruction: byte offset, line and 31 // Returns an array with three entries per instruction: byte offset, line and
31 // column. 32 // column.
32 Handle<FixedArray> GetFunctionOffsetTable(int func_index); 33 static Handle<FixedArray> GetFunctionOffsetTable(
34 Handle<WasmDebugInfo> debug_info, int func_index);
33 }; 35 };
34 36
35 } // namespace wasm 37 } // namespace wasm
36 } // namespace internal 38 } // namespace internal
37 } // namespace v8 39 } // namespace v8
38 40
39 #endif // V8_WASM_DEBUG_H_ 41 #endif // V8_WASM_DEBUG_H_
OLDNEW
« no previous file with comments | « no previous file | src/wasm/wasm-debug.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698