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 #include "src/v8.h" | 5 #include "src/v8.h" |
6 | 6 |
7 #if V8_TARGET_ARCH_IA32 | 7 #if V8_TARGET_ARCH_IA32 |
8 | 8 |
9 #include "src/interface-descriptors.h" | 9 #include "src/interface-descriptors.h" |
10 | 10 |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 | 96 |
97 | 97 |
98 void ToNumberDescriptor::InitializePlatformSpecific( | 98 void ToNumberDescriptor::InitializePlatformSpecific( |
99 CallInterfaceDescriptorData* data) { | 99 CallInterfaceDescriptorData* data) { |
100 // ToNumberStub invokes a function, and therefore needs a context. | 100 // ToNumberStub invokes a function, and therefore needs a context. |
101 Register registers[] = {eax}; | 101 Register registers[] = {eax}; |
102 data->InitializePlatformSpecific(arraysize(registers), registers, NULL); | 102 data->InitializePlatformSpecific(arraysize(registers), registers, NULL); |
103 } | 103 } |
104 | 104 |
105 | 105 |
| 106 // static |
| 107 const Register ToObjectDescriptor::ReceiverRegister() { return eax; } |
| 108 |
| 109 |
106 void NumberToStringDescriptor::InitializePlatformSpecific( | 110 void NumberToStringDescriptor::InitializePlatformSpecific( |
107 CallInterfaceDescriptorData* data) { | 111 CallInterfaceDescriptorData* data) { |
108 Register registers[] = {eax}; | 112 Register registers[] = {eax}; |
109 data->InitializePlatformSpecific(arraysize(registers), registers, NULL); | 113 data->InitializePlatformSpecific(arraysize(registers), registers, NULL); |
110 } | 114 } |
111 | 115 |
112 | 116 |
113 void TypeofDescriptor::InitializePlatformSpecific( | 117 void TypeofDescriptor::InitializePlatformSpecific( |
114 CallInterfaceDescriptorData* data) { | 118 CallInterfaceDescriptorData* data) { |
115 Register registers[] = {ebx}; | 119 Register registers[] = {ebx}; |
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
366 edi, // math rounding function | 370 edi, // math rounding function |
367 edx, // vector slot id | 371 edx, // vector slot id |
368 ebx // type vector | 372 ebx // type vector |
369 }; | 373 }; |
370 data->InitializePlatformSpecific(arraysize(registers), registers); | 374 data->InitializePlatformSpecific(arraysize(registers), registers); |
371 } | 375 } |
372 } // namespace internal | 376 } // namespace internal |
373 } // namespace v8 | 377 } // namespace v8 |
374 | 378 |
375 #endif // V8_TARGET_ARCH_IA32 | 379 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |