| Index: src/interpreter/bytecode-peephole-optimizer.cc
|
| diff --git a/src/interpreter/bytecode-peephole-optimizer.cc b/src/interpreter/bytecode-peephole-optimizer.cc
|
| index 1881ca1965bcddc1c155f472194d9146bfd45fed..11aebb6ddb3ef1f3d85ac36196e0b57f37e4aef9 100644
|
| --- a/src/interpreter/bytecode-peephole-optimizer.cc
|
| +++ b/src/interpreter/bytecode-peephole-optimizer.cc
|
| @@ -139,7 +139,8 @@ void TransformLdaSmiBinaryOpToBinaryOpWithSmi(Bytecode new_bytecode,
|
| BytecodeNode* const last,
|
| BytecodeNode* const current) {
|
| DCHECK_EQ(last->bytecode(), Bytecode::kLdaSmi);
|
| - current->set_bytecode(new_bytecode, last->operand(0), current->operand(0));
|
| + current->set_bytecode(new_bytecode, last->operand(0), current->operand(0),
|
| + current->operand(1));
|
| if (last->source_info().is_valid()) {
|
| current->source_info().Clone(last->source_info());
|
| }
|
| @@ -149,7 +150,8 @@ void TransformLdaZeroBinaryOpToBinaryOpWithZero(Bytecode new_bytecode,
|
| BytecodeNode* const last,
|
| BytecodeNode* const current) {
|
| DCHECK_EQ(last->bytecode(), Bytecode::kLdaZero);
|
| - current->set_bytecode(new_bytecode, 0, current->operand(0));
|
| + current->set_bytecode(new_bytecode, 0, current->operand(0),
|
| + current->operand(1));
|
| if (last->source_info().is_valid()) {
|
| current->source_info().Clone(last->source_info());
|
| }
|
|
|