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

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

Issue 2783043002: PPC/s390: [cleanup] combine 3 ResumeGenerator stubs into one (Closed)
Patch Set: Created 3 years, 8 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/s390/builtins-s390.cc ('k') | src/ppc/macro-assembler-ppc.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 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 373 matching lines...) Expand 10 before | Expand all | Expand 10 after
384 r4 // the runtime function to call 384 r4 // the runtime function to call
385 }; 385 };
386 data->InitializePlatformSpecific(arraysize(registers), registers); 386 data->InitializePlatformSpecific(arraysize(registers), registers);
387 } 387 }
388 388
389 void ResumeGeneratorDescriptor::InitializePlatformSpecific( 389 void ResumeGeneratorDescriptor::InitializePlatformSpecific(
390 CallInterfaceDescriptorData* data) { 390 CallInterfaceDescriptorData* data) {
391 Register registers[] = { 391 Register registers[] = {
392 r3, // the value to pass to the generator 392 r3, // the value to pass to the generator
393 r4, // the JSGeneratorObject to resume 393 r4, // the JSGeneratorObject to resume
394 r5 // the resume mode (tagged) 394 r5, // the resume mode (tagged)
395 r6 // SuspendFlags (tagged)
395 }; 396 };
396 data->InitializePlatformSpecific(arraysize(registers), registers); 397 data->InitializePlatformSpecific(arraysize(registers), registers);
397 } 398 }
398 399
399 void FrameDropperTrampolineDescriptor::InitializePlatformSpecific( 400 void FrameDropperTrampolineDescriptor::InitializePlatformSpecific(
400 CallInterfaceDescriptorData* data) { 401 CallInterfaceDescriptorData* data) {
401 Register registers[] = { 402 Register registers[] = {
402 r4, // loaded new FP 403 r4, // loaded new FP
403 }; 404 };
404 data->InitializePlatformSpecific(arraysize(registers), registers); 405 data->InitializePlatformSpecific(arraysize(registers), registers);
405 } 406 }
406 407
407 } // namespace internal 408 } // namespace internal
408 } // namespace v8 409 } // namespace v8
409 410
410 #endif // V8_TARGET_ARCH_PPC 411 #endif // V8_TARGET_ARCH_PPC
OLDNEW
« no previous file with comments | « src/builtins/s390/builtins-s390.cc ('k') | src/ppc/macro-assembler-ppc.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698