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 14 matching lines...) Expand all Loading... |
25 const Register StoreDescriptor::NameRegister() { return ecx; } | 25 const Register StoreDescriptor::NameRegister() { return ecx; } |
26 const Register StoreDescriptor::ValueRegister() { return eax; } | 26 const Register StoreDescriptor::ValueRegister() { return eax; } |
27 | 27 |
28 | 28 |
29 const Register VectorStoreICTrampolineDescriptor::SlotRegister() { return edi; } | 29 const Register VectorStoreICTrampolineDescriptor::SlotRegister() { return edi; } |
30 | 30 |
31 | 31 |
32 const Register VectorStoreICDescriptor::VectorRegister() { return ebx; } | 32 const Register VectorStoreICDescriptor::VectorRegister() { return ebx; } |
33 | 33 |
34 | 34 |
35 const Register StoreTransitionDescriptor::MapRegister() { return ebx; } | 35 const Register StoreTransitionDescriptor::MapRegister() { |
| 36 return FLAG_vector_stores ? no_reg : ebx; |
| 37 } |
36 | 38 |
37 | 39 |
38 const Register LoadGlobalViaContextDescriptor::DepthRegister() { return edx; } | 40 const Register LoadGlobalViaContextDescriptor::DepthRegister() { return edx; } |
39 const Register LoadGlobalViaContextDescriptor::SlotRegister() { return ebx; } | 41 const Register LoadGlobalViaContextDescriptor::SlotRegister() { return ebx; } |
40 const Register LoadGlobalViaContextDescriptor::NameRegister() { return ecx; } | 42 const Register LoadGlobalViaContextDescriptor::NameRegister() { return ecx; } |
41 | 43 |
42 | 44 |
43 const Register StoreGlobalViaContextDescriptor::DepthRegister() { return edx; } | 45 const Register StoreGlobalViaContextDescriptor::DepthRegister() { return edx; } |
44 const Register StoreGlobalViaContextDescriptor::SlotRegister() { return ebx; } | 46 const Register StoreGlobalViaContextDescriptor::SlotRegister() { return ebx; } |
45 const Register StoreGlobalViaContextDescriptor::NameRegister() { return ecx; } | 47 const Register StoreGlobalViaContextDescriptor::NameRegister() { return ecx; } |
(...skipping 16 matching lines...) Expand all Loading... |
62 | 64 |
63 const Register MathPowIntegerDescriptor::exponent() { | 65 const Register MathPowIntegerDescriptor::exponent() { |
64 return MathPowTaggedDescriptor::exponent(); | 66 return MathPowTaggedDescriptor::exponent(); |
65 } | 67 } |
66 | 68 |
67 | 69 |
68 const Register GrowArrayElementsDescriptor::ObjectRegister() { return eax; } | 70 const Register GrowArrayElementsDescriptor::ObjectRegister() { return eax; } |
69 const Register GrowArrayElementsDescriptor::KeyRegister() { return ebx; } | 71 const Register GrowArrayElementsDescriptor::KeyRegister() { return ebx; } |
70 | 72 |
71 | 73 |
| 74 void StoreTransitionDescriptor::InitializePlatformSpecific( |
| 75 CallInterfaceDescriptorData* data) { |
| 76 Register registers[] = {ReceiverRegister(), NameRegister(), ValueRegister(), |
| 77 MapRegister()}; |
| 78 |
| 79 // When FLAG_vector_stores is true, we want to pass the map register on the |
| 80 // stack instead of in a register. |
| 81 DCHECK(FLAG_vector_stores || !MapRegister().is(no_reg)); |
| 82 |
| 83 int register_count = FLAG_vector_stores ? 3 : 4; |
| 84 data->InitializePlatformSpecific(register_count, registers); |
| 85 } |
| 86 |
| 87 |
72 void FastNewClosureDescriptor::InitializePlatformSpecific( | 88 void FastNewClosureDescriptor::InitializePlatformSpecific( |
73 CallInterfaceDescriptorData* data) { | 89 CallInterfaceDescriptorData* data) { |
74 Register registers[] = {ebx}; | 90 Register registers[] = {ebx}; |
75 data->InitializePlatformSpecific(arraysize(registers), registers, NULL); | 91 data->InitializePlatformSpecific(arraysize(registers), registers, NULL); |
76 } | 92 } |
77 | 93 |
78 | 94 |
79 void FastNewContextDescriptor::InitializePlatformSpecific( | 95 void FastNewContextDescriptor::InitializePlatformSpecific( |
80 CallInterfaceDescriptorData* data) { | 96 CallInterfaceDescriptorData* data) { |
81 Register registers[] = {edi}; | 97 Register registers[] = {edi}; |
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
354 edi, // math rounding function | 370 edi, // math rounding function |
355 edx, // vector slot id | 371 edx, // vector slot id |
356 ebx // type vector | 372 ebx // type vector |
357 }; | 373 }; |
358 data->InitializePlatformSpecific(arraysize(registers), registers); | 374 data->InitializePlatformSpecific(arraysize(registers), registers); |
359 } | 375 } |
360 } // namespace internal | 376 } // namespace internal |
361 } // namespace v8 | 377 } // namespace v8 |
362 | 378 |
363 #endif // V8_TARGET_ARCH_IA32 | 379 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |