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

Side by Side Diff: src/mips64/interface-descriptors-mips64.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/mips/interface-descriptors-mips.cc ('k') | src/x64/interface-descriptors-x64.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 #if V8_TARGET_ARCH_MIPS64 5 #if V8_TARGET_ARCH_MIPS64
6 6
7 #include "src/interface-descriptors.h" 7 #include "src/interface-descriptors.h"
8 8
9 namespace v8 { 9 namespace v8 {
10 namespace internal { 10 namespace internal {
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 CallInterfaceDescriptorData* data) { 149 CallInterfaceDescriptorData* data) {
150 // a1: target 150 // a1: target
151 // a0: number of arguments 151 // a0: number of arguments
152 Register registers[] = {a1, a0}; 152 Register registers[] = {a1, a0};
153 data->InitializePlatformSpecific(arraysize(registers), registers); 153 data->InitializePlatformSpecific(arraysize(registers), registers);
154 } 154 }
155 155
156 void CallForwardVarargsDescriptor::InitializePlatformSpecific( 156 void CallForwardVarargsDescriptor::InitializePlatformSpecific(
157 CallInterfaceDescriptorData* data) { 157 CallInterfaceDescriptorData* data) {
158 // a1: the target to call 158 // a1: the target to call
159 // a0: number of arguments
159 // a2: start index (to support rest parameters) 160 // a2: start index (to support rest parameters)
160 Register registers[] = {a1, a2}; 161 Register registers[] = {a1, a0, a2};
161 data->InitializePlatformSpecific(arraysize(registers), registers); 162 data->InitializePlatformSpecific(arraysize(registers), registers);
162 } 163 }
163 164
165 void ConstructForwardVarargsDescriptor::InitializePlatformSpecific(
166 CallInterfaceDescriptorData* data) {
167 // a1: the target to call
168 // a3: new target
169 // a0: number of arguments
170 // a2: start index (to support rest parameters)
171 Register registers[] = {a1, a3, a0, a2};
172 data->InitializePlatformSpecific(arraysize(registers), registers);
173 }
174
164 void ConstructStubDescriptor::InitializePlatformSpecific( 175 void ConstructStubDescriptor::InitializePlatformSpecific(
165 CallInterfaceDescriptorData* data) { 176 CallInterfaceDescriptorData* data) {
166 // a1: target 177 // a1: target
167 // a3: new target 178 // a3: new target
168 // a0: number of arguments 179 // a0: number of arguments
169 // a2: allocation site or undefined 180 // a2: allocation site or undefined
170 Register registers[] = {a1, a3, a0, a2}; 181 Register registers[] = {a1, a3, a0, a2};
171 data->InitializePlatformSpecific(arraysize(registers), registers); 182 data->InitializePlatformSpecific(arraysize(registers), registers);
172 } 183 }
173 184
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
367 Register registers[] = { 378 Register registers[] = {
368 a1, // loaded new FP 379 a1, // loaded new FP
369 }; 380 };
370 data->InitializePlatformSpecific(arraysize(registers), registers); 381 data->InitializePlatformSpecific(arraysize(registers), registers);
371 } 382 }
372 383
373 } // namespace internal 384 } // namespace internal
374 } // namespace v8 385 } // namespace v8
375 386
376 #endif // V8_TARGET_ARCH_MIPS64 387 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « src/mips/interface-descriptors-mips.cc ('k') | src/x64/interface-descriptors-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698