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