OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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_MIPS | 7 #if V8_TARGET_ARCH_MIPS |
8 | 8 |
9 #include "src/codegen.h" | 9 #include "src/codegen.h" |
10 #include "src/ic/ic-conventions.h" | 10 #include "src/ic/ic-conventions.h" |
11 | 11 |
12 namespace v8 { | 12 namespace v8 { |
13 namespace internal { | 13 namespace internal { |
14 | 14 |
15 // IC register specifications | 15 // IC register specifications |
16 const Register LoadConvention::ReceiverRegister() { return a1; } | 16 const Register LoadConvention::ReceiverRegister() { return a1; } |
17 const Register LoadConvention::NameRegister() { return a2; } | 17 const Register LoadConvention::NameRegister() { return a2; } |
18 | 18 |
19 | 19 |
20 const Register VectorLoadConvention::SlotRegister() { | 20 const Register VectorLoadConvention::SlotRegister() { return a0; } |
21 DCHECK(FLAG_vector_ics); | |
22 return a0; | |
23 } | |
24 | 21 |
25 | 22 |
26 const Register FullVectorLoadConvention::VectorRegister() { | 23 const Register FullVectorLoadConvention::VectorRegister() { return a3; } |
27 DCHECK(FLAG_vector_ics); | |
28 return a3; | |
29 } | |
30 | 24 |
31 | 25 |
32 const Register StoreConvention::ReceiverRegister() { return a1; } | 26 const Register StoreConvention::ReceiverRegister() { return a1; } |
33 const Register StoreConvention::NameRegister() { return a2; } | 27 const Register StoreConvention::NameRegister() { return a2; } |
34 const Register StoreConvention::ValueRegister() { return a0; } | 28 const Register StoreConvention::ValueRegister() { return a0; } |
35 const Register StoreConvention::MapRegister() { return a3; } | 29 const Register StoreConvention::MapRegister() { return a3; } |
| 30 |
| 31 |
| 32 const Register InstanceofConvention::left() { return a0; } |
| 33 const Register InstanceofConvention::right() { return a1; } |
36 } | 34 } |
37 } // namespace v8::internal | 35 } // namespace v8::internal |
38 | 36 |
39 #endif // V8_TARGET_ARCH_MIPS | 37 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |