| 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 #if V8_TARGET_ARCH_X64 | 5 #if V8_TARGET_ARCH_X64 |
| 6 | 6 |
| 7 #include "src/interface-descriptors.h" | 7 #include "src/interface-descriptors.h" |
| 8 | 8 |
| 9 namespace v8 { | 9 namespace v8 { |
| 10 namespace internal { | 10 namespace internal { |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 | 114 |
| 115 // static | 115 // static |
| 116 const Register ToLengthDescriptor::ReceiverRegister() { return rax; } | 116 const Register ToLengthDescriptor::ReceiverRegister() { return rax; } |
| 117 | 117 |
| 118 | 118 |
| 119 // static | 119 // static |
| 120 const Register ToStringDescriptor::ReceiverRegister() { return rax; } | 120 const Register ToStringDescriptor::ReceiverRegister() { return rax; } |
| 121 | 121 |
| 122 | 122 |
| 123 // static | 123 // static |
| 124 const Register ToNameDescriptor::ReceiverRegister() { return rax; } |
| 125 |
| 126 |
| 127 // static |
| 124 const Register ToObjectDescriptor::ReceiverRegister() { return rax; } | 128 const Register ToObjectDescriptor::ReceiverRegister() { return rax; } |
| 125 | 129 |
| 126 | 130 |
| 127 void NumberToStringDescriptor::InitializePlatformSpecific( | 131 void NumberToStringDescriptor::InitializePlatformSpecific( |
| 128 CallInterfaceDescriptorData* data) { | 132 CallInterfaceDescriptorData* data) { |
| 129 Register registers[] = {rax}; | 133 Register registers[] = {rax}; |
| 130 data->InitializePlatformSpecific(arraysize(registers), registers); | 134 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 131 } | 135 } |
| 132 | 136 |
| 133 | 137 |
| (...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 430 r15, // address of first argument (argv) | 434 r15, // address of first argument (argv) |
| 431 rbx // the runtime function to call | 435 rbx // the runtime function to call |
| 432 }; | 436 }; |
| 433 data->InitializePlatformSpecific(arraysize(registers), registers); | 437 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 434 } | 438 } |
| 435 | 439 |
| 436 } // namespace internal | 440 } // namespace internal |
| 437 } // namespace v8 | 441 } // namespace v8 |
| 438 | 442 |
| 439 #endif // V8_TARGET_ARCH_X64 | 443 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |