| Index: src/wasm/encoder.cc
|
| diff --git a/src/wasm/encoder.cc b/src/wasm/encoder.cc
|
| index 92e6b1145cba4670e204046bb209674a8bca51f5..a95171d0ae54b9ea6a7ac5ee8f70180252815036 100644
|
| --- a/src/wasm/encoder.cc
|
| +++ b/src/wasm/encoder.cc
|
| @@ -150,6 +150,15 @@ void WasmFunctionBuilder::EmitCode(const byte* code, uint32_t code_size) {
|
| EmitCode(code, code_size, nullptr, 0);
|
| }
|
|
|
| +void WasmFunctionBuilder::EmitGetLocal(uint32_t local_index) {
|
| + local_indices_.push_back(static_cast<uint32_t>(body_.size() + 1));
|
| + EmitWithVarInt(kExprGetLocal, local_index);
|
| +}
|
| +
|
| +void WasmFunctionBuilder::EmitSetLocal(uint32_t local_index) {
|
| + local_indices_.push_back(static_cast<uint32_t>(body_.size() + 1));
|
| + EmitWithVarInt(kExprSetLocal, local_index);
|
| +}
|
|
|
| void WasmFunctionBuilder::EmitCode(const byte* code, uint32_t code_size,
|
| const uint32_t* local_indices,
|
|
|