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 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
203 | 203 |
204 void CallTrampolineDescriptor::InitializePlatformSpecific( | 204 void CallTrampolineDescriptor::InitializePlatformSpecific( |
205 CallInterfaceDescriptorData* data) { | 205 CallInterfaceDescriptorData* data) { |
206 // eax : number of arguments | 206 // eax : number of arguments |
207 // edi : the target to call | 207 // edi : the target to call |
208 Register registers[] = {edi, eax}; | 208 Register registers[] = {edi, eax}; |
209 data->InitializePlatformSpecific(arraysize(registers), registers); | 209 data->InitializePlatformSpecific(arraysize(registers), registers); |
210 } | 210 } |
211 | 211 |
212 | 212 |
| 213 void ConstructTrampolineDescriptor::InitializePlatformSpecific( |
| 214 CallInterfaceDescriptorData* data) { |
| 215 // eax : number of arguments |
| 216 // edx : the new target |
| 217 // edi : the target to call |
| 218 Register registers[] = {edi, edx, eax}; |
| 219 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 220 } |
| 221 |
| 222 |
213 void RegExpConstructResultDescriptor::InitializePlatformSpecific( | 223 void RegExpConstructResultDescriptor::InitializePlatformSpecific( |
214 CallInterfaceDescriptorData* data) { | 224 CallInterfaceDescriptorData* data) { |
215 Register registers[] = {ecx, ebx, eax}; | 225 Register registers[] = {ecx, ebx, eax}; |
216 data->InitializePlatformSpecific(arraysize(registers), registers, NULL); | 226 data->InitializePlatformSpecific(arraysize(registers), registers, NULL); |
217 } | 227 } |
218 | 228 |
219 | 229 |
220 void TransitionElementsKindDescriptor::InitializePlatformSpecific( | 230 void TransitionElementsKindDescriptor::InitializePlatformSpecific( |
221 CallInterfaceDescriptorData* data) { | 231 CallInterfaceDescriptorData* data) { |
222 Register registers[] = {eax, ebx}; | 232 Register registers[] = {eax, ebx}; |
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
432 ecx, // address of first argument (argv) | 442 ecx, // address of first argument (argv) |
433 ebx // the runtime function to call | 443 ebx // the runtime function to call |
434 }; | 444 }; |
435 data->InitializePlatformSpecific(arraysize(registers), registers); | 445 data->InitializePlatformSpecific(arraysize(registers), registers); |
436 } | 446 } |
437 | 447 |
438 } // namespace internal | 448 } // namespace internal |
439 } // namespace v8 | 449 } // namespace v8 |
440 | 450 |
441 #endif // V8_TARGET_ARCH_X87 | 451 #endif // V8_TARGET_ARCH_X87 |
OLD | NEW |