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

Side by Side Diff: src/arm/builtins-arm.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 | « no previous file | src/arm64/builtins-arm64.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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_ARM 5 #if V8_TARGET_ARCH_ARM
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 675 matching lines...) Expand 10 before | Expand all | Expand 10 after
686 void Builtins::Generate_ResumeGeneratorTrampoline(MacroAssembler* masm) { 686 void Builtins::Generate_ResumeGeneratorTrampoline(MacroAssembler* masm) {
687 // ----------- S t a t e ------------- 687 // ----------- S t a t e -------------
688 // -- r0 : the value to pass to the generator 688 // -- r0 : the value to pass to the generator
689 // -- r1 : the JSGeneratorObject to resume 689 // -- r1 : the JSGeneratorObject to resume
690 // -- r2 : the resume mode (tagged) 690 // -- r2 : the resume mode (tagged)
691 // -- lr : return address 691 // -- lr : return address
692 // ----------------------------------- 692 // -----------------------------------
693 __ AssertGeneratorObject(r1); 693 __ AssertGeneratorObject(r1);
694 694
695 // Store input value into generator object. 695 // Store input value into generator object.
696 __ str(r0, FieldMemOperand(r1, JSGeneratorObject::kInputOffset)); 696 __ str(r0, FieldMemOperand(r1, JSGeneratorObject::kInputOrDebugPosOffset));
697 __ RecordWriteField(r1, JSGeneratorObject::kInputOffset, r0, r3, 697 __ RecordWriteField(r1, JSGeneratorObject::kInputOrDebugPosOffset, r0, r3,
698 kLRHasNotBeenSaved, kDontSaveFPRegs); 698 kLRHasNotBeenSaved, kDontSaveFPRegs);
699 699
700 // Store resume mode into generator object. 700 // Store resume mode into generator object.
701 __ str(r2, FieldMemOperand(r1, JSGeneratorObject::kResumeModeOffset)); 701 __ str(r2, FieldMemOperand(r1, JSGeneratorObject::kResumeModeOffset));
702 702
703 // Load suspended function and context. 703 // Load suspended function and context.
704 __ ldr(cp, FieldMemOperand(r1, JSGeneratorObject::kContextOffset)); 704 __ ldr(cp, FieldMemOperand(r1, JSGeneratorObject::kContextOffset));
705 __ ldr(r4, FieldMemOperand(r1, JSGeneratorObject::kFunctionOffset)); 705 __ ldr(r4, FieldMemOperand(r1, JSGeneratorObject::kFunctionOffset));
706 706
707 // Flood function if we are stepping. 707 // Flood function if we are stepping.
(...skipping 2155 matching lines...) Expand 10 before | Expand all | Expand 10 after
2863 } 2863 }
2864 } 2864 }
2865 2865
2866 2866
2867 #undef __ 2867 #undef __
2868 2868
2869 } // namespace internal 2869 } // namespace internal
2870 } // namespace v8 2870 } // namespace v8
2871 2871
2872 #endif // V8_TARGET_ARCH_ARM 2872 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « no previous file | src/arm64/builtins-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698