Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(112)

Side by Side Diff: src/ic/mips64/handler-compiler-mips64.cc

Issue 963603002: Revert of MIPS: Also skip when the target is the global object. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/ic/mips/handler-compiler-mips.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #if V8_TARGET_ARCH_MIPS64 7 #if V8_TARGET_ARCH_MIPS64
8 8
9 #include "src/ic/call-optimization.h" 9 #include "src/ic/call-optimization.h"
10 #include "src/ic/handler-compiler.h" 10 #include "src/ic/handler-compiler.h"
(...skipping 467 matching lines...) Expand 10 before | Expand all | Expand 10 after
478 } 478 }
479 479
480 // Go to the next object in the prototype chain. 480 // Go to the next object in the prototype chain.
481 current = prototype; 481 current = prototype;
482 current_map = handle(current->map()); 482 current_map = handle(current->map());
483 } 483 }
484 484
485 // Log the check depth. 485 // Log the check depth.
486 LOG(isolate(), IntEvent("check-maps-depth", depth + 1)); 486 LOG(isolate(), IntEvent("check-maps-depth", depth + 1));
487 487
488 if (!current_map->IsJSGlobalObjectMap() && 488 if (depth != 0 || check == CHECK_ALL_MAPS) {
489 (depth != 0 || check == CHECK_ALL_MAPS)) {
490 // Check the holder map. 489 // Check the holder map.
491 __ ld(scratch1, FieldMemOperand(reg, HeapObject::kMapOffset)); 490 __ ld(scratch1, FieldMemOperand(reg, HeapObject::kMapOffset));
492 Handle<WeakCell> cell = Map::WeakCellForMap(current_map); 491 Handle<WeakCell> cell = Map::WeakCellForMap(current_map);
493 __ GetWeakValue(scratch2, cell); 492 __ GetWeakValue(scratch2, cell);
494 __ Branch(miss, ne, scratch2, Operand(scratch1)); 493 __ Branch(miss, ne, scratch2, Operand(scratch1));
495 } 494 }
496 495
497 // Perform security check for access to the global object. 496 // Perform security check for access to the global object.
498 DCHECK(current_map->IsJSGlobalProxyMap() || 497 DCHECK(current_map->IsJSGlobalProxyMap() ||
499 !current_map->is_access_check_needed()); 498 !current_map->is_access_check_needed());
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
744 // Return the generated code. 743 // Return the generated code.
745 return GetCode(kind(), Code::NORMAL, name); 744 return GetCode(kind(), Code::NORMAL, name);
746 } 745 }
747 746
748 747
749 #undef __ 748 #undef __
750 } 749 }
751 } // namespace v8::internal 750 } // namespace v8::internal
752 751
753 #endif // V8_TARGET_ARCH_MIPS64 752 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « src/ic/mips/handler-compiler-mips.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698