| 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_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 470 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 481 } | 481 } |
| 482 | 482 |
| 483 // Go to the next object in the prototype chain. | 483 // Go to the next object in the prototype chain. |
| 484 current = prototype; | 484 current = prototype; |
| 485 current_map = handle(current->map()); | 485 current_map = handle(current->map()); |
| 486 } | 486 } |
| 487 | 487 |
| 488 // Log the check depth. | 488 // Log the check depth. |
| 489 LOG(isolate(), IntEvent("check-maps-depth", depth + 1)); | 489 LOG(isolate(), IntEvent("check-maps-depth", depth + 1)); |
| 490 | 490 |
| 491 if (depth != 0 || check == CHECK_ALL_MAPS) { | 491 if (!current_map->IsJSGlobalObjectMap() && |
| 492 (depth != 0 || check == CHECK_ALL_MAPS)) { |
| 492 // Check the holder map. | 493 // Check the holder map. |
| 493 __ ld(scratch1, FieldMemOperand(reg, HeapObject::kMapOffset)); | 494 __ ld(scratch1, FieldMemOperand(reg, HeapObject::kMapOffset)); |
| 494 Handle<WeakCell> cell = Map::WeakCellForMap(current_map); | 495 Handle<WeakCell> cell = Map::WeakCellForMap(current_map); |
| 495 __ GetWeakValue(scratch2, cell); | 496 __ GetWeakValue(scratch2, cell); |
| 496 __ Branch(miss, ne, scratch2, Operand(scratch1)); | 497 __ Branch(miss, ne, scratch2, Operand(scratch1)); |
| 497 } | 498 } |
| 498 | 499 |
| 499 // Return the register containing the holder. | 500 // Return the register containing the holder. |
| 500 return reg; | 501 return reg; |
| 501 } | 502 } |
| (...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 739 // Return the generated code. | 740 // Return the generated code. |
| 740 return GetCode(kind(), Code::NORMAL, name); | 741 return GetCode(kind(), Code::NORMAL, name); |
| 741 } | 742 } |
| 742 | 743 |
| 743 | 744 |
| 744 #undef __ | 745 #undef __ |
| 745 } | 746 } |
| 746 } // namespace v8::internal | 747 } // namespace v8::internal |
| 747 | 748 |
| 748 #endif // V8_TARGET_ARCH_MIPS64 | 749 #endif // V8_TARGET_ARCH_MIPS64 |
| OLD | NEW |