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 372 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
383 // kFunction, kActualArgumentsCount, kSlot, kVector | 383 // kFunction, kActualArgumentsCount, kSlot, kVector |
384 MachineType machine_types[] = { | 384 MachineType machine_types[] = { |
385 MachineType::TaggedPointer(), MachineType::Int32(), | 385 MachineType::TaggedPointer(), MachineType::Int32(), |
386 MachineType::TaggedSigned(), MachineType::AnyTagged()}; | 386 MachineType::TaggedSigned(), MachineType::AnyTagged()}; |
387 data->InitializePlatformIndependent(arraysize(machine_types), 0, | 387 data->InitializePlatformIndependent(arraysize(machine_types), 0, |
388 machine_types); | 388 machine_types); |
389 } | 389 } |
390 | 390 |
391 void BuiltinDescriptor::InitializePlatformIndependent( | 391 void BuiltinDescriptor::InitializePlatformIndependent( |
392 CallInterfaceDescriptorData* data) { | 392 CallInterfaceDescriptorData* data) { |
393 MachineType machine_types[] = { | 393 MachineType machine_types[] = {MachineType::AnyTagged(), |
394 MachineType::AnyTagged(), MachineType::AnyTagged(), MachineType::Int32()}; | 394 MachineType::AnyTagged(), |
| 395 MachineType::Pointer()}; |
395 data->InitializePlatformIndependent(arraysize(machine_types), 0, | 396 data->InitializePlatformIndependent(arraysize(machine_types), 0, |
396 machine_types); | 397 machine_types); |
397 } | 398 } |
398 | 399 |
399 void BuiltinDescriptor::InitializePlatformSpecific( | 400 void BuiltinDescriptor::InitializePlatformSpecific( |
400 CallInterfaceDescriptorData* data) { | 401 CallInterfaceDescriptorData* data) { |
401 Register registers[] = {TargetRegister(), NewTargetRegister(), | 402 Register registers[] = {TargetRegister(), NewTargetRegister(), |
402 ArgumentsCountRegister()}; | 403 ArgumentsCountRegister()}; |
403 data->InitializePlatformSpecific(arraysize(registers), registers); | 404 data->InitializePlatformSpecific(arraysize(registers), registers); |
404 } | 405 } |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
509 CallInterfaceDescriptorData* data) { | 510 CallInterfaceDescriptorData* data) { |
510 // kNumberOfArguments, kFirstArgument, kFunctionEntry | 511 // kNumberOfArguments, kFirstArgument, kFunctionEntry |
511 MachineType machine_types[] = {MachineType::Int32(), MachineType::Pointer(), | 512 MachineType machine_types[] = {MachineType::Int32(), MachineType::Pointer(), |
512 MachineType::Pointer()}; | 513 MachineType::Pointer()}; |
513 data->InitializePlatformIndependent(arraysize(machine_types), 0, | 514 data->InitializePlatformIndependent(arraysize(machine_types), 0, |
514 machine_types); | 515 machine_types); |
515 } | 516 } |
516 | 517 |
517 } // namespace internal | 518 } // namespace internal |
518 } // namespace v8 | 519 } // namespace v8 |
OLD | NEW |