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 1114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1125 Register StubCompiler::CheckPrototypes(Handle<JSObject> object, | 1125 Register StubCompiler::CheckPrototypes(Handle<JSObject> object, |
1126 Register object_reg, | 1126 Register object_reg, |
1127 Handle<JSObject> holder, | 1127 Handle<JSObject> holder, |
1128 Register holder_reg, | 1128 Register holder_reg, |
1129 Register scratch1, | 1129 Register scratch1, |
1130 Register scratch2, | 1130 Register scratch2, |
1131 Handle<Name> name, | 1131 Handle<Name> name, |
1132 int save_at_depth, | 1132 int save_at_depth, |
1133 Label* miss, | 1133 Label* miss, |
1134 PrototypeCheckType check) { | 1134 PrototypeCheckType check) { |
1135 // Make sure that the type feedback oracle harvests the receiver map. | |
1136 __ mov(scratch1, Handle<Map>(object->map())); | |
Michael Starzinger
2013/07/17 15:03:30
The StubCompiler::CheckPrototypes() helper is used
Michael Starzinger
2013/07/17 15:15:17
To be precise, this should go into CallStubCompile
| |
1137 | |
1135 Handle<JSObject> first = object; | 1138 Handle<JSObject> first = object; |
1136 // Make sure there's no overlap between holder and object registers. | 1139 // Make sure there's no overlap between holder and object registers. |
1137 ASSERT(!scratch1.is(object_reg) && !scratch1.is(holder_reg)); | 1140 ASSERT(!scratch1.is(object_reg) && !scratch1.is(holder_reg)); |
1138 ASSERT(!scratch2.is(object_reg) && !scratch2.is(holder_reg) | 1141 ASSERT(!scratch2.is(object_reg) && !scratch2.is(holder_reg) |
1139 && !scratch2.is(scratch1)); | 1142 && !scratch2.is(scratch1)); |
1140 | 1143 |
1141 // Keep track of the current object in register reg. | 1144 // Keep track of the current object in register reg. |
1142 Register reg = object_reg; | 1145 Register reg = object_reg; |
1143 Handle<JSObject> current = object; | 1146 Handle<JSObject> current = object; |
1144 int depth = 0; | 1147 int depth = 0; |
(...skipping 2619 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
3764 TailCallBuiltin(masm, Builtins::kKeyedStoreIC_Slow); | 3767 TailCallBuiltin(masm, Builtins::kKeyedStoreIC_Slow); |
3765 } | 3768 } |
3766 } | 3769 } |
3767 | 3770 |
3768 | 3771 |
3769 #undef __ | 3772 #undef __ |
3770 | 3773 |
3771 } } // namespace v8::internal | 3774 } } // namespace v8::internal |
3772 | 3775 |
3773 #endif // V8_TARGET_ARCH_IA32 | 3776 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |