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

Side by Side Diff: src/wasm/s-expr.h

Issue 2520943002: [wasm] Implement official wasm text format (Closed)
Patch Set: Return a value even after UNREACHABLE 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
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_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_
OLDNEW
« no previous file with comments | « src/v8.gyp ('k') | src/wasm/s-expr.cc » ('j') | src/wasm/s-expr.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698