Index: src/a64/stub-cache-a64.cc |
diff --git a/src/a64/stub-cache-a64.cc b/src/a64/stub-cache-a64.cc |
index 1e09f4a147d641ec5ff4fbc921bc5551679a481f..83d6495cdcb69859f94529c965b6301dafeb5a62 100644 |
--- a/src/a64/stub-cache-a64.cc |
+++ b/src/a64/stub-cache-a64.cc |
@@ -903,7 +903,8 @@ Register StubCompiler::CheckPrototypes(Handle<HeapType> type, |
// the map check so that we know that the object is actually a global |
// object. |
if (current_map->IsJSGlobalProxyMap()) { |
- __ CheckAccessGlobalProxy(reg, scratch2, miss); |
+ UseScratchRegisterScope temps(masm()); |
+ __ CheckAccessGlobalProxy(reg, scratch2, temps.AcquireX(), miss); |
} else if (current_map->IsJSGlobalObjectMap()) { |
GenerateCheckPropertyCell( |
masm(), Handle<JSGlobalObject>::cast(current), name, |
@@ -940,7 +941,7 @@ Register StubCompiler::CheckPrototypes(Handle<HeapType> type, |
ASSERT(current_map->IsJSGlobalProxyMap() || |
!current_map->is_access_check_needed()); |
if (current_map->IsJSGlobalProxyMap()) { |
- __ CheckAccessGlobalProxy(reg, scratch1, miss); |
+ __ CheckAccessGlobalProxy(reg, scratch1, scratch2, miss); |
} |
// Return the register containing the holder. |