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

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

Issue 2681783002: X87: [turbofan] Introduce JSCallForwardVarargs operator. (Closed)
Patch Set: 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/builtins/x87/builtins-x87.cc ('k') | no next file » | 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_X87 5 #if V8_TARGET_ARCH_X87
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 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 167
168 168
169 void CallTrampolineDescriptor::InitializePlatformSpecific( 169 void CallTrampolineDescriptor::InitializePlatformSpecific(
170 CallInterfaceDescriptorData* data) { 170 CallInterfaceDescriptorData* data) {
171 // eax : number of arguments 171 // eax : number of arguments
172 // edi : the target to call 172 // edi : the target to call
173 Register registers[] = {edi, eax}; 173 Register registers[] = {edi, eax};
174 data->InitializePlatformSpecific(arraysize(registers), registers); 174 data->InitializePlatformSpecific(arraysize(registers), registers);
175 } 175 }
176 176
177 void CallForwardVarargsDescriptor::InitializePlatformSpecific(
178 CallInterfaceDescriptorData* data) {
179 // ecx : start index (to support rest parameters)
180 // edi : the target to call
181 Register registers[] = {edi, ecx};
182 data->InitializePlatformSpecific(arraysize(registers), registers);
183 }
177 184
178 void ConstructStubDescriptor::InitializePlatformSpecific( 185 void ConstructStubDescriptor::InitializePlatformSpecific(
179 CallInterfaceDescriptorData* data) { 186 CallInterfaceDescriptorData* data) {
180 // eax : number of arguments 187 // eax : number of arguments
181 // edx : the new target 188 // edx : the new target
182 // edi : the target to call 189 // edi : the target to call
183 // ebx : allocation site or undefined 190 // ebx : allocation site or undefined
184 Register registers[] = {edi, edx, eax, ebx}; 191 Register registers[] = {edi, edx, eax, ebx};
185 data->InitializePlatformSpecific(arraysize(registers), registers); 192 data->InitializePlatformSpecific(arraysize(registers), registers);
186 } 193 }
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
405 ebx, // the JSGeneratorObject to resume 412 ebx, // the JSGeneratorObject to resume
406 edx // the resume mode (tagged) 413 edx // the resume mode (tagged)
407 }; 414 };
408 data->InitializePlatformSpecific(arraysize(registers), registers); 415 data->InitializePlatformSpecific(arraysize(registers), registers);
409 } 416 }
410 417
411 } // namespace internal 418 } // namespace internal
412 } // namespace v8 419 } // namespace v8
413 420
414 #endif // V8_TARGET_ARCH_X87 421 #endif // V8_TARGET_ARCH_X87
OLDNEW
« no previous file with comments | « src/builtins/x87/builtins-x87.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698