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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 Register registers[] = {edi}; | 104 Register registers[] = {edi}; |
105 data->InitializePlatformSpecific(arraysize(registers), registers, NULL); | 105 data->InitializePlatformSpecific(arraysize(registers), registers, NULL); |
106 } | 106 } |
107 | 107 |
108 void FastNewStrictArgumentsDescriptor::InitializePlatformSpecific( | 108 void FastNewStrictArgumentsDescriptor::InitializePlatformSpecific( |
109 CallInterfaceDescriptorData* data) { | 109 CallInterfaceDescriptorData* data) { |
110 Register registers[] = {edi}; | 110 Register registers[] = {edi}; |
111 data->InitializePlatformSpecific(arraysize(registers), registers, NULL); | 111 data->InitializePlatformSpecific(arraysize(registers), registers, NULL); |
112 } | 112 } |
113 | 113 |
114 void ToNumberDescriptor::InitializePlatformSpecific( | |
115 CallInterfaceDescriptorData* data) { | |
116 // ToNumberStub invokes a function, and therefore needs a context. | |
117 Register registers[] = {eax}; | |
118 data->InitializePlatformSpecific(arraysize(registers), registers, NULL); | |
119 } | |
120 | |
121 | 114 |
122 // static | 115 // static |
123 const Register ToLengthDescriptor::ReceiverRegister() { return eax; } | 116 const Register TypeConversionDescriptor::ArgumentRegister() { return eax; } |
124 | |
125 | |
126 // static | |
127 const Register ToStringDescriptor::ReceiverRegister() { return eax; } | |
128 | |
129 | |
130 // static | |
131 const Register ToNameDescriptor::ReceiverRegister() { return eax; } | |
132 | |
133 | |
134 // static | |
135 const Register ToObjectDescriptor::ReceiverRegister() { return eax; } | |
136 | |
137 | |
138 void NumberToStringDescriptor::InitializePlatformSpecific( | |
139 CallInterfaceDescriptorData* data) { | |
140 Register registers[] = {eax}; | |
141 data->InitializePlatformSpecific(arraysize(registers), registers, NULL); | |
142 } | |
143 | |
144 | 117 |
145 void TypeofDescriptor::InitializePlatformSpecific( | 118 void TypeofDescriptor::InitializePlatformSpecific( |
146 CallInterfaceDescriptorData* data) { | 119 CallInterfaceDescriptorData* data) { |
147 Register registers[] = {ebx}; | 120 Register registers[] = {ebx}; |
148 data->InitializePlatformSpecific(arraysize(registers), registers, NULL); | 121 data->InitializePlatformSpecific(arraysize(registers), registers, NULL); |
149 } | 122 } |
150 | 123 |
151 | 124 |
152 void FastCloneRegExpDescriptor::InitializePlatformSpecific( | 125 void FastCloneRegExpDescriptor::InitializePlatformSpecific( |
153 CallInterfaceDescriptorData* data) { | 126 CallInterfaceDescriptorData* data) { |
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
314 } | 287 } |
315 | 288 |
316 | 289 |
317 void CompareDescriptor::InitializePlatformSpecific( | 290 void CompareDescriptor::InitializePlatformSpecific( |
318 CallInterfaceDescriptorData* data) { | 291 CallInterfaceDescriptorData* data) { |
319 Register registers[] = {edx, eax}; | 292 Register registers[] = {edx, eax}; |
320 data->InitializePlatformSpecific(arraysize(registers), registers, NULL); | 293 data->InitializePlatformSpecific(arraysize(registers), registers, NULL); |
321 } | 294 } |
322 | 295 |
323 | 296 |
324 void ToBooleanDescriptor::InitializePlatformSpecific( | |
325 CallInterfaceDescriptorData* data) { | |
326 Register registers[] = {eax}; | |
327 data->InitializePlatformSpecific(arraysize(registers), registers, NULL); | |
328 } | |
329 | |
330 | |
331 void BinaryOpDescriptor::InitializePlatformSpecific( | 297 void BinaryOpDescriptor::InitializePlatformSpecific( |
332 CallInterfaceDescriptorData* data) { | 298 CallInterfaceDescriptorData* data) { |
333 Register registers[] = {edx, eax}; | 299 Register registers[] = {edx, eax}; |
334 data->InitializePlatformSpecific(arraysize(registers), registers, NULL); | 300 data->InitializePlatformSpecific(arraysize(registers), registers, NULL); |
335 } | 301 } |
336 | 302 |
337 | 303 |
338 void BinaryOpWithAllocationSiteDescriptor::InitializePlatformSpecific( | 304 void BinaryOpWithAllocationSiteDescriptor::InitializePlatformSpecific( |
339 CallInterfaceDescriptorData* data) { | 305 CallInterfaceDescriptorData* data) { |
340 Register registers[] = {ecx, edx, eax}; | 306 Register registers[] = {ecx, edx, eax}; |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
434 ecx, // address of first argument (argv) | 400 ecx, // address of first argument (argv) |
435 ebx // the runtime function to call | 401 ebx // the runtime function to call |
436 }; | 402 }; |
437 data->InitializePlatformSpecific(arraysize(registers), registers); | 403 data->InitializePlatformSpecific(arraysize(registers), registers); |
438 } | 404 } |
439 | 405 |
440 } // namespace internal | 406 } // namespace internal |
441 } // namespace v8 | 407 } // namespace v8 |
442 | 408 |
443 #endif // V8_TARGET_ARCH_X87 | 409 #endif // V8_TARGET_ARCH_X87 |
OLD | NEW |