Index: src/wasm/module-decoder.h |
diff --git a/src/wasm/module-decoder.h b/src/wasm/module-decoder.h |
index 22a313cec38d5675845e7d3a8edafb34e01f213d..1e2b32a23c45f296e82eefcd30ec3e439ad3abd2 100644 |
--- a/src/wasm/module-decoder.h |
+++ b/src/wasm/module-decoder.h |
@@ -7,10 +7,17 @@ |
#include "src/wasm/ast-decoder.h" |
#include "src/wasm/wasm-module.h" |
+#include "src/wasm/wasm-result.h" |
namespace v8 { |
namespace internal { |
namespace wasm { |
+ |
+typedef Result<const WasmModule*> ModuleResult; |
+typedef Result<WasmFunction*> FunctionResult; |
+typedef std::vector<std::pair<int, int>> FunctionOffsets; |
+typedef Result<FunctionOffsets> FunctionOffsetsResult; |
+ |
// Decodes the bytes of a WASM module between {module_start} and {module_end}. |
V8_EXPORT_PRIVATE ModuleResult DecodeWasmModule(Isolate* isolate, Zone* zone, |
const byte* module_start, |