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

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

Issue 2319913004: PPC/s390: [Interpreter] Collect allocation site feedback in call bytecode handler. (Closed)
Patch Set: Created 4 years, 3 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/ppc/interface-descriptors-ppc.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 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 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_S390 5 #if V8_TARGET_ARCH_S390
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 347 matching lines...) Expand 10 before | Expand all | Expand 10 after
358 Register registers[] = { 358 Register registers[] = {
359 r2, // argument count (not including receiver) 359 r2, // argument count (not including receiver)
360 r5, // new target 360 r5, // new target
361 r3, // constructor to call 361 r3, // constructor to call
362 r4, // allocation site feedback if available, undefined otherwise 362 r4, // allocation site feedback if available, undefined otherwise
363 r6 // address of the first argument 363 r6 // address of the first argument
364 }; 364 };
365 data->InitializePlatformSpecific(arraysize(registers), registers); 365 data->InitializePlatformSpecific(arraysize(registers), registers);
366 } 366 }
367 367
368 void InterpreterPushArgsAndConstructArrayDescriptor::InitializePlatformSpecific(
369 CallInterfaceDescriptorData* data) {
370 Register registers[] = {
371 r2, // argument count (not including receiver)
372 r3, // target to call checked to be Array function
373 r4, // allocation site feedback if available, undefined otherwise
374 r5 // address of the first argument
375 };
376 data->InitializePlatformSpecific(arraysize(registers), registers);
377 }
378
368 void InterpreterCEntryDescriptor::InitializePlatformSpecific( 379 void InterpreterCEntryDescriptor::InitializePlatformSpecific(
369 CallInterfaceDescriptorData* data) { 380 CallInterfaceDescriptorData* data) {
370 Register registers[] = { 381 Register registers[] = {
371 r2, // argument count (argc) 382 r2, // argument count (argc)
372 r4, // address of first argument (argv) 383 r4, // address of first argument (argv)
373 r3 // the runtime function to call 384 r3 // the runtime function to call
374 }; 385 };
375 data->InitializePlatformSpecific(arraysize(registers), registers); 386 data->InitializePlatformSpecific(arraysize(registers), registers);
376 } 387 }
377 388
378 void ResumeGeneratorDescriptor::InitializePlatformSpecific( 389 void ResumeGeneratorDescriptor::InitializePlatformSpecific(
379 CallInterfaceDescriptorData* data) { 390 CallInterfaceDescriptorData* data) {
380 Register registers[] = { 391 Register registers[] = {
381 r2, // the value to pass to the generator 392 r2, // the value to pass to the generator
382 r3, // the JSGeneratorObject to resume 393 r3, // the JSGeneratorObject to resume
383 r4 // the resume mode (tagged) 394 r4 // the resume mode (tagged)
384 }; 395 };
385 data->InitializePlatformSpecific(arraysize(registers), registers); 396 data->InitializePlatformSpecific(arraysize(registers), registers);
386 } 397 }
387 398
388 } // namespace internal 399 } // namespace internal
389 } // namespace v8 400 } // namespace v8
390 401
391 #endif // V8_TARGET_ARCH_S390 402 #endif // V8_TARGET_ARCH_S390
OLDNEW
« no previous file with comments | « src/ppc/interface-descriptors-ppc.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698