Index: src/x64/macro-assembler-x64.h |
diff --git a/src/x64/macro-assembler-x64.h b/src/x64/macro-assembler-x64.h |
index 9cc496f8c2dd13b3e0c4328724bf202f2f762bc8..c10cbc65fe28d33407d35719bd8b29929990559a 100644 |
--- a/src/x64/macro-assembler-x64.h |
+++ b/src/x64/macro-assembler-x64.h |
@@ -792,7 +792,7 @@ class MacroAssembler: public Assembler { |
void PushHeapObject(Handle<HeapObject> object); |
void LoadObject(Register result, Handle<Object> object) { |
- ALLOW_HANDLE_DEREF(isolate(), "heap object check"); |
+ AllowDeferredHandleDereference heap_object_check; |
if (object->IsHeapObject()) { |
LoadHeapObject(result, Handle<HeapObject>::cast(object)); |
} else { |
@@ -801,7 +801,7 @@ class MacroAssembler: public Assembler { |
} |
void CmpObject(Register reg, Handle<Object> object) { |
- ALLOW_HANDLE_DEREF(isolate(), "heap object check"); |
+ AllowDeferredHandleDereference heap_object_check; |
if (object->IsHeapObject()) { |
CmpHeapObject(reg, Handle<HeapObject>::cast(object)); |
} else { |