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

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

Issue 2490663002: [wasm] Move all heap-allocated WASM structures into wasm-objects.h. (Closed)
Patch Set: [wasm] Move all heap-allocated WASM structures into wasm-objects.h. Created 4 years, 1 month 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/value-serializer.cc ('k') | 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef V8_WASM_DEBUG_H_
6 #define V8_WASM_DEBUG_H_
7
8 #include "src/handles.h"
9 #include "src/objects.h"
10
11 namespace v8 {
12 namespace internal {
13 namespace wasm {
14
15 class WasmDebugInfo : public FixedArray {
16 public:
17 static Handle<WasmDebugInfo> New(Handle<JSObject> wasm);
18
19 static bool IsDebugInfo(Object* object);
20 static WasmDebugInfo* cast(Object* object);
21
22 JSObject* wasm_instance();
23
24 bool SetBreakPoint(int byte_offset);
25
26 // Get the Script for the specified function.
27 static Script* GetFunctionScript(Handle<WasmDebugInfo> debug_info,
28 int func_index);
29
30 // Disassemble the specified function from this module.
31 static Handle<String> DisassembleFunction(Handle<WasmDebugInfo> debug_info,
32 int func_index);
33
34 // Get the offset table for the specified function, mapping from byte offsets
35 // to position in the disassembly.
36 // Returns an array with three entries per instruction: byte offset, line and
37 // column.
38 static Handle<FixedArray> GetFunctionOffsetTable(
39 Handle<WasmDebugInfo> debug_info, int func_index);
40
41 // Get the asm.js source position from a byte offset.
42 // Must only be called if the associated wasm object was created from asm.js.
43 static int GetAsmJsSourcePosition(Handle<WasmDebugInfo> debug_info,
44 int func_index, int byte_offset);
45 };
46
47 } // namespace wasm
48 } // namespace internal
49 } // namespace v8
50
51 #endif // V8_WASM_DEBUG_H_
OLDNEW
« no previous file with comments | « src/value-serializer.cc ('k') | src/wasm/wasm-debug.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698