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

Unified Diff: src/wasm/wasm-text.h

Issue 2540133002: [wasm] Remove raw byte pointers from WasmModule (Closed)
Patch Set: 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 side-by-side diff with in-line comments
Download patch
Index: src/wasm/wasm-text.h
diff --git a/src/wasm/wasm-text.h b/src/wasm/wasm-text.h
index 41c0991ad4fe75ff4cf346c9cff770ad968fa91c..748d54b445d968cc72373cc34cd1367c47a437af 100644
--- a/src/wasm/wasm-text.h
+++ b/src/wasm/wasm-text.h
@@ -17,12 +17,13 @@ namespace wasm {
// Forward declaration.
struct WasmModule;
+struct ModuleStorage;
// Generate disassembly according to official text format.
// Output disassembly to the given output stream, and optionally return an
// offset table of <byte offset, line, column> via the given pointer.
-void PrintWasmText(const WasmModule *module, uint32_t func_index,
- std::ostream &os,
+void PrintWasmText(const WasmModule *module, const ModuleStorage &storage,
+ uint32_t func_index, std::ostream &os,
std::vector<std::tuple<uint32_t, int, int>> *offset_table);
} // namespace wasm
« src/wasm/wasm-module.h ('K') | « 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