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

Unified Diff: test/common/wasm/wasm-module-runner.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: test/common/wasm/wasm-module-runner.h
diff --git a/test/common/wasm/wasm-module-runner.h b/test/common/wasm/wasm-module-runner.h
index 74553edb05211b2120ddd3b961bcd7cc3b60ddd3..c5f0e8414503b50998134e3271aee34486cbf203 100644
--- a/test/common/wasm/wasm-module-runner.h
+++ b/test/common/wasm/wasm-module-runner.h
@@ -26,7 +26,8 @@ const WasmModule* DecodeWasmModuleForTesting(
// Instantiates a module without any imports and exports.
const Handle<WasmInstanceObject> InstantiateModuleForTesting(
- Isolate* isolate, ErrorThrower* thrower, const WasmModule* module);
+ Isolate* isolate, ErrorThrower* thrower, const WasmModule* module,
+ const ModuleStorage& storage);
int32_t CallWasmFunctionForTesting(Isolate* isolate, Handle<JSObject> instance,
ErrorThrower* thrower, const char* name,
@@ -42,7 +43,8 @@ int32_t CompileAndRunWasmModule(Isolate* isolate, const byte* module_start,
// {function_index}. The return type of the function has to be int32. The module
// should not have any imports or exports
int32_t InterpretWasmModule(Isolate* isolate, ErrorThrower* thrower,
- const WasmModule* module, int function_index,
+ const WasmModule* module,
+ const ModuleStorage& storage, int function_index,
WasmVal* args, bool* may_produced_nan);
// Compiles WasmModule bytes and return an instance of the compiled module.

Powered by Google App Engine
This is Rietveld 408576698