Index: src/arm64/lithium-arm64.cc |
diff --git a/src/arm64/lithium-arm64.cc b/src/arm64/lithium-arm64.cc |
index d58e3cc9916bf01890c550f2b581ae158f17c71c..0a522a5f551b64f627396ccf63d24c4688974173 100644 |
--- a/src/arm64/lithium-arm64.cc |
+++ b/src/arm64/lithium-arm64.cc |
@@ -1171,7 +1171,9 @@ LInstruction* LChunkBuilder::DoChange(HChange* instr) { |
LInstruction* LChunkBuilder::DoCheckValue(HCheckValue* instr) { |
LOperand* value = UseRegisterAtStart(instr->value()); |
- return AssignEnvironment(new(zone()) LCheckValue(value)); |
+ LInstruction* result = new(zone()) LCheckNonSmi(value); |
+ if (!instr->value()->IsHeapObject()) result = AssignEnvironment(result); |
+ return result; |
} |