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

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

Issue 2655233002: [turbofan] Introduce JSCallForwardVarargs operator. (Closed)
Patch Set: Fix formatting. Created 3 years, 11 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/ia32/code-stubs-ia32.cc ('k') | src/interface-descriptors.h » ('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_IA32 5 #if V8_TARGET_ARCH_IA32
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 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 171
172 172
173 void CallTrampolineDescriptor::InitializePlatformSpecific( 173 void CallTrampolineDescriptor::InitializePlatformSpecific(
174 CallInterfaceDescriptorData* data) { 174 CallInterfaceDescriptorData* data) {
175 // eax : number of arguments 175 // eax : number of arguments
176 // edi : the target to call 176 // edi : the target to call
177 Register registers[] = {edi, eax}; 177 Register registers[] = {edi, eax};
178 data->InitializePlatformSpecific(arraysize(registers), registers); 178 data->InitializePlatformSpecific(arraysize(registers), registers);
179 } 179 }
180 180
181 void CallForwardVarargsDescriptor::InitializePlatformSpecific(
182 CallInterfaceDescriptorData* data) {
183 // ecx : start index (to support rest parameters)
184 // edi : the target to call
185 Register registers[] = {edi, ecx};
186 data->InitializePlatformSpecific(arraysize(registers), registers);
187 }
181 188
182 void ConstructStubDescriptor::InitializePlatformSpecific( 189 void ConstructStubDescriptor::InitializePlatformSpecific(
183 CallInterfaceDescriptorData* data) { 190 CallInterfaceDescriptorData* data) {
184 // eax : number of arguments 191 // eax : number of arguments
185 // edx : the new target 192 // edx : the new target
186 // edi : the target to call 193 // edi : the target to call
187 // ebx : allocation site or undefined 194 // ebx : allocation site or undefined
188 Register registers[] = {edi, edx, eax, ebx}; 195 Register registers[] = {edi, edx, eax, ebx};
189 data->InitializePlatformSpecific(arraysize(registers), registers); 196 data->InitializePlatformSpecific(arraysize(registers), registers);
190 } 197 }
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
409 ebx, // the JSGeneratorObject to resume 416 ebx, // the JSGeneratorObject to resume
410 edx // the resume mode (tagged) 417 edx // the resume mode (tagged)
411 }; 418 };
412 data->InitializePlatformSpecific(arraysize(registers), registers); 419 data->InitializePlatformSpecific(arraysize(registers), registers);
413 } 420 }
414 421
415 } // namespace internal 422 } // namespace internal
416 } // namespace v8 423 } // namespace v8
417 424
418 #endif // V8_TARGET_ARCH_IA32 425 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ia32/code-stubs-ia32.cc ('k') | src/interface-descriptors.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698