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_ARM | 7 #if V8_TARGET_ARCH_ARM |
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 1262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1273 Register* KeyedLoadStubCompiler::registers() { | 1273 Register* KeyedLoadStubCompiler::registers() { |
1274 // receiver, name, scratch1, scratch2, scratch3, scratch4. | 1274 // receiver, name, scratch1, scratch2, scratch3, scratch4. |
1275 Register receiver = LoadIC::ReceiverRegister(); | 1275 Register receiver = LoadIC::ReceiverRegister(); |
1276 Register name = LoadIC::NameRegister(); | 1276 Register name = LoadIC::NameRegister(); |
1277 static Register registers[] = { receiver, name, r3, r0, r4, r5 }; | 1277 static Register registers[] = { receiver, name, r3, r0, r4, r5 }; |
1278 return registers; | 1278 return registers; |
1279 } | 1279 } |
1280 | 1280 |
1281 | 1281 |
1282 Register StoreStubCompiler::value() { | 1282 Register StoreStubCompiler::value() { |
1283 return r0; | 1283 return StoreIC::ValueRegister(); |
1284 } | 1284 } |
1285 | 1285 |
1286 | 1286 |
1287 Register* StoreStubCompiler::registers() { | 1287 Register* StoreStubCompiler::registers() { |
1288 // receiver, name, scratch1, scratch2, scratch3. | 1288 // receiver, name, scratch1, scratch2, scratch3. |
1289 static Register registers[] = { r1, r2, r3, r4, r5 }; | 1289 Register receiver = StoreIC::ReceiverRegister(); |
| 1290 Register name = StoreIC::NameRegister(); |
| 1291 static Register registers[] = { receiver, name, r3, r4, r5 }; |
1290 return registers; | 1292 return registers; |
1291 } | 1293 } |
1292 | 1294 |
1293 | 1295 |
1294 Register* KeyedStoreStubCompiler::registers() { | 1296 Register* KeyedStoreStubCompiler::registers() { |
1295 // receiver, name, scratch1, scratch2, scratch3. | 1297 // receiver, name, scratch1, scratch2, scratch3. |
1296 static Register registers[] = { r2, r1, r3, r4, r5 }; | 1298 Register receiver = KeyedStoreIC::ReceiverRegister(); |
| 1299 Register name = KeyedStoreIC::NameRegister(); |
| 1300 static Register registers[] = { receiver, name, r3, r4, r5 }; |
1297 return registers; | 1301 return registers; |
1298 } | 1302 } |
1299 | 1303 |
1300 | 1304 |
1301 #undef __ | 1305 #undef __ |
1302 #define __ ACCESS_MASM(masm) | 1306 #define __ ACCESS_MASM(masm) |
1303 | 1307 |
1304 | 1308 |
1305 void LoadStubCompiler::GenerateLoadViaGetter(MacroAssembler* masm, | 1309 void LoadStubCompiler::GenerateLoadViaGetter(MacroAssembler* masm, |
1306 Handle<HeapType> type, | 1310 Handle<HeapType> type, |
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1498 | 1502 |
1499 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss); | 1503 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss); |
1500 } | 1504 } |
1501 | 1505 |
1502 | 1506 |
1503 #undef __ | 1507 #undef __ |
1504 | 1508 |
1505 } } // namespace v8::internal | 1509 } } // namespace v8::internal |
1506 | 1510 |
1507 #endif // V8_TARGET_ARCH_ARM | 1511 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |