| 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 1245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1256 __ LoadRoot(r0, Heap::kUndefinedValueRootIndex); | 1256 __ LoadRoot(r0, Heap::kUndefinedValueRootIndex); |
| 1257 __ Ret(); | 1257 __ Ret(); |
| 1258 | 1258 |
| 1259 // Return the generated code. | 1259 // Return the generated code. |
| 1260 return GetCode(kind(), Code::FAST, name); | 1260 return GetCode(kind(), Code::FAST, name); |
| 1261 } | 1261 } |
| 1262 | 1262 |
| 1263 | 1263 |
| 1264 Register* LoadStubCompiler::registers() { | 1264 Register* LoadStubCompiler::registers() { |
| 1265 // receiver, name, scratch1, scratch2, scratch3, scratch4. | 1265 // receiver, name, scratch1, scratch2, scratch3, scratch4. |
| 1266 Register receiver = LoadIC::kReceiverRegister; | 1266 static Register registers[] = { r0, r2, r3, r1, r4, r5 }; |
| 1267 Register name = LoadIC::kNameRegister; | |
| 1268 static Register registers[] = { receiver, name, r3, r1, r4, r5 }; | |
| 1269 return registers; | 1267 return registers; |
| 1270 } | 1268 } |
| 1271 | 1269 |
| 1272 | 1270 |
| 1273 Register* KeyedLoadStubCompiler::registers() { | 1271 Register* KeyedLoadStubCompiler::registers() { |
| 1274 // receiver, name, scratch1, scratch2, scratch3, scratch4. | 1272 // receiver, name, scratch1, scratch2, scratch3, scratch4. |
| 1275 Register receiver = KeyedLoadIC::kReceiverRegister; | 1273 static Register registers[] = { r1, r0, r2, r3, r4, r5 }; |
| 1276 Register name = KeyedLoadIC::kNameRegister; | |
| 1277 static Register registers[] = { receiver, name, r2, r3, r4, r5 }; | |
| 1278 return registers; | 1274 return registers; |
| 1279 } | 1275 } |
| 1280 | 1276 |
| 1281 | 1277 |
| 1282 Register StoreStubCompiler::value() { | 1278 Register StoreStubCompiler::value() { |
| 1283 return r0; | 1279 return r0; |
| 1284 } | 1280 } |
| 1285 | 1281 |
| 1286 | 1282 |
| 1287 Register* StoreStubCompiler::registers() { | 1283 Register* StoreStubCompiler::registers() { |
| (...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1511 // ----------------------------------- | 1507 // ----------------------------------- |
| 1512 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss); | 1508 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss); |
| 1513 } | 1509 } |
| 1514 | 1510 |
| 1515 | 1511 |
| 1516 #undef __ | 1512 #undef __ |
| 1517 | 1513 |
| 1518 } } // namespace v8::internal | 1514 } } // namespace v8::internal |
| 1519 | 1515 |
| 1520 #endif // V8_TARGET_ARCH_ARM | 1516 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |