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

Side by Side Diff: src/arm/interface-descriptors-arm.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 | « no previous file | src/arm64/interface-descriptors-arm64.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 #include "src/arm/interface-descriptors-arm.h" 5 #include "src/arm/interface-descriptors-arm.h"
6 6
7 #if V8_TARGET_ARCH_ARM 7 #if V8_TARGET_ARCH_ARM
8 8
9 #include "src/interface-descriptors.h" 9 #include "src/interface-descriptors.h"
10 10
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 206
207 void CallTrampolineDescriptor::InitializePlatformSpecific( 207 void CallTrampolineDescriptor::InitializePlatformSpecific(
208 CallInterfaceDescriptorData* data) { 208 CallInterfaceDescriptorData* data) {
209 // r0 : number of arguments 209 // r0 : number of arguments
210 // r1 : the target to call 210 // r1 : the target to call
211 Register registers[] = {r1, r0}; 211 Register registers[] = {r1, r0};
212 data->InitializePlatformSpecific(arraysize(registers), registers); 212 data->InitializePlatformSpecific(arraysize(registers), registers);
213 } 213 }
214 214
215 215
216 void ConstructStubDescriptor::InitializePlatformSpecific(
217 CallInterfaceDescriptorData* data) {
218 // r0 : number of arguments
219 // r1 : the target to call
220 // r3 : the new target
221 // r2 : allocation site or undefined
222 Register registers[] = {r1, r3, r0, r2};
223 data->InitializePlatformSpecific(arraysize(registers), registers);
224 }
225
226
216 void ConstructTrampolineDescriptor::InitializePlatformSpecific( 227 void ConstructTrampolineDescriptor::InitializePlatformSpecific(
217 CallInterfaceDescriptorData* data) { 228 CallInterfaceDescriptorData* data) {
218 // r0 : number of arguments 229 // r0 : number of arguments
219 // r1 : the target to call 230 // r1 : the target to call
220 // r3 : the new target 231 // r3 : the new target
221 Register registers[] = {r1, r3, r0}; 232 Register registers[] = {r1, r3, r0};
222 data->InitializePlatformSpecific(arraysize(registers), registers); 233 data->InitializePlatformSpecific(arraysize(registers), registers);
223 } 234 }
224 235
225 236
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
447 r2, // address of first argument (argv) 458 r2, // address of first argument (argv)
448 r1 // the runtime function to call 459 r1 // the runtime function to call
449 }; 460 };
450 data->InitializePlatformSpecific(arraysize(registers), registers); 461 data->InitializePlatformSpecific(arraysize(registers), registers);
451 } 462 }
452 463
453 } // namespace internal 464 } // namespace internal
454 } // namespace v8 465 } // namespace v8
455 466
456 #endif // V8_TARGET_ARCH_ARM 467 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « no previous file | src/arm64/interface-descriptors-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698