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

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

Issue 2645743002: [builtins] Port parameter and argument-related code stubs to CSA (Closed)
Patch Set: Review feedback Created 3 years, 10 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/interpreter/interpreter.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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 } 81 }
82 82
83 const Register FastNewObjectDescriptor::TargetRegister() { 83 const Register FastNewObjectDescriptor::TargetRegister() {
84 return kJSFunctionRegister; 84 return kJSFunctionRegister;
85 } 85 }
86 86
87 const Register FastNewObjectDescriptor::NewTargetRegister() { 87 const Register FastNewObjectDescriptor::NewTargetRegister() {
88 return kJavaScriptCallNewTargetRegister; 88 return kJavaScriptCallNewTargetRegister;
89 } 89 }
90 90
91 void FastNewArgumentsDescriptor::InitializePlatformSpecific(
92 CallInterfaceDescriptorData* data) {
93 Register registers[] = {TargetRegister()};
94 data->InitializePlatformSpecific(arraysize(registers), registers);
95 }
96
97 const Register FastNewArgumentsDescriptor::TargetRegister() {
98 return kJSFunctionRegister;
99 }
100
91 void LoadDescriptor::InitializePlatformIndependent( 101 void LoadDescriptor::InitializePlatformIndependent(
92 CallInterfaceDescriptorData* data) { 102 CallInterfaceDescriptorData* data) {
93 // kReceiver, kName, kSlot 103 // kReceiver, kName, kSlot
94 MachineType machine_types[] = {MachineType::AnyTagged(), 104 MachineType machine_types[] = {MachineType::AnyTagged(),
95 MachineType::AnyTagged(), 105 MachineType::AnyTagged(),
96 MachineType::TaggedSigned()}; 106 MachineType::TaggedSigned()};
97 data->InitializePlatformIndependent(arraysize(machine_types), 0, 107 data->InitializePlatformIndependent(arraysize(machine_types), 0,
98 machine_types); 108 machine_types);
99 } 109 }
100 110
(...skipping 518 matching lines...) Expand 10 before | Expand all | Expand 10 after
619 void FrameDropperTrampolineDescriptor::InitializePlatformIndependent( 629 void FrameDropperTrampolineDescriptor::InitializePlatformIndependent(
620 CallInterfaceDescriptorData* data) { 630 CallInterfaceDescriptorData* data) {
621 // New FP value. 631 // New FP value.
622 MachineType machine_types[] = {MachineType::Pointer()}; 632 MachineType machine_types[] = {MachineType::Pointer()};
623 data->InitializePlatformIndependent(arraysize(machine_types), 0, 633 data->InitializePlatformIndependent(arraysize(machine_types), 0,
624 machine_types); 634 machine_types);
625 } 635 }
626 636
627 } // namespace internal 637 } // namespace internal
628 } // namespace v8 638 } // namespace v8
OLDNEW
« no previous file with comments | « src/interface-descriptors.h ('k') | src/interpreter/interpreter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698