| Index: src/interpreter/bytecode-pipeline.h
|
| diff --git a/src/interpreter/bytecode-pipeline.h b/src/interpreter/bytecode-pipeline.h
|
| index f4e62734707721379288ba08141cb1b81f0e16f8..cb6e2d63c3844ced74a3d40a4689eaf95f7a257c 100644
|
| --- a/src/interpreter/bytecode-pipeline.h
|
| +++ b/src/interpreter/bytecode-pipeline.h
|
| @@ -153,6 +153,12 @@ class BytecodeNode final : ZoneObject {
|
| BytecodeNode(const BytecodeNode& other);
|
| BytecodeNode& operator=(const BytecodeNode& other);
|
|
|
| + // Replace the bytecode of this node with |bytecode| and keep the operands.
|
| + void replace_bytecode(Bytecode bytecode) {
|
| + DCHECK_EQ(Bytecodes::NumberOfOperands(bytecode_),
|
| + Bytecodes::NumberOfOperands(bytecode));
|
| + bytecode_ = bytecode;
|
| + }
|
| void set_bytecode(Bytecode bytecode) {
|
| DCHECK_EQ(Bytecodes::NumberOfOperands(bytecode), 0);
|
| bytecode_ = bytecode;
|
|
|