Index: src/x64/code-stubs-x64.cc |
diff --git a/src/x64/code-stubs-x64.cc b/src/x64/code-stubs-x64.cc |
index af9054bc8f599be2db16e772c28fd0cdfd0fc9d2..63b2b75d20e6306f4426dc63e71756f2832a3b6b 100644 |
--- a/src/x64/code-stubs-x64.cc |
+++ b/src/x64/code-stubs-x64.cc |
@@ -2551,7 +2551,10 @@ void NumberToStringStub::GenerateLookupNumberStringCache(MacroAssembler* masm, |
Factory* factory = masm->isolate()->factory(); |
if (!object_is_smi) { |
__ JumpIfSmi(object, &is_smi); |
- __ CheckMap(object, factory->heap_number_map(), not_found, true); |
+ __ CheckMap(object, |
+ factory->heap_number_map(), |
+ not_found, |
+ DONT_DO_SMI_CHECK); |
STATIC_ASSERT(8 == kDoubleSize); |
__ movl(scratch, FieldOperand(object, HeapNumber::kValueOffset + 4)); |
@@ -3681,7 +3684,10 @@ void StringCharCodeAtGenerator::GenerateSlow( |
// Index is not a smi. |
__ bind(&index_not_smi_); |
// If index is a heap number, try converting it to an integer. |
- __ CheckMap(index_, factory->heap_number_map(), index_not_number_, true); |
+ __ CheckMap(index_, |
+ factory->heap_number_map(), |
+ index_not_number_, |
+ DONT_DO_SMI_CHECK); |
call_helper.BeforeCall(masm); |
__ push(object_); |
__ push(index_); |