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-text.h

Issue 2520943002: [wasm] Implement official wasm text format (Closed)
Patch Set: Address comments Created 4 years 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-module.cc ('k') | src/wasm/wasm-text.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_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 namespace wasm {
17
18 // Forward declaration.
19 struct WasmModule;
20
21 // Generate disassembly according to official text format.
22 // Output disassembly to the given output stream, and optionally return an
23 // offset table of <byte offset, line, column> via the given pointer.
24 void PrintWasmText(const WasmModule *module, uint32_t func_index,
25 std::ostream &os,
26 std::vector<std::tuple<uint32_t, int, int>> *offset_table);
27
28 } // namespace wasm
29 } // namespace internal
30 } // namespace v8
31
32 #endif // V8_WASM_S_EXPR_H_
OLDNEW
« no previous file with comments | « src/wasm/wasm-module.cc ('k') | src/wasm/wasm-text.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698