OLD | NEW |
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_ARM64 | 7 #if V8_TARGET_ARCH_ARM64 |
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 530 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
541 | 541 |
542 // Go to the next object in the prototype chain. | 542 // Go to the next object in the prototype chain. |
543 current = prototype; | 543 current = prototype; |
544 current_map = handle(current->map()); | 544 current_map = handle(current->map()); |
545 } | 545 } |
546 | 546 |
547 // Log the check depth. | 547 // Log the check depth. |
548 LOG(isolate(), IntEvent("check-maps-depth", depth + 1)); | 548 LOG(isolate(), IntEvent("check-maps-depth", depth + 1)); |
549 | 549 |
550 // Check the holder map. | 550 // Check the holder map. |
551 if (depth != 0 || check == CHECK_ALL_MAPS) { | 551 if (!current_map->IsJSGlobalObjectMap() && |
| 552 (depth != 0 || check == CHECK_ALL_MAPS)) { |
552 // Check the holder map. | 553 // Check the holder map. |
553 __ Ldr(scratch1, FieldMemOperand(reg, HeapObject::kMapOffset)); | 554 __ Ldr(scratch1, FieldMemOperand(reg, HeapObject::kMapOffset)); |
554 Handle<WeakCell> cell = Map::WeakCellForMap(current_map); | 555 Handle<WeakCell> cell = Map::WeakCellForMap(current_map); |
555 __ CmpWeakValue(scratch1, cell, scratch2); | 556 __ CmpWeakValue(scratch1, cell, scratch2); |
556 __ B(ne, miss); | 557 __ B(ne, miss); |
557 } | 558 } |
558 | 559 |
559 // Return the register containing the holder. | 560 // Return the register containing the holder. |
560 return reg; | 561 return reg; |
561 } | 562 } |
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
761 // Return the generated code. | 762 // Return the generated code. |
762 return GetCode(kind(), Code::FAST, name); | 763 return GetCode(kind(), Code::FAST, name); |
763 } | 764 } |
764 | 765 |
765 | 766 |
766 #undef __ | 767 #undef __ |
767 } | 768 } |
768 } // namespace v8::internal | 769 } // namespace v8::internal |
769 | 770 |
770 #endif // V8_TARGET_ARCH_IA32 | 771 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |