Index: src/ic/arm64/handler-compiler-arm64.cc |
diff --git a/src/ic/arm64/handler-compiler-arm64.cc b/src/ic/arm64/handler-compiler-arm64.cc |
index 53519179f269d54e7d307bbc9ce2189d4320931c..db55e23b49ed7da99ab12a93938e201a10ff253d 100644 |
--- a/src/ic/arm64/handler-compiler-arm64.cc |
+++ b/src/ic/arm64/handler-compiler-arm64.cc |
@@ -548,7 +548,8 @@ Register PropertyHandlerCompiler::CheckPrototypes( |
LOG(isolate(), IntEvent("check-maps-depth", depth + 1)); |
// Check the holder map. |
- if (depth != 0 || check == CHECK_ALL_MAPS) { |
+ if (!current_map->IsJSGlobalObjectMap() && |
+ (depth != 0 || check == CHECK_ALL_MAPS)) { |
// Check the holder map. |
__ Ldr(scratch1, FieldMemOperand(reg, HeapObject::kMapOffset)); |
Handle<WeakCell> cell = Map::WeakCellForMap(current_map); |