OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 806 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
817 // Make sure there's no overlap between holder and object registers. | 817 // Make sure there's no overlap between holder and object registers. |
818 ASSERT(!scratch1.is(object_reg) && !scratch1.is(holder_reg)); | 818 ASSERT(!scratch1.is(object_reg) && !scratch1.is(holder_reg)); |
819 ASSERT(!scratch2.is(object_reg) && !scratch2.is(holder_reg) | 819 ASSERT(!scratch2.is(object_reg) && !scratch2.is(holder_reg) |
820 && !scratch2.is(scratch1)); | 820 && !scratch2.is(scratch1)); |
821 | 821 |
822 // Keep track of the current object in register reg. | 822 // Keep track of the current object in register reg. |
823 Register reg = object_reg; | 823 Register reg = object_reg; |
824 int depth = 0; | 824 int depth = 0; |
825 | 825 |
826 Handle<JSObject> current = Handle<JSObject>::null(); | 826 Handle<JSObject> current = Handle<JSObject>::null(); |
827 if (type->IsConstant()) current = Handle<JSObject>::cast(type->AsConstant()); | 827 if (type->IsConstant()) current = |
| 828 Handle<JSObject>::cast(type->AsConstant()->Value()); |
828 Handle<JSObject> prototype = Handle<JSObject>::null(); | 829 Handle<JSObject> prototype = Handle<JSObject>::null(); |
829 Handle<Map> current_map = receiver_map; | 830 Handle<Map> current_map = receiver_map; |
830 Handle<Map> holder_map(holder->map()); | 831 Handle<Map> holder_map(holder->map()); |
831 // Traverse the prototype chain and check the maps in the prototype chain for | 832 // Traverse the prototype chain and check the maps in the prototype chain for |
832 // fast and global objects or do negative lookup for normal objects. | 833 // fast and global objects or do negative lookup for normal objects. |
833 while (!current_map.is_identical_to(holder_map)) { | 834 while (!current_map.is_identical_to(holder_map)) { |
834 ++depth; | 835 ++depth; |
835 | 836 |
836 // Only global objects and objects that do not require access | 837 // Only global objects and objects that do not require access |
837 // checks are allowed in stubs. | 838 // checks are allowed in stubs. |
(...skipping 697 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1535 // ----------------------------------- | 1536 // ----------------------------------- |
1536 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss); | 1537 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss); |
1537 } | 1538 } |
1538 | 1539 |
1539 | 1540 |
1540 #undef __ | 1541 #undef __ |
1541 | 1542 |
1542 } } // namespace v8::internal | 1543 } } // namespace v8::internal |
1543 | 1544 |
1544 #endif // V8_TARGET_ARCH_IA32 | 1545 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |