Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(263)

Side by Side Diff: src/interface-descriptors.cc

Issue 2890023004: [turbofan] Avoid allocating rest parameters for spread calls. (Closed)
Patch Set: Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/interface-descriptors.h ('k') | src/mips/interface-descriptors-mips.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 429 matching lines...) Expand 10 before | Expand all | Expand 10 after
440 CallInterfaceDescriptorData* data) { 440 CallInterfaceDescriptorData* data) {
441 // kFunction, kActualArgumentsCount 441 // kFunction, kActualArgumentsCount
442 MachineType machine_types[] = {MachineType::AnyTagged(), 442 MachineType machine_types[] = {MachineType::AnyTagged(),
443 MachineType::Int32()}; 443 MachineType::Int32()};
444 data->InitializePlatformIndependent(arraysize(machine_types), 0, 444 data->InitializePlatformIndependent(arraysize(machine_types), 0,
445 machine_types); 445 machine_types);
446 } 446 }
447 447
448 void CallForwardVarargsDescriptor::InitializePlatformIndependent( 448 void CallForwardVarargsDescriptor::InitializePlatformIndependent(
449 CallInterfaceDescriptorData* data) { 449 CallInterfaceDescriptorData* data) {
450 // kTarget, kStartIndex 450 // kTarget, kActualArgumentsCount, kStartIndex
451 MachineType machine_types[] = {MachineType::AnyTagged(), 451 MachineType machine_types[] = {MachineType::AnyTagged(), MachineType::Int32(),
452 MachineType::Int32()}; 452 MachineType::Int32()};
453 data->InitializePlatformIndependent(arraysize(machine_types), 0, 453 data->InitializePlatformIndependent(arraysize(machine_types), 0,
454 machine_types); 454 machine_types);
455 }
456
457 void ConstructForwardVarargsDescriptor::InitializePlatformIndependent(
458 CallInterfaceDescriptorData* data) {
459 // kTarget, kNewTarget, kActualArgumentsCount, kStartIndex
460 MachineType machine_types[] = {MachineType::AnyTagged(),
461 MachineType::AnyTagged(), MachineType::Int32(),
462 MachineType::Int32()};
463 data->InitializePlatformIndependent(arraysize(machine_types), 0,
464 machine_types);
455 } 465 }
456 466
457 void ConstructStubDescriptor::InitializePlatformIndependent( 467 void ConstructStubDescriptor::InitializePlatformIndependent(
458 CallInterfaceDescriptorData* data) { 468 CallInterfaceDescriptorData* data) {
459 // kFunction, kNewTarget, kActualArgumentsCount, kAllocationSite 469 // kFunction, kNewTarget, kActualArgumentsCount, kAllocationSite
460 MachineType machine_types[] = {MachineType::AnyTagged(), 470 MachineType machine_types[] = {MachineType::AnyTagged(),
461 MachineType::AnyTagged(), MachineType::Int32(), 471 MachineType::AnyTagged(), MachineType::Int32(),
462 MachineType::AnyTagged()}; 472 MachineType::AnyTagged()};
463 data->InitializePlatformIndependent(arraysize(machine_types), 0, 473 data->InitializePlatformIndependent(arraysize(machine_types), 0,
464 machine_types); 474 machine_types);
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
631 void FrameDropperTrampolineDescriptor::InitializePlatformIndependent( 641 void FrameDropperTrampolineDescriptor::InitializePlatformIndependent(
632 CallInterfaceDescriptorData* data) { 642 CallInterfaceDescriptorData* data) {
633 // New FP value. 643 // New FP value.
634 MachineType machine_types[] = {MachineType::Pointer()}; 644 MachineType machine_types[] = {MachineType::Pointer()};
635 data->InitializePlatformIndependent(arraysize(machine_types), 0, 645 data->InitializePlatformIndependent(arraysize(machine_types), 0,
636 machine_types); 646 machine_types);
637 } 647 }
638 648
639 } // namespace internal 649 } // namespace internal
640 } // namespace v8 650 } // namespace v8
OLDNEW
« no previous file with comments | « src/interface-descriptors.h ('k') | src/mips/interface-descriptors-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698