diff options
Diffstat (limited to 'deps/v8/src/wasm/module-decoder.h')
-rw-r--r-- | deps/v8/src/wasm/module-decoder.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/deps/v8/src/wasm/module-decoder.h b/deps/v8/src/wasm/module-decoder.h index 00a9b878c6..dd6bd3bc86 100644 --- a/deps/v8/src/wasm/module-decoder.h +++ b/deps/v8/src/wasm/module-decoder.h @@ -26,6 +26,13 @@ FunctionSig* DecodeWasmSignatureForTesting(Zone* zone, const byte* start, FunctionResult DecodeWasmFunction(Isolate* isolate, Zone* zone, ModuleEnv* env, const byte* function_start, const byte* function_end); + +// Extracts the function offset table from the wasm module bytes. +// Returns a vector with <offset, length> entries, or failure if the wasm bytes +// are detected as invalid. Note that this validation is not complete. +FunctionOffsetsResult DecodeWasmFunctionOffsets(const byte* module_start, + const byte* module_end); + } // namespace wasm } // namespace internal } // namespace v8 |