| Index: src/wasm/encoder.cc
|
| diff --git a/src/wasm/encoder.cc b/src/wasm/encoder.cc
|
| index 91624782af8f85350e524dcb7e464a6937621991..b65fc385dfa3fc2802fee7afd259061959e0e6fa 100644
|
| --- a/src/wasm/encoder.cc
|
| +++ b/src/wasm/encoder.cc
|
| @@ -131,6 +131,13 @@ void WasmFunctionBuilder::EmitWithU8(WasmOpcode opcode, const byte immediate) {
|
| body_.push_back(immediate);
|
| }
|
|
|
| +void WasmFunctionBuilder::EmitWithU8U8(WasmOpcode opcode, const byte imm1,
|
| + const byte imm2) {
|
| + body_.push_back(static_cast<byte>(opcode));
|
| + body_.push_back(imm1);
|
| + body_.push_back(imm2);
|
| +}
|
| +
|
| void WasmFunctionBuilder::EmitWithVarInt(WasmOpcode opcode,
|
| uint32_t immediate) {
|
| body_.push_back(static_cast<byte>(opcode));
|
|
|