| 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 12 matching lines...) Expand all Loading... |
| 23 const Register StoreDescriptor::NameRegister() { return ecx; } | 23 const Register StoreDescriptor::NameRegister() { return ecx; } |
| 24 const Register StoreDescriptor::ValueRegister() { return eax; } | 24 const Register StoreDescriptor::ValueRegister() { return eax; } |
| 25 | 25 |
| 26 | 26 |
| 27 const Register VectorStoreICTrampolineDescriptor::SlotRegister() { return edi; } | 27 const Register VectorStoreICTrampolineDescriptor::SlotRegister() { return edi; } |
| 28 | 28 |
| 29 | 29 |
| 30 const Register VectorStoreICDescriptor::VectorRegister() { return ebx; } | 30 const Register VectorStoreICDescriptor::VectorRegister() { return ebx; } |
| 31 | 31 |
| 32 | 32 |
| 33 const Register StoreTransitionDescriptor::MapRegister() { | 33 const Register VectorStoreTransitionDescriptor::SlotRegister() { |
| 34 return FLAG_vector_stores ? no_reg : ebx; | 34 return no_reg; |
| 35 } | 35 } |
| 36 | 36 |
| 37 | 37 |
| 38 const Register VectorStoreTransitionDescriptor::VectorRegister() { |
| 39 return no_reg; |
| 40 } |
| 41 |
| 42 |
| 43 const Register VectorStoreTransitionDescriptor::MapRegister() { return no_reg; } |
| 44 |
| 45 |
| 46 const Register StoreTransitionDescriptor::MapRegister() { return ebx; } |
| 47 |
| 48 |
| 38 const Register LoadGlobalViaContextDescriptor::SlotRegister() { return ebx; } | 49 const Register LoadGlobalViaContextDescriptor::SlotRegister() { return ebx; } |
| 39 | 50 |
| 40 | 51 |
| 41 const Register StoreGlobalViaContextDescriptor::SlotRegister() { return ebx; } | 52 const Register StoreGlobalViaContextDescriptor::SlotRegister() { return ebx; } |
| 42 const Register StoreGlobalViaContextDescriptor::ValueRegister() { return eax; } | 53 const Register StoreGlobalViaContextDescriptor::ValueRegister() { return eax; } |
| 43 | 54 |
| 44 | 55 |
| 45 const Register InstanceofDescriptor::left() { return eax; } | 56 const Register InstanceofDescriptor::left() { return eax; } |
| 46 const Register InstanceofDescriptor::right() { return edx; } | 57 const Register InstanceofDescriptor::right() { return edx; } |
| 47 | 58 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 58 | 69 |
| 59 const Register MathPowIntegerDescriptor::exponent() { | 70 const Register MathPowIntegerDescriptor::exponent() { |
| 60 return MathPowTaggedDescriptor::exponent(); | 71 return MathPowTaggedDescriptor::exponent(); |
| 61 } | 72 } |
| 62 | 73 |
| 63 | 74 |
| 64 const Register GrowArrayElementsDescriptor::ObjectRegister() { return eax; } | 75 const Register GrowArrayElementsDescriptor::ObjectRegister() { return eax; } |
| 65 const Register GrowArrayElementsDescriptor::KeyRegister() { return ebx; } | 76 const Register GrowArrayElementsDescriptor::KeyRegister() { return ebx; } |
| 66 | 77 |
| 67 | 78 |
| 68 void StoreTransitionDescriptor::InitializePlatformSpecific( | 79 void VectorStoreTransitionDescriptor::InitializePlatformSpecific( |
| 69 CallInterfaceDescriptorData* data) { | 80 CallInterfaceDescriptorData* data) { |
| 70 Register registers[] = {ReceiverRegister(), NameRegister(), ValueRegister(), | 81 Register registers[] = {ReceiverRegister(), NameRegister(), ValueRegister()}; |
| 71 MapRegister()}; | 82 // The other three parameters are on the stack in ia32. |
| 72 | 83 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 73 // When FLAG_vector_stores is true, we want to pass the map register on the | |
| 74 // stack instead of in a register. | |
| 75 DCHECK(FLAG_vector_stores || !MapRegister().is(no_reg)); | |
| 76 | |
| 77 int register_count = FLAG_vector_stores ? 3 : 4; | |
| 78 data->InitializePlatformSpecific(register_count, registers); | |
| 79 } | 84 } |
| 80 | 85 |
| 81 | 86 |
| 82 void FastNewClosureDescriptor::InitializePlatformSpecific( | 87 void FastNewClosureDescriptor::InitializePlatformSpecific( |
| 83 CallInterfaceDescriptorData* data) { | 88 CallInterfaceDescriptorData* data) { |
| 84 Register registers[] = {ebx}; | 89 Register registers[] = {ebx}; |
| 85 data->InitializePlatformSpecific(arraysize(registers), registers, NULL); | 90 data->InitializePlatformSpecific(arraysize(registers), registers, NULL); |
| 86 } | 91 } |
| 87 | 92 |
| 88 | 93 |
| (...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 368 edi, // math rounding function | 373 edi, // math rounding function |
| 369 edx, // vector slot id | 374 edx, // vector slot id |
| 370 ebx // type vector | 375 ebx // type vector |
| 371 }; | 376 }; |
| 372 data->InitializePlatformSpecific(arraysize(registers), registers); | 377 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 373 } | 378 } |
| 374 } // namespace internal | 379 } // namespace internal |
| 375 } // namespace v8 | 380 } // namespace v8 |
| 376 | 381 |
| 377 #endif // V8_TARGET_ARCH_X87 | 382 #endif // V8_TARGET_ARCH_X87 |
| OLD | NEW |