OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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_X87 | 7 #if V8_TARGET_ARCH_X87 |
8 | 8 |
9 #include "src/codegen.h" | 9 #include "src/codegen.h" |
10 #include "src/ic-inl.h" | 10 #include "src/ic-inl.h" |
(...skipping 1177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1188 Register name = LoadIC::NameRegister(); | 1188 Register name = LoadIC::NameRegister(); |
1189 static Register registers[] = { receiver, name, ebx, eax, edi, no_reg }; | 1189 static Register registers[] = { receiver, name, ebx, eax, edi, no_reg }; |
1190 return registers; | 1190 return registers; |
1191 } | 1191 } |
1192 | 1192 |
1193 | 1193 |
1194 Register* PropertyAccessCompiler::store_calling_convention() { | 1194 Register* PropertyAccessCompiler::store_calling_convention() { |
1195 // receiver, name, scratch1, scratch2, scratch3. | 1195 // receiver, name, scratch1, scratch2, scratch3. |
1196 Register receiver = StoreIC::ReceiverRegister(); | 1196 Register receiver = StoreIC::ReceiverRegister(); |
1197 Register name = StoreIC::NameRegister(); | 1197 Register name = StoreIC::NameRegister(); |
| 1198 ASSERT(ebx.is(KeyedStoreIC::MapRegister())); |
1198 static Register registers[] = { receiver, name, ebx, edi, no_reg }; | 1199 static Register registers[] = { receiver, name, ebx, edi, no_reg }; |
1199 return registers; | 1200 return registers; |
1200 } | 1201 } |
1201 | 1202 |
1202 | 1203 |
1203 Register* PropertyAccessCompiler::keyed_store_calling_convention() { | |
1204 // receiver, name, scratch1/map, scratch2, scratch3. | |
1205 Register receiver = KeyedStoreIC::ReceiverRegister(); | |
1206 Register name = KeyedStoreIC::NameRegister(); | |
1207 Register map = KeyedStoreIC::MapRegister(); | |
1208 static Register registers[] = { receiver, name, map, edi, no_reg }; | |
1209 return registers; | |
1210 } | |
1211 | |
1212 | |
1213 Register NamedStoreHandlerCompiler::value() { return StoreIC::ValueRegister(); } | 1204 Register NamedStoreHandlerCompiler::value() { return StoreIC::ValueRegister(); } |
1214 | 1205 |
1215 | 1206 |
1216 #undef __ | 1207 #undef __ |
1217 #define __ ACCESS_MASM(masm) | 1208 #define __ ACCESS_MASM(masm) |
1218 | 1209 |
1219 | 1210 |
1220 void NamedLoadHandlerCompiler::GenerateLoadViaGetter( | 1211 void NamedLoadHandlerCompiler::GenerateLoadViaGetter( |
1221 MacroAssembler* masm, Handle<HeapType> type, Register receiver, | 1212 MacroAssembler* masm, Handle<HeapType> type, Register receiver, |
1222 Handle<JSFunction> getter) { | 1213 Handle<JSFunction> getter) { |
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1390 // ----------------------------------- | 1381 // ----------------------------------- |
1391 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss); | 1382 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss); |
1392 } | 1383 } |
1393 | 1384 |
1394 | 1385 |
1395 #undef __ | 1386 #undef __ |
1396 | 1387 |
1397 } } // namespace v8::internal | 1388 } } // namespace v8::internal |
1398 | 1389 |
1399 #endif // V8_TARGET_ARCH_X87 | 1390 #endif // V8_TARGET_ARCH_X87 |
OLD | NEW |