diff options
Diffstat (limited to 'deps/v8/src/wasm/function-body-decoder.h')
-rw-r--r-- | deps/v8/src/wasm/function-body-decoder.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/deps/v8/src/wasm/function-body-decoder.h b/deps/v8/src/wasm/function-body-decoder.h index f5425402336..4fab50817ca 100644 --- a/deps/v8/src/wasm/function-body-decoder.h +++ b/deps/v8/src/wasm/function-body-decoder.h @@ -173,9 +173,7 @@ class V8_EXPORT_PRIVATE BytecodeIterator : public NON_EXPORTED_BASE(Decoder) { bool has_next() { return pc_ < end_; } WasmOpcode prefixed_opcode() { - byte prefix = read_u8<Decoder::kNoValidate>(pc_, "expected prefix"); - byte index = read_u8<Decoder::kNoValidate>(pc_ + 1, "expected index"); - return static_cast<WasmOpcode>(prefix << 8 | index); + return read_prefixed_opcode<Decoder::kNoValidate>(pc_); } }; |