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

Side by Side Diff: src/s390/builtins-s390.cc

Issue 2079613003: [generators] Implement %GeneratorGetSourcePosition. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: rename again, and move subtraction to runtime Created 4 years, 6 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/runtime/runtime-generator.cc ('k') | src/x64/builtins-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_S390 5 #if V8_TARGET_ARCH_S390
6 6
7 #include "src/codegen.h" 7 #include "src/codegen.h"
8 #include "src/debug/debug.h" 8 #include "src/debug/debug.h"
9 #include "src/deoptimizer.h" 9 #include "src/deoptimizer.h"
10 #include "src/full-codegen/full-codegen.h" 10 #include "src/full-codegen/full-codegen.h"
(...skipping 661 matching lines...) Expand 10 before | Expand all | Expand 10 after
672 void Builtins::Generate_ResumeGeneratorTrampoline(MacroAssembler* masm) { 672 void Builtins::Generate_ResumeGeneratorTrampoline(MacroAssembler* masm) {
673 // ----------- S t a t e ------------- 673 // ----------- S t a t e -------------
674 // -- r2 : the value to pass to the generator 674 // -- r2 : the value to pass to the generator
675 // -- r3 : the JSGeneratorObject to resume 675 // -- r3 : the JSGeneratorObject to resume
676 // -- r4 : the resume mode (tagged) 676 // -- r4 : the resume mode (tagged)
677 // -- lr : return address 677 // -- lr : return address
678 // ----------------------------------- 678 // -----------------------------------
679 __ AssertGeneratorObject(r3); 679 __ AssertGeneratorObject(r3);
680 680
681 // Store input value into generator object. 681 // Store input value into generator object.
682 __ StoreP(r2, FieldMemOperand(r3, JSGeneratorObject::kInputOffset), r0); 682 __ StoreP(r2, FieldMemOperand(r3, JSGeneratorObject::kInputOrDebugPosOffset),
683 __ RecordWriteField(r3, JSGeneratorObject::kInputOffset, r2, r5, 683 r0);
684 __ RecordWriteField(r3, JSGeneratorObject::kInputOrDebugPosOffset, r2, r5,
684 kLRHasNotBeenSaved, kDontSaveFPRegs); 685 kLRHasNotBeenSaved, kDontSaveFPRegs);
685 686
686 // Store resume mode into generator object. 687 // Store resume mode into generator object.
687 __ StoreP(r4, FieldMemOperand(r3, JSGeneratorObject::kResumeModeOffset)); 688 __ StoreP(r4, FieldMemOperand(r3, JSGeneratorObject::kResumeModeOffset));
688 689
689 // Load suspended function and context. 690 // Load suspended function and context.
690 __ LoadP(cp, FieldMemOperand(r3, JSGeneratorObject::kContextOffset)); 691 __ LoadP(cp, FieldMemOperand(r3, JSGeneratorObject::kContextOffset));
691 __ LoadP(r6, FieldMemOperand(r3, JSGeneratorObject::kFunctionOffset)); 692 __ LoadP(r6, FieldMemOperand(r3, JSGeneratorObject::kFunctionOffset));
692 693
693 // Flood function if we are stepping. 694 // Flood function if we are stepping.
(...skipping 2201 matching lines...) Expand 10 before | Expand all | Expand 10 after
2895 __ bkpt(0); 2896 __ bkpt(0);
2896 } 2897 }
2897 } 2898 }
2898 2899
2899 #undef __ 2900 #undef __
2900 2901
2901 } // namespace internal 2902 } // namespace internal
2902 } // namespace v8 2903 } // namespace v8
2903 2904
2904 #endif // V8_TARGET_ARCH_S390 2905 #endif // V8_TARGET_ARCH_S390
OLDNEW
« no previous file with comments | « src/runtime/runtime-generator.cc ('k') | src/x64/builtins-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698