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

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

Issue 1517593003: [turbofan] Optimize JSCallConstruct in typed lowering to direct calls. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix arm typo. Created 5 years 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/compiler/js-typed-lowering.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 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 210
211 void CallTrampolineDescriptor::InitializePlatformSpecific( 211 void CallTrampolineDescriptor::InitializePlatformSpecific(
212 CallInterfaceDescriptorData* data) { 212 CallInterfaceDescriptorData* data) {
213 // eax : number of arguments 213 // eax : number of arguments
214 // edi : the target to call 214 // edi : the target to call
215 Register registers[] = {edi, eax}; 215 Register registers[] = {edi, eax};
216 data->InitializePlatformSpecific(arraysize(registers), registers); 216 data->InitializePlatformSpecific(arraysize(registers), registers);
217 } 217 }
218 218
219 219
220 void ConstructStubDescriptor::InitializePlatformSpecific(
221 CallInterfaceDescriptorData* data) {
222 // eax : number of arguments
223 // edx : the new target
224 // edi : the target to call
225 // ebx : allocation site or undefined
226 Register registers[] = {edi, edx, eax, ebx};
227 data->InitializePlatformSpecific(arraysize(registers), registers);
228 }
229
230
220 void ConstructTrampolineDescriptor::InitializePlatformSpecific( 231 void ConstructTrampolineDescriptor::InitializePlatformSpecific(
221 CallInterfaceDescriptorData* data) { 232 CallInterfaceDescriptorData* data) {
222 // eax : number of arguments 233 // eax : number of arguments
223 // edx : the new target 234 // edx : the new target
224 // edi : the target to call 235 // edi : the target to call
225 Register registers[] = {edi, edx, eax}; 236 Register registers[] = {edi, edx, eax};
226 data->InitializePlatformSpecific(arraysize(registers), registers); 237 data->InitializePlatformSpecific(arraysize(registers), registers);
227 } 238 }
228 239
229 240
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
428 ecx, // address of first argument (argv) 439 ecx, // address of first argument (argv)
429 ebx // the runtime function to call 440 ebx // the runtime function to call
430 }; 441 };
431 data->InitializePlatformSpecific(arraysize(registers), registers); 442 data->InitializePlatformSpecific(arraysize(registers), registers);
432 } 443 }
433 444
434 } // namespace internal 445 } // namespace internal
435 } // namespace v8 446 } // namespace v8
436 447
437 #endif // V8_TARGET_ARCH_IA32 448 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/compiler/js-typed-lowering.cc ('k') | src/interface-descriptors.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698