| 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 | 57 |
| 58 const Register StringCompareDescriptor::LeftRegister() { return edx; } | 58 const Register StringCompareDescriptor::LeftRegister() { return edx; } |
| 59 const Register StringCompareDescriptor::RightRegister() { return eax; } | 59 const Register StringCompareDescriptor::RightRegister() { return eax; } |
| 60 | 60 |
| 61 | 61 |
| 62 const Register ArgumentsAccessNewDescriptor::function() { return edi; } | 62 const Register ArgumentsAccessNewDescriptor::function() { return edi; } |
| 63 const Register ArgumentsAccessNewDescriptor::parameter_count() { return ecx; } | 63 const Register ArgumentsAccessNewDescriptor::parameter_count() { return ecx; } |
| 64 const Register ArgumentsAccessNewDescriptor::parameter_pointer() { return edx; } | 64 const Register ArgumentsAccessNewDescriptor::parameter_pointer() { return edx; } |
| 65 | 65 |
| 66 | 66 |
| 67 const Register RestParamAccessDescriptor::parameter_count() { return ecx; } | |
| 68 const Register RestParamAccessDescriptor::parameter_pointer() { return edx; } | |
| 69 const Register RestParamAccessDescriptor::rest_parameter_index() { return ebx; } | |
| 70 | |
| 71 | |
| 72 const Register ApiGetterDescriptor::function_address() { return edx; } | 67 const Register ApiGetterDescriptor::function_address() { return edx; } |
| 73 | 68 |
| 74 | 69 |
| 75 const Register MathPowTaggedDescriptor::exponent() { return eax; } | 70 const Register MathPowTaggedDescriptor::exponent() { return eax; } |
| 76 | 71 |
| 77 | 72 |
| 78 const Register MathPowIntegerDescriptor::exponent() { | 73 const Register MathPowIntegerDescriptor::exponent() { |
| 79 return MathPowTaggedDescriptor::exponent(); | 74 return MathPowTaggedDescriptor::exponent(); |
| 80 } | 75 } |
| 81 | 76 |
| 82 | 77 |
| 83 const Register GrowArrayElementsDescriptor::ObjectRegister() { return eax; } | 78 const Register GrowArrayElementsDescriptor::ObjectRegister() { return eax; } |
| 84 const Register GrowArrayElementsDescriptor::KeyRegister() { return ebx; } | 79 const Register GrowArrayElementsDescriptor::KeyRegister() { return ebx; } |
| 85 | 80 |
| 86 | 81 |
| 87 void FastNewClosureDescriptor::InitializePlatformSpecific( | 82 void FastNewClosureDescriptor::InitializePlatformSpecific( |
| 88 CallInterfaceDescriptorData* data) { | 83 CallInterfaceDescriptorData* data) { |
| 89 Register registers[] = {ebx}; | 84 Register registers[] = {ebx}; |
| 90 data->InitializePlatformSpecific(arraysize(registers), registers, NULL); | 85 data->InitializePlatformSpecific(arraysize(registers), registers, NULL); |
| 91 } | 86 } |
| 92 | 87 |
| 93 | 88 |
| 94 void FastNewContextDescriptor::InitializePlatformSpecific( | 89 void FastNewContextDescriptor::InitializePlatformSpecific( |
| 95 CallInterfaceDescriptorData* data) { | 90 CallInterfaceDescriptorData* data) { |
| 96 Register registers[] = {edi}; | 91 Register registers[] = {edi}; |
| 97 data->InitializePlatformSpecific(arraysize(registers), registers, NULL); | 92 data->InitializePlatformSpecific(arraysize(registers), registers, NULL); |
| 98 } | 93 } |
| 99 | 94 |
| 95 void FastNewRestParameterDescriptor::InitializePlatformSpecific( |
| 96 CallInterfaceDescriptorData* data) { |
| 97 Register registers[] = {edi}; |
| 98 data->InitializePlatformSpecific(arraysize(registers), registers, NULL); |
| 99 } |
| 100 | 100 |
| 101 void ToNumberDescriptor::InitializePlatformSpecific( | 101 void ToNumberDescriptor::InitializePlatformSpecific( |
| 102 CallInterfaceDescriptorData* data) { | 102 CallInterfaceDescriptorData* data) { |
| 103 // ToNumberStub invokes a function, and therefore needs a context. | 103 // ToNumberStub invokes a function, and therefore needs a context. |
| 104 Register registers[] = {eax}; | 104 Register registers[] = {eax}; |
| 105 data->InitializePlatformSpecific(arraysize(registers), registers, NULL); | 105 data->InitializePlatformSpecific(arraysize(registers), registers, NULL); |
| 106 } | 106 } |
| 107 | 107 |
| 108 | 108 |
| 109 // static | 109 // static |
| (...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 443 ecx, // address of first argument (argv) | 443 ecx, // address of first argument (argv) |
| 444 ebx // the runtime function to call | 444 ebx // the runtime function to call |
| 445 }; | 445 }; |
| 446 data->InitializePlatformSpecific(arraysize(registers), registers); | 446 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 447 } | 447 } |
| 448 | 448 |
| 449 } // namespace internal | 449 } // namespace internal |
| 450 } // namespace v8 | 450 } // namespace v8 |
| 451 | 451 |
| 452 #endif // V8_TARGET_ARCH_X87 | 452 #endif // V8_TARGET_ARCH_X87 |
| OLD | NEW |