Index: src/ic/x64/handler-compiler-x64.cc |
diff --git a/src/ic/x64/handler-compiler-x64.cc b/src/ic/x64/handler-compiler-x64.cc |
index 26fd0716643978345afba50216096ccdda825432..4b066f2d4291e2d2f3f48104c55c515add11ff77 100644 |
--- a/src/ic/x64/handler-compiler-x64.cc |
+++ b/src/ic/x64/handler-compiler-x64.cc |
@@ -500,8 +500,7 @@ |
// Log the check depth. |
LOG(isolate(), IntEvent("check-maps-depth", depth + 1)); |
- if (!current_map->IsJSGlobalObjectMap() && |
- (depth != 0 || check == CHECK_ALL_MAPS)) { |
+ if (depth != 0 || check == CHECK_ALL_MAPS) { |
__ movp(scratch1, FieldOperand(reg, HeapObject::kMapOffset)); |
Handle<WeakCell> cell = Map::WeakCellForMap(current_map); |
__ CmpWeakValue(scratch1, cell, scratch2); |