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_X87 | 5 #if V8_TARGET_ARCH_X87 |
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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 | 99 |
100 void ToNumberDescriptor::InitializePlatformSpecific( | 100 void ToNumberDescriptor::InitializePlatformSpecific( |
101 CallInterfaceDescriptorData* data) { | 101 CallInterfaceDescriptorData* data) { |
102 // ToNumberStub invokes a function, and therefore needs a context. | 102 // ToNumberStub invokes a function, and therefore needs a context. |
103 Register registers[] = {eax}; | 103 Register registers[] = {eax}; |
104 data->InitializePlatformSpecific(arraysize(registers), registers, NULL); | 104 data->InitializePlatformSpecific(arraysize(registers), registers, NULL); |
105 } | 105 } |
106 | 106 |
107 | 107 |
108 // static | 108 // static |
| 109 const Register ToLengthDescriptor::ReceiverRegister() { return eax; } |
| 110 |
| 111 |
| 112 // static |
109 const Register ToStringDescriptor::ReceiverRegister() { return eax; } | 113 const Register ToStringDescriptor::ReceiverRegister() { return eax; } |
110 | 114 |
111 | 115 |
112 // static | 116 // static |
113 const Register ToObjectDescriptor::ReceiverRegister() { return eax; } | 117 const Register ToObjectDescriptor::ReceiverRegister() { return eax; } |
114 | 118 |
115 | 119 |
116 void NumberToStringDescriptor::InitializePlatformSpecific( | 120 void NumberToStringDescriptor::InitializePlatformSpecific( |
117 CallInterfaceDescriptorData* data) { | 121 CallInterfaceDescriptorData* data) { |
118 Register registers[] = {eax}; | 122 Register registers[] = {eax}; |
(...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
415 ecx, // address of first argument (argv) | 419 ecx, // address of first argument (argv) |
416 ebx // the runtime function to call | 420 ebx // the runtime function to call |
417 }; | 421 }; |
418 data->InitializePlatformSpecific(arraysize(registers), registers); | 422 data->InitializePlatformSpecific(arraysize(registers), registers); |
419 } | 423 } |
420 | 424 |
421 } // namespace internal | 425 } // namespace internal |
422 } // namespace v8 | 426 } // namespace v8 |
423 | 427 |
424 #endif // V8_TARGET_ARCH_X87 | 428 #endif // V8_TARGET_ARCH_X87 |
OLD | NEW |