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