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 843 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
854 Register StubCompiler::CheckPrototypes(Handle<HeapType> type, | 854 Register StubCompiler::CheckPrototypes(Handle<HeapType> type, |
855 Register object_reg, | 855 Register object_reg, |
856 Handle<JSObject> holder, | 856 Handle<JSObject> holder, |
857 Register holder_reg, | 857 Register holder_reg, |
858 Register scratch1, | 858 Register scratch1, |
859 Register scratch2, | 859 Register scratch2, |
860 Handle<Name> name, | 860 Handle<Name> name, |
861 Label* miss, | 861 Label* miss, |
862 PrototypeCheckType check) { | 862 PrototypeCheckType check) { |
863 Handle<Map> receiver_map(IC::TypeToMap(*type, isolate())); | 863 Handle<Map> receiver_map(IC::TypeToMap(*type, isolate())); |
864 // Make sure that the type feedback oracle harvests the receiver map. | |
865 // TODO(svenpanne) Remove this hack when all ICs are reworked. | |
866 __ mov(scratch1, receiver_map); | |
867 | 864 |
868 // Make sure there's no overlap between holder and object registers. | 865 // Make sure there's no overlap between holder and object registers. |
869 ASSERT(!scratch1.is(object_reg) && !scratch1.is(holder_reg)); | 866 ASSERT(!scratch1.is(object_reg) && !scratch1.is(holder_reg)); |
870 ASSERT(!scratch2.is(object_reg) && !scratch2.is(holder_reg) | 867 ASSERT(!scratch2.is(object_reg) && !scratch2.is(holder_reg) |
871 && !scratch2.is(scratch1)); | 868 && !scratch2.is(scratch1)); |
872 | 869 |
873 // Keep track of the current object in register reg. | 870 // Keep track of the current object in register reg. |
874 Register reg = object_reg; | 871 Register reg = object_reg; |
875 int depth = 0; | 872 int depth = 0; |
876 | 873 |
(...skipping 694 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1571 // ----------------------------------- | 1568 // ----------------------------------- |
1572 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss); | 1569 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss); |
1573 } | 1570 } |
1574 | 1571 |
1575 | 1572 |
1576 #undef __ | 1573 #undef __ |
1577 | 1574 |
1578 } } // namespace v8::internal | 1575 } } // namespace v8::internal |
1579 | 1576 |
1580 #endif // V8_TARGET_ARCH_IA32 | 1577 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |