| 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 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 210 | 210 |
| 211 void CallTrampolineDescriptor::InitializePlatformSpecific( | 211 void CallTrampolineDescriptor::InitializePlatformSpecific( |
| 212 CallInterfaceDescriptorData* data) { | 212 CallInterfaceDescriptorData* data) { |
| 213 // eax : number of arguments | 213 // eax : number of arguments |
| 214 // edi : the target to call | 214 // edi : the target to call |
| 215 Register registers[] = {edi, eax}; | 215 Register registers[] = {edi, eax}; |
| 216 data->InitializePlatformSpecific(arraysize(registers), registers); | 216 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 217 } | 217 } |
| 218 | 218 |
| 219 | 219 |
| 220 void ConstructStubDescriptor::InitializePlatformSpecific( |
| 221 CallInterfaceDescriptorData* data) { |
| 222 // eax : number of arguments |
| 223 // edx : the new target |
| 224 // edi : the target to call |
| 225 // ebx : allocation site or undefined |
| 226 Register registers[] = {edi, edx, eax, ebx}; |
| 227 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 228 } |
| 229 |
| 230 |
| 220 void ConstructTrampolineDescriptor::InitializePlatformSpecific( | 231 void ConstructTrampolineDescriptor::InitializePlatformSpecific( |
| 221 CallInterfaceDescriptorData* data) { | 232 CallInterfaceDescriptorData* data) { |
| 222 // eax : number of arguments | 233 // eax : number of arguments |
| 223 // edx : the new target | 234 // edx : the new target |
| 224 // edi : the target to call | 235 // edi : the target to call |
| 225 Register registers[] = {edi, edx, eax}; | 236 Register registers[] = {edi, edx, eax}; |
| 226 data->InitializePlatformSpecific(arraysize(registers), registers); | 237 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 227 } | 238 } |
| 228 | 239 |
| 229 | 240 |
| (...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 428 ecx, // address of first argument (argv) | 439 ecx, // address of first argument (argv) |
| 429 ebx // the runtime function to call | 440 ebx // the runtime function to call |
| 430 }; | 441 }; |
| 431 data->InitializePlatformSpecific(arraysize(registers), registers); | 442 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 432 } | 443 } |
| 433 | 444 |
| 434 } // namespace internal | 445 } // namespace internal |
| 435 } // namespace v8 | 446 } // namespace v8 |
| 436 | 447 |
| 437 #endif // V8_TARGET_ARCH_X87 | 448 #endif // V8_TARGET_ARCH_X87 |
| OLD | NEW |