Index: src/x64/stub-cache-x64.cc |
diff --git a/src/x64/stub-cache-x64.cc b/src/x64/stub-cache-x64.cc |
index 542018fddd084c20fb9fc1f024a4d8a92e41cccd..6e29ab412e45a7fc0ce4582c7cb64c7bbc787223 100644 |
--- a/src/x64/stub-cache-x64.cc |
+++ b/src/x64/stub-cache-x64.cc |
@@ -3056,6 +3056,7 @@ static void GenerateSmiKeyCheck(MacroAssembler* masm, |
__ ucomisd(xmm_scratch1, xmm_scratch0); |
__ j(not_equal, fail); |
__ j(parity_even, fail); // NaN. |
+ __ JumpIfNotValidSmiValue(scratch, fail); |
__ Integer32ToSmi(key, scratch); |
__ bind(&key_ok); |
} |