Index: src/x64/lithium-x64.cc |
diff --git a/src/x64/lithium-x64.cc b/src/x64/lithium-x64.cc |
index ba29ed969df4e811c9f409ab955b499f8a9ce970..fe494f2731a5e274680060c746f31ce56522944b 100644 |
--- a/src/x64/lithium-x64.cc |
+++ b/src/x64/lithium-x64.cc |
@@ -1610,7 +1610,7 @@ LInstruction* LChunkBuilder::DoCompareIDAndBranch( |
LInstruction* LChunkBuilder::DoCompareObjectEqAndBranch( |
HCompareObjectEqAndBranch* instr) { |
LOperand* left = UseRegisterAtStart(instr->left()); |
- LOperand* right = UseRegisterAtStart(instr->right()); |
+ LOperand* right = UseRegisterOrConstantAtStart(instr->right()); |
return new(zone()) LCmpObjectEqAndBranch(left, right); |
} |