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 | 5 |
6 | 6 |
7 #include "src/v8.h" | 7 #include "src/v8.h" |
8 | 8 |
9 #if V8_TARGET_ARCH_MIPS64 | 9 #if V8_TARGET_ARCH_MIPS64 |
10 | 10 |
(...skipping 505 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
516 return a0; | 516 return a0; |
517 } | 517 } |
518 | 518 |
519 | 519 |
520 const Register LoadIC::VectorRegister() { | 520 const Register LoadIC::VectorRegister() { |
521 ASSERT(FLAG_vector_ics); | 521 ASSERT(FLAG_vector_ics); |
522 return a3; | 522 return a3; |
523 } | 523 } |
524 | 524 |
525 | 525 |
526 const Register StoreIC::ReceiverRegister() { return a1; } | 526 const Register StoreIC::ReceiverRegister() { return a1; } |
527 const Register StoreIC::NameRegister() { return a2; } | 527 const Register StoreIC::NameRegister() { return a2; } |
528 const Register StoreIC::ValueRegister() { return a0; } | 528 const Register StoreIC::ValueRegister() { return a0; } |
529 | 529 |
530 | 530 |
531 const Register KeyedStoreIC::ReceiverRegister() { | |
532 return StoreIC::ReceiverRegister(); | |
533 } | |
534 | |
535 | |
536 const Register KeyedStoreIC::NameRegister() { | |
537 return StoreIC::NameRegister(); | |
538 } | |
539 | |
540 | |
541 const Register KeyedStoreIC::ValueRegister() { | |
542 return StoreIC::ValueRegister(); | |
543 } | |
544 | |
545 | |
546 const Register KeyedStoreIC::MapRegister() { | 531 const Register KeyedStoreIC::MapRegister() { |
547 return a3; | 532 return a3; |
548 } | 533 } |
549 | 534 |
550 | 535 |
551 void KeyedLoadIC::GenerateRuntimeGetProperty(MacroAssembler* masm) { | 536 void KeyedLoadIC::GenerateRuntimeGetProperty(MacroAssembler* masm) { |
552 // The return address is in ra. | 537 // The return address is in ra. |
553 | 538 |
554 __ Push(ReceiverRegister(), NameRegister()); | 539 __ Push(ReceiverRegister(), NameRegister()); |
555 | 540 |
(...skipping 716 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1272 } else { | 1257 } else { |
1273 ASSERT(Assembler::IsBne(branch_instr)); | 1258 ASSERT(Assembler::IsBne(branch_instr)); |
1274 patcher.ChangeBranchCondition(eq); | 1259 patcher.ChangeBranchCondition(eq); |
1275 } | 1260 } |
1276 } | 1261 } |
1277 | 1262 |
1278 | 1263 |
1279 } } // namespace v8::internal | 1264 } } // namespace v8::internal |
1280 | 1265 |
1281 #endif // V8_TARGET_ARCH_MIPS64 | 1266 #endif // V8_TARGET_ARCH_MIPS64 |
OLD | NEW |