Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/src/wasm/function-body-decoder.h')
-rw-r--r--deps/v8/src/wasm/function-body-decoder.h4
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_);
}
};