| 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 861 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 872 Register StubCompiler::CheckPrototypes(Handle<HeapType> type, | 872 Register StubCompiler::CheckPrototypes(Handle<HeapType> type, |
| 873 Register object_reg, | 873 Register object_reg, |
| 874 Handle<JSObject> holder, | 874 Handle<JSObject> holder, |
| 875 Register holder_reg, | 875 Register holder_reg, |
| 876 Register scratch1, | 876 Register scratch1, |
| 877 Register scratch2, | 877 Register scratch2, |
| 878 Handle<Name> name, | 878 Handle<Name> name, |
| 879 Label* miss, | 879 Label* miss, |
| 880 PrototypeCheckType check) { | 880 PrototypeCheckType check) { |
| 881 Handle<Map> receiver_map(IC::TypeToMap(*type, isolate())); | 881 Handle<Map> receiver_map(IC::TypeToMap(*type, isolate())); |
| 882 // Make sure that the type feedback oracle harvests the receiver map. | |
| 883 // TODO(svenpanne) Remove this hack when all ICs are reworked. | |
| 884 __ mov(scratch1, Operand(receiver_map)); | |
| 885 | 882 |
| 886 // Make sure there's no overlap between holder and object registers. | 883 // Make sure there's no overlap between holder and object registers. |
| 887 ASSERT(!scratch1.is(object_reg) && !scratch1.is(holder_reg)); | 884 ASSERT(!scratch1.is(object_reg) && !scratch1.is(holder_reg)); |
| 888 ASSERT(!scratch2.is(object_reg) && !scratch2.is(holder_reg) | 885 ASSERT(!scratch2.is(object_reg) && !scratch2.is(holder_reg) |
| 889 && !scratch2.is(scratch1)); | 886 && !scratch2.is(scratch1)); |
| 890 | 887 |
| 891 // Keep track of the current object in register reg. | 888 // Keep track of the current object in register reg. |
| 892 Register reg = object_reg; | 889 Register reg = object_reg; |
| 893 int depth = 0; | 890 int depth = 0; |
| 894 | 891 |
| (...skipping 672 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1567 // ----------------------------------- | 1564 // ----------------------------------- |
| 1568 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss); | 1565 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss); |
| 1569 } | 1566 } |
| 1570 | 1567 |
| 1571 | 1568 |
| 1572 #undef __ | 1569 #undef __ |
| 1573 | 1570 |
| 1574 } } // namespace v8::internal | 1571 } } // namespace v8::internal |
| 1575 | 1572 |
| 1576 #endif // V8_TARGET_ARCH_ARM | 1573 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |