| Index: src/wasm/module-decoder.h
|
| diff --git a/src/wasm/module-decoder.h b/src/wasm/module-decoder.h
|
| index 91169d8eca1dbc8e567aceb566f71cbbb154c485..1258d6ed341fa52cc31da1e2be3156f88b1d0d5a 100644
|
| --- a/src/wasm/module-decoder.h
|
| +++ b/src/wasm/module-decoder.h
|
| @@ -60,9 +60,16 @@ typedef std::vector<std::vector<AsmJsOffsetEntry>> AsmJsOffsets;
|
| typedef Result<AsmJsOffsets> AsmJsOffsetsResult;
|
|
|
| // Decodes the bytes of a WASM module between {module_start} and {module_end}.
|
| -V8_EXPORT_PRIVATE ModuleResult DecodeWasmModule(
|
| +V8_EXPORT_PRIVATE ModuleResult SyncDecodeWasmModule(Isolate* isolate,
|
| + const byte* module_start,
|
| + const byte* module_end,
|
| + bool verify_functions,
|
| + ModuleOrigin origin);
|
| +
|
| +V8_EXPORT_PRIVATE ModuleResult AsyncDecodeWasmModule(
|
| Isolate* isolate, const byte* module_start, const byte* module_end,
|
| - bool verify_functions, ModuleOrigin origin, bool is_sync = true);
|
| + bool verify_functions, ModuleOrigin origin,
|
| + const std::shared_ptr<Counters>& counters);
|
|
|
| // Exposed for testing. Decodes a single function signature, allocating it
|
| // in the given zone. Returns {nullptr} upon failure.
|
| @@ -72,9 +79,14 @@ V8_EXPORT_PRIVATE FunctionSig* DecodeWasmSignatureForTesting(Zone* zone,
|
|
|
| // Decodes the bytes of a WASM function between
|
| // {function_start} and {function_end}.
|
| -V8_EXPORT_PRIVATE FunctionResult DecodeWasmFunction(
|
| - Isolate* isolate, Zone* zone, ModuleBytesEnv* env,
|
| - const byte* function_start, const byte* function_end, bool is_sync = true);
|
| +V8_EXPORT_PRIVATE FunctionResult
|
| +SyncDecodeWasmFunction(Isolate* isolate, Zone* zone, ModuleBytesEnv* env,
|
| + const byte* function_start, const byte* function_end);
|
| +
|
| +V8_EXPORT_PRIVATE FunctionResult
|
| +AsyncDecodeWasmFunction(Isolate* isolate, Zone* zone, ModuleBytesEnv* env,
|
| + const byte* function_start, const byte* function_end,
|
| + const std::shared_ptr<Counters>& counters);
|
|
|
| V8_EXPORT_PRIVATE WasmInitExpr DecodeWasmInitExprForTesting(const byte* start,
|
| const byte* end);
|
|
|