Index: src/interpreter/bytecode-array-writer.cc |
diff --git a/src/interpreter/bytecode-array-writer.cc b/src/interpreter/bytecode-array-writer.cc |
index cf0594cda20b15e990b5a9da481f657b66b4597b..3cc5a30aacf94e3365e9e1346f58fb1a8d178e0b 100644 |
--- a/src/interpreter/bytecode-array-writer.cc |
+++ b/src/interpreter/bytecode-array-writer.cc |
@@ -292,7 +292,7 @@ void BytecodeArrayWriter::EmitJump(BytecodeNode* node, BytecodeLabel* label) { |
delta -= 1; |
} |
DCHECK_EQ(Bytecode::kJumpLoop, node->bytecode()); |
- node->set_bytecode(node->bytecode(), delta, node->operand(1)); |
+ node->update_operand0(delta); |
} else { |
// The label has not yet been bound so this is a forward reference |
// that will be patched when the label is bound. We create a |
@@ -310,13 +310,13 @@ void BytecodeArrayWriter::EmitJump(BytecodeNode* node, BytecodeLabel* label) { |
UNREACHABLE(); |
break; |
case OperandSize::kByte: |
- node->set_bytecode(node->bytecode(), k8BitJumpPlaceholder); |
+ node->update_operand0(k8BitJumpPlaceholder); |
break; |
case OperandSize::kShort: |
- node->set_bytecode(node->bytecode(), k16BitJumpPlaceholder); |
+ node->update_operand0(k16BitJumpPlaceholder); |
break; |
case OperandSize::kQuad: |
- node->set_bytecode(node->bytecode(), k32BitJumpPlaceholder); |
+ node->update_operand0(k32BitJumpPlaceholder); |
break; |
} |
} |