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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 | 101 |
102 void ToNumberDescriptor::InitializePlatformSpecific( | 102 void ToNumberDescriptor::InitializePlatformSpecific( |
103 CallInterfaceDescriptorData* data) { | 103 CallInterfaceDescriptorData* data) { |
104 // ToNumberStub invokes a function, and therefore needs a context. | 104 // ToNumberStub invokes a function, and therefore needs a context. |
105 Register registers[] = {rax}; | 105 Register registers[] = {rax}; |
106 data->InitializePlatformSpecific(arraysize(registers), registers); | 106 data->InitializePlatformSpecific(arraysize(registers), registers); |
107 } | 107 } |
108 | 108 |
109 | 109 |
110 // static | 110 // static |
| 111 const Register ToLengthDescriptor::ReceiverRegister() { return rax; } |
| 112 |
| 113 |
| 114 // static |
111 const Register ToStringDescriptor::ReceiverRegister() { return rax; } | 115 const Register ToStringDescriptor::ReceiverRegister() { return rax; } |
112 | 116 |
113 | 117 |
114 // static | 118 // static |
115 const Register ToObjectDescriptor::ReceiverRegister() { return rax; } | 119 const Register ToObjectDescriptor::ReceiverRegister() { return rax; } |
116 | 120 |
117 | 121 |
118 void NumberToStringDescriptor::InitializePlatformSpecific( | 122 void NumberToStringDescriptor::InitializePlatformSpecific( |
119 CallInterfaceDescriptorData* data) { | 123 CallInterfaceDescriptorData* data) { |
120 Register registers[] = {rax}; | 124 Register registers[] = {rax}; |
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
421 r15, // address of first argument (argv) | 425 r15, // address of first argument (argv) |
422 rbx // the runtime function to call | 426 rbx // the runtime function to call |
423 }; | 427 }; |
424 data->InitializePlatformSpecific(arraysize(registers), registers); | 428 data->InitializePlatformSpecific(arraysize(registers), registers); |
425 } | 429 } |
426 | 430 |
427 } // namespace internal | 431 } // namespace internal |
428 } // namespace v8 | 432 } // namespace v8 |
429 | 433 |
430 #endif // V8_TARGET_ARCH_X64 | 434 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |