Index: src/x64/macro-assembler-x64.cc |
diff --git a/src/x64/macro-assembler-x64.cc b/src/x64/macro-assembler-x64.cc |
index 2ce4658b6d68021281a5d972e0a7af35398c31d1..185c3a56a518e8039c7edda6358de4d135eec815 100644 |
--- a/src/x64/macro-assembler-x64.cc |
+++ b/src/x64/macro-assembler-x64.cc |
@@ -2561,8 +2561,8 @@ void MacroAssembler::CmpInstanceType(Register map, InstanceType type) { |
void MacroAssembler::CheckMap(Register obj, |
Handle<Map> map, |
Label* fail, |
- bool is_heap_object) { |
- if (!is_heap_object) { |
+ SmiCheckType smi_check_type) { |
+ if (smi_check_type == DO_SMI_CHECK) { |
JumpIfSmi(obj, fail); |
} |
Cmp(FieldOperand(obj, HeapObject::kMapOffset), map); |
@@ -3602,7 +3602,7 @@ void MacroAssembler::LoadGlobalFunctionInitialMap(Register function, |
movq(map, FieldOperand(function, JSFunction::kPrototypeOrInitialMapOffset)); |
if (emit_debug_code()) { |
Label ok, fail; |
- CheckMap(map, isolate()->factory()->meta_map(), &fail, false); |
+ CheckMap(map, isolate()->factory()->meta_map(), &fail, DO_SMI_CHECK); |
jmp(&ok); |
bind(&fail); |
Abort("Global functions must have initial map"); |