| OLD | NEW | 
|---|
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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_ARM64 | 7 #if V8_TARGET_ARCH_ARM64 | 
| 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 x1; } | 16 const Register LoadConvention::ReceiverRegister() { return x1; } | 
| 17 const Register LoadConvention::NameRegister() { return x2; } | 17 const Register LoadConvention::NameRegister() { return x2; } | 
| 18 | 18 | 
| 19 const Register VectorLoadConvention::SlotRegister() { | 19 | 
| 20   DCHECK(FLAG_vector_ics); | 20 const Register VectorLoadConvention::SlotRegister() { return x0; } | 
| 21   return x0; |  | 
| 22 } |  | 
| 23 | 21 | 
| 24 | 22 | 
| 25 const Register FullVectorLoadConvention::VectorRegister() { | 23 const Register FullVectorLoadConvention::VectorRegister() { return x3; } | 
| 26   DCHECK(FLAG_vector_ics); |  | 
| 27   return x3; |  | 
| 28 } |  | 
| 29 | 24 | 
| 30 | 25 | 
| 31 const Register StoreConvention::ReceiverRegister() { return x1; } | 26 const Register StoreConvention::ReceiverRegister() { return x1; } | 
| 32 const Register StoreConvention::NameRegister() { return x2; } | 27 const Register StoreConvention::NameRegister() { return x2; } | 
| 33 const Register StoreConvention::ValueRegister() { return x0; } | 28 const Register StoreConvention::ValueRegister() { return x0; } | 
| 34 | 29 | 
| 35 | 30 | 
| 36 const Register StoreConvention::MapRegister() { return x3; } | 31 const Register StoreConvention::MapRegister() { return x3; } | 
|  | 32 | 
|  | 33 | 
|  | 34 const Register InstanceofConvention::left() { | 
|  | 35   // Object to check (instanceof lhs). | 
|  | 36   return x11; | 
|  | 37 } | 
|  | 38 | 
|  | 39 | 
|  | 40 const Register InstanceofConvention::right() { | 
|  | 41   // Constructor function (instanceof rhs). | 
|  | 42   return x10; | 
|  | 43 } | 
| 37 } | 44 } | 
| 38 }  // namespace v8::internal | 45 }  // namespace v8::internal | 
| 39 | 46 | 
| 40 #endif  // V8_TARGET_ARCH_ARM64 | 47 #endif  // V8_TARGET_ARCH_ARM64 | 
| OLD | NEW | 
|---|