Chromium Code Reviews| Index: src/wasm/decoder.h |
| diff --git a/src/wasm/decoder.h b/src/wasm/decoder.h |
| index 098c3306da05b0f750a1cc4fb043277b852777d1..f0fe3b33d8f26c942179b6161af61ee259f58684 100644 |
| --- a/src/wasm/decoder.h |
| +++ b/src/wasm/decoder.h |
| @@ -333,6 +333,7 @@ class Decoder { |
| const byte* start() { return start_; } |
| const byte* pc() { return pc_; } |
| + uint32_t pc_offset() { return static_cast<uint32_t>(pc_ - start_); } |
| protected: |
| const byte* start_; |