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

Side by Side Diff: src/ppc/builtins-ppc.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/parsing/parser.cc ('k') | src/runtime/runtime.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/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 673 matching lines...) Expand 10 before | Expand all | Expand 10 after
684 void Builtins::Generate_ResumeGeneratorTrampoline(MacroAssembler* masm) { 684 void Builtins::Generate_ResumeGeneratorTrampoline(MacroAssembler* masm) {
685 // ----------- S t a t e ------------- 685 // ----------- S t a t e -------------
686 // -- r3 : the value to pass to the generator 686 // -- r3 : the value to pass to the generator
687 // -- r4 : the JSGeneratorObject to resume 687 // -- r4 : the JSGeneratorObject to resume
688 // -- r5 : the resume mode (tagged) 688 // -- r5 : the resume mode (tagged)
689 // -- lr : return address 689 // -- lr : return address
690 // ----------------------------------- 690 // -----------------------------------
691 __ AssertGeneratorObject(r4); 691 __ AssertGeneratorObject(r4);
692 692
693 // Store input value into generator object. 693 // Store input value into generator object.
694 __ StoreP(r3, FieldMemOperand(r4, JSGeneratorObject::kInputOffset), r0); 694 __ StoreP(r3, FieldMemOperand(r4, JSGeneratorObject::kInputOrDebugPosOffset),
695 __ RecordWriteField(r4, JSGeneratorObject::kInputOffset, r3, r6, 695 r0);
696 __ RecordWriteField(r4, JSGeneratorObject::kInputOrDebugPosOffset, r3, r6,
696 kLRHasNotBeenSaved, kDontSaveFPRegs); 697 kLRHasNotBeenSaved, kDontSaveFPRegs);
697 698
698 // Store resume mode into generator object. 699 // Store resume mode into generator object.
699 __ StoreP(r5, FieldMemOperand(r4, JSGeneratorObject::kResumeModeOffset), r0); 700 __ StoreP(r5, FieldMemOperand(r4, JSGeneratorObject::kResumeModeOffset), r0);
700 701
701 // Load suspended function and context. 702 // Load suspended function and context.
702 __ LoadP(cp, FieldMemOperand(r4, JSGeneratorObject::kContextOffset)); 703 __ LoadP(cp, FieldMemOperand(r4, JSGeneratorObject::kContextOffset));
703 __ LoadP(r7, FieldMemOperand(r4, JSGeneratorObject::kFunctionOffset)); 704 __ LoadP(r7, FieldMemOperand(r4, JSGeneratorObject::kFunctionOffset));
704 705
705 // Flood function if we are stepping. 706 // Flood function if we are stepping.
(...skipping 2224 matching lines...) Expand 10 before | Expand all | Expand 10 after
2930 __ bkpt(0); 2931 __ bkpt(0);
2931 } 2932 }
2932 } 2933 }
2933 2934
2934 2935
2935 #undef __ 2936 #undef __
2936 } // namespace internal 2937 } // namespace internal
2937 } // namespace v8 2938 } // namespace v8
2938 2939
2939 #endif // V8_TARGET_ARCH_PPC 2940 #endif // V8_TARGET_ARCH_PPC
OLDNEW
« no previous file with comments | « src/parsing/parser.cc ('k') | src/runtime/runtime.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698