MIPS: Also skip when the target is the global object.
Port cc918d30b9
BUG=
Review URL: https://codereview.chromium.org/957413002
Cr-Commit-Position: refs/heads/master@{#26897}
This commit is contained in:
parent
6a12dc240b
commit
b24a0efa44
@ -487,7 +487,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)) {
|
||||
// Check the holder map.
|
||||
__ lw(scratch1, FieldMemOperand(reg, HeapObject::kMapOffset));
|
||||
Handle<WeakCell> cell = Map::WeakCellForMap(current_map);
|
||||
|
@ -488,7 +488,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)) {
|
||||
// Check the holder map.
|
||||
__ ld(scratch1, FieldMemOperand(reg, HeapObject::kMapOffset));
|
||||
Handle<WeakCell> cell = Map::WeakCellForMap(current_map);
|
||||
|
Loading…
Reference in New Issue
Block a user