| Index: src/wasm/wasm-objects.h
|
| diff --git a/src/wasm/wasm-objects.h b/src/wasm/wasm-objects.h
|
| index b9e2cd05aa4769b3105541b038970d12393c8032..19627fff00293101564c6bbf4c31d05af5bb3b0e 100644
|
| --- a/src/wasm/wasm-objects.h
|
| +++ b/src/wasm/wasm-objects.h
|
| @@ -271,6 +271,11 @@ class WasmCompiledModule : public FixedArray {
|
| // Does not allocate, hence gc-safe.
|
| Vector<const uint8_t> GetRawFunctionName(uint32_t func_index);
|
|
|
| + // Return the byte offset of the function identified by the given index.
|
| + // The offset will be relative to the start of the module bytes.
|
| + // Returns -1 if the function index is invalid.
|
| + int GetFunctionOffset(uint32_t func_index) const;
|
| +
|
| private:
|
| void InitId();
|
|
|
|
|