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_ARM | 7 #if V8_TARGET_ARCH_ARM |
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 479 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
490 } | 490 } |
491 | 491 |
492 // Go to the next object in the prototype chain. | 492 // Go to the next object in the prototype chain. |
493 current = prototype; | 493 current = prototype; |
494 current_map = handle(current->map()); | 494 current_map = handle(current->map()); |
495 } | 495 } |
496 | 496 |
497 // Log the check depth. | 497 // Log the check depth. |
498 LOG(isolate(), IntEvent("check-maps-depth", depth + 1)); | 498 LOG(isolate(), IntEvent("check-maps-depth", depth + 1)); |
499 | 499 |
500 if (!current_map->IsJSGlobalObjectMap() && | 500 if (depth != 0 || check == CHECK_ALL_MAPS) { |
501 (depth != 0 || check == CHECK_ALL_MAPS)) { | |
502 // Check the holder map. | 501 // Check the holder map. |
503 __ ldr(scratch1, FieldMemOperand(reg, HeapObject::kMapOffset)); | 502 __ ldr(scratch1, FieldMemOperand(reg, HeapObject::kMapOffset)); |
504 Handle<WeakCell> cell = Map::WeakCellForMap(current_map); | 503 Handle<WeakCell> cell = Map::WeakCellForMap(current_map); |
505 __ CmpWeakValue(scratch1, cell, scratch2); | 504 __ CmpWeakValue(scratch1, cell, scratch2); |
506 __ b(ne, miss); | 505 __ b(ne, miss); |
507 } | 506 } |
508 | 507 |
509 // Return the register containing the holder. | 508 // Return the register containing the holder. |
510 return reg; | 509 return reg; |
511 } | 510 } |
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
749 // Return the generated code. | 748 // Return the generated code. |
750 return GetCode(kind(), Code::NORMAL, name); | 749 return GetCode(kind(), Code::NORMAL, name); |
751 } | 750 } |
752 | 751 |
753 | 752 |
754 #undef __ | 753 #undef __ |
755 } | 754 } |
756 } // namespace v8::internal | 755 } // namespace v8::internal |
757 | 756 |
758 #endif // V8_TARGET_ARCH_ARM | 757 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |