OLD | NEW |
---|---|
(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_S_EXPR_H_ | |
6 #define V8_WASM_S_EXPR_H_ | |
7 | |
8 #include <cstdint> | |
9 #include <ostream> | |
10 #include <tuple> | |
11 #include <vector> | |
12 | |
13 namespace v8 { | |
14 namespace internal { | |
15 | |
16 // Forward declaration. | |
17 class AccountingAllocator; | |
titzer
2016/11/21 14:57:26
Is this declaration necessary?
Clemens Hammacher
2016/11/21 17:48:40
Nope, removed it.
| |
18 | |
19 namespace wasm { | |
20 | |
21 // Forward declaration. | |
22 struct WasmModule; | |
23 | |
24 // Generate s-expression disassembly. | |
25 // Output disassembly to the given output stream, and optionally return an | |
26 // offset table of <byte offset, line, column> via the given pointer. | |
27 void PrintSExpr(const WasmModule *module, uint32_t func_index, std::ostream &os, | |
28 std::vector<std::tuple<uint32_t, int, int>> *offset_table); | |
29 | |
30 } // namespace wasm | |
31 } // namespace internal | |
32 } // namespace v8 | |
33 | |
34 #endif // V8_WASM_S_EXPR_H_ | |
OLD | NEW |