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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/v8.gyp ('k') | src/wasm/s-expr.cc » ('j') | src/wasm/s-expr.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/wasm/s-expr.h
diff --git a/src/wasm/s-expr.h b/src/wasm/s-expr.h
new file mode 100644
index 0000000000000000000000000000000000000000..830af252ee2c4800c9734b414c49cce905c3673e
--- /dev/null
+++ b/src/wasm/s-expr.h
@@ -0,0 +1,34 @@
+// Copyright 2016 the V8 project authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef V8_WASM_S_EXPR_H_
+#define V8_WASM_S_EXPR_H_
+
+#include <cstdint>
+#include <ostream>
+#include <tuple>
+#include <vector>
+
+namespace v8 {
+namespace internal {
+
+// Forward declaration.
+class AccountingAllocator;
titzer 2016/11/21 14:57:26 Is this declaration necessary?
Clemens Hammacher 2016/11/21 17:48:40 Nope, removed it.
+
+namespace wasm {
+
+// Forward declaration.
+struct WasmModule;
+
+// Generate s-expression disassembly.
+// Output disassembly to the given output stream, and optionally return an
+// offset table of <byte offset, line, column> via the given pointer.
+void PrintSExpr(const WasmModule *module, uint32_t func_index, std::ostream &os,
+ std::vector<std::tuple<uint32_t, int, int>> *offset_table);
+
+} // namespace wasm
+} // namespace internal
+} // namespace v8
+
+#endif // V8_WASM_S_EXPR_H_
« 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