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

Side by Side Diff: src/ppc/interface-descriptors-ppc.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/mips64/interface-descriptors-mips64.cc ('k') | src/x64/interface-descriptors-x64.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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_PPC 5 #if V8_TARGET_ARCH_PPC
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 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 204
205 void CallTrampolineDescriptor::InitializePlatformSpecific( 205 void CallTrampolineDescriptor::InitializePlatformSpecific(
206 CallInterfaceDescriptorData* data) { 206 CallInterfaceDescriptorData* data) {
207 // r3 : number of arguments 207 // r3 : number of arguments
208 // r4 : the target to call 208 // r4 : the target to call
209 Register registers[] = {r4, r3}; 209 Register registers[] = {r4, r3};
210 data->InitializePlatformSpecific(arraysize(registers), registers); 210 data->InitializePlatformSpecific(arraysize(registers), registers);
211 } 211 }
212 212
213 213
214 void ConstructStubDescriptor::InitializePlatformSpecific(
215 CallInterfaceDescriptorData* data) {
216 // r3 : number of arguments
217 // r4 : the target to call
218 // r6 : the new target
219 // r5 : allocation site or undefined
220 Register registers[] = {r4, r6, r3, r5};
221 data->InitializePlatformSpecific(arraysize(registers), registers);
222 }
223
224
214 void ConstructTrampolineDescriptor::InitializePlatformSpecific( 225 void ConstructTrampolineDescriptor::InitializePlatformSpecific(
215 CallInterfaceDescriptorData* data) { 226 CallInterfaceDescriptorData* data) {
216 // r3 : number of arguments 227 // r3 : number of arguments
217 // r4 : the target to call 228 // r4 : the target to call
218 // r6 : the new target 229 // r6 : the new target
219 Register registers[] = {r4, r6, r3}; 230 Register registers[] = {r4, r6, r3};
220 data->InitializePlatformSpecific(arraysize(registers), registers); 231 data->InitializePlatformSpecific(arraysize(registers), registers);
221 } 232 }
222 233
223 234
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
420 r3, // argument count (argc) 431 r3, // argument count (argc)
421 r5, // address of first argument (argv) 432 r5, // address of first argument (argv)
422 r4 // the runtime function to call 433 r4 // the runtime function to call
423 }; 434 };
424 data->InitializePlatformSpecific(arraysize(registers), registers); 435 data->InitializePlatformSpecific(arraysize(registers), registers);
425 } 436 }
426 } // namespace internal 437 } // namespace internal
427 } // namespace v8 438 } // namespace v8
428 439
429 #endif // V8_TARGET_ARCH_PPC 440 #endif // V8_TARGET_ARCH_PPC
OLDNEW
« no previous file with comments | « src/mips64/interface-descriptors-mips64.cc ('k') | src/x64/interface-descriptors-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698