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

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

Issue 2655233002: [turbofan] Introduce JSCallForwardVarargs operator. (Closed)
Patch Set: Fix formatting. 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/mips/interface-descriptors-mips.cc ('k') | src/runtime/runtime-compiler.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 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 170
171 171
172 void CallTrampolineDescriptor::InitializePlatformSpecific( 172 void CallTrampolineDescriptor::InitializePlatformSpecific(
173 CallInterfaceDescriptorData* data) { 173 CallInterfaceDescriptorData* data) {
174 // a1: target 174 // a1: target
175 // a0: number of arguments 175 // a0: number of arguments
176 Register registers[] = {a1, a0}; 176 Register registers[] = {a1, a0};
177 data->InitializePlatformSpecific(arraysize(registers), registers); 177 data->InitializePlatformSpecific(arraysize(registers), registers);
178 } 178 }
179 179
180 void CallForwardVarargsDescriptor::InitializePlatformSpecific(
181 CallInterfaceDescriptorData* data) {
182 // a1: the target to call
183 // a2: start index (to support rest parameters)
184 Register registers[] = {a1, a2};
185 data->InitializePlatformSpecific(arraysize(registers), registers);
186 }
180 187
181 void ConstructStubDescriptor::InitializePlatformSpecific( 188 void ConstructStubDescriptor::InitializePlatformSpecific(
182 CallInterfaceDescriptorData* data) { 189 CallInterfaceDescriptorData* data) {
183 // a1: target 190 // a1: target
184 // a3: new target 191 // a3: new target
185 // a0: number of arguments 192 // a0: number of arguments
186 // a2: allocation site or undefined 193 // a2: allocation site or undefined
187 Register registers[] = {a1, a3, a0, a2}; 194 Register registers[] = {a1, a3, a0, a2};
188 data->InitializePlatformSpecific(arraysize(registers), registers); 195 data->InitializePlatformSpecific(arraysize(registers), registers);
189 } 196 }
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
404 a1, // the JSGeneratorObject to resume 411 a1, // the JSGeneratorObject to resume
405 a2 // the resume mode (tagged) 412 a2 // the resume mode (tagged)
406 }; 413 };
407 data->InitializePlatformSpecific(arraysize(registers), registers); 414 data->InitializePlatformSpecific(arraysize(registers), registers);
408 } 415 }
409 416
410 } // namespace internal 417 } // namespace internal
411 } // namespace v8 418 } // namespace v8
412 419
413 #endif // V8_TARGET_ARCH_MIPS64 420 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « src/mips/interface-descriptors-mips.cc ('k') | src/runtime/runtime-compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698