diff options
Diffstat (limited to 'deps/v8/src/x64/lithium-x64.cc')
-rw-r--r-- | deps/v8/src/x64/lithium-x64.cc | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/deps/v8/src/x64/lithium-x64.cc b/deps/v8/src/x64/lithium-x64.cc index 6262e7ede3..8f26a09e96 100644 --- a/deps/v8/src/x64/lithium-x64.cc +++ b/deps/v8/src/x64/lithium-x64.cc @@ -862,10 +862,12 @@ void LChunkBuilder::VisitInstruction(HInstruction* current) { LInstruction* instr = NULL; if (current->CanReplaceWithDummyUses()) { - HValue* first_operand = current->OperandCount() == 0 - ? graph()->GetConstant1() - : current->OperandAt(0); - instr = DefineAsRegister(new(zone()) LDummyUse(UseAny(first_operand))); + if (current->OperandCount() == 0) { + instr = DefineAsRegister(new(zone()) LDummy()); + } else { + instr = DefineAsRegister(new(zone()) + LDummyUse(UseAny(current->OperandAt(0)))); + } for (int i = 1; i < current->OperandCount(); ++i) { LInstruction* dummy = new(zone()) LDummyUse(UseAny(current->OperandAt(i))); |