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/interface-descriptors.h" | 5 #include "src/interface-descriptors.h" |
6 | 6 |
7 namespace v8 { | 7 namespace v8 { |
8 namespace internal { | 8 namespace internal { |
9 | 9 |
10 | 10 |
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
176 CallInterfaceDescriptorData* data) { | 176 CallInterfaceDescriptorData* data) { |
177 Register registers[] = { | 177 Register registers[] = { |
178 ReceiverRegister(), FieldOffsetRegister(), MapRegister(), | 178 ReceiverRegister(), FieldOffsetRegister(), MapRegister(), |
179 ValueRegister(), SlotRegister(), VectorRegister(), | 179 ValueRegister(), SlotRegister(), VectorRegister(), |
180 NameRegister(), | 180 NameRegister(), |
181 }; | 181 }; |
182 int len = arraysize(registers) - kStackArgumentsCount; | 182 int len = arraysize(registers) - kStackArgumentsCount; |
183 data->InitializePlatformSpecific(len, registers); | 183 data->InitializePlatformSpecific(len, registers); |
184 } | 184 } |
185 | 185 |
186 void StoreGlobalViaContextDescriptor::InitializePlatformIndependent( | |
187 CallInterfaceDescriptorData* data) { | |
188 // kSlot, kValue | |
189 MachineType machine_types[] = {MachineType::Int32(), | |
190 MachineType::AnyTagged()}; | |
191 data->InitializePlatformIndependent(arraysize(machine_types), 0, | |
192 machine_types); | |
193 } | |
194 | |
195 void StoreGlobalViaContextDescriptor::InitializePlatformSpecific( | |
196 CallInterfaceDescriptorData* data) { | |
197 Register registers[] = {SlotRegister(), ValueRegister()}; | |
198 data->InitializePlatformSpecific(arraysize(registers), registers); | |
199 } | |
200 | |
201 | |
202 void StringCompareDescriptor::InitializePlatformSpecific( | 186 void StringCompareDescriptor::InitializePlatformSpecific( |
203 CallInterfaceDescriptorData* data) { | 187 CallInterfaceDescriptorData* data) { |
204 Register registers[] = {LeftRegister(), RightRegister()}; | 188 Register registers[] = {LeftRegister(), RightRegister()}; |
205 data->InitializePlatformSpecific(arraysize(registers), registers); | 189 data->InitializePlatformSpecific(arraysize(registers), registers); |
206 } | 190 } |
207 | 191 |
208 void TypeConversionDescriptor::InitializePlatformSpecific( | 192 void TypeConversionDescriptor::InitializePlatformSpecific( |
209 CallInterfaceDescriptorData* data) { | 193 CallInterfaceDescriptorData* data) { |
210 Register registers[] = {ArgumentRegister()}; | 194 Register registers[] = {ArgumentRegister()}; |
211 data->InitializePlatformSpecific(arraysize(registers), registers); | 195 data->InitializePlatformSpecific(arraysize(registers), registers); |
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
481 CallInterfaceDescriptorData* data) { | 465 CallInterfaceDescriptorData* data) { |
482 // kNumberOfArguments, kFirstArgument, kFunctionEntry | 466 // kNumberOfArguments, kFirstArgument, kFunctionEntry |
483 MachineType machine_types[] = {MachineType::Int32(), MachineType::Pointer(), | 467 MachineType machine_types[] = {MachineType::Int32(), MachineType::Pointer(), |
484 MachineType::Pointer()}; | 468 MachineType::Pointer()}; |
485 data->InitializePlatformIndependent(arraysize(machine_types), 0, | 469 data->InitializePlatformIndependent(arraysize(machine_types), 0, |
486 machine_types); | 470 machine_types); |
487 } | 471 } |
488 | 472 |
489 } // namespace internal | 473 } // namespace internal |
490 } // namespace v8 | 474 } // namespace v8 |
OLD | NEW |