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

Side by Side Diff: src/arm64/builtins-arm64.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/arm/builtins-arm.cc ('k') | src/compiler/access-builder.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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_ARM64 5 #if V8_TARGET_ARCH_ARM64
6 6
7 #include "src/arm64/frames-arm64.h" 7 #include "src/arm64/frames-arm64.h"
8 #include "src/codegen.h" 8 #include "src/codegen.h"
9 #include "src/debug/debug.h" 9 #include "src/debug/debug.h"
10 #include "src/deoptimizer.h" 10 #include "src/deoptimizer.h"
(...skipping 682 matching lines...) Expand 10 before | Expand all | Expand 10 after
693 void Builtins::Generate_ResumeGeneratorTrampoline(MacroAssembler* masm) { 693 void Builtins::Generate_ResumeGeneratorTrampoline(MacroAssembler* masm) {
694 // ----------- S t a t e ------------- 694 // ----------- S t a t e -------------
695 // -- x0 : the value to pass to the generator 695 // -- x0 : the value to pass to the generator
696 // -- x1 : the JSGeneratorObject to resume 696 // -- x1 : the JSGeneratorObject to resume
697 // -- x2 : the resume mode (tagged) 697 // -- x2 : the resume mode (tagged)
698 // -- lr : return address 698 // -- lr : return address
699 // ----------------------------------- 699 // -----------------------------------
700 __ AssertGeneratorObject(x1); 700 __ AssertGeneratorObject(x1);
701 701
702 // Store input value into generator object. 702 // Store input value into generator object.
703 __ Str(x0, FieldMemOperand(x1, JSGeneratorObject::kInputOffset)); 703 __ Str(x0, FieldMemOperand(x1, JSGeneratorObject::kInputOrDebugPosOffset));
704 __ RecordWriteField(x1, JSGeneratorObject::kInputOffset, x0, x3, 704 __ RecordWriteField(x1, JSGeneratorObject::kInputOrDebugPosOffset, x0, x3,
705 kLRHasNotBeenSaved, kDontSaveFPRegs); 705 kLRHasNotBeenSaved, kDontSaveFPRegs);
706 706
707 // Store resume mode into generator object. 707 // Store resume mode into generator object.
708 __ Str(x2, FieldMemOperand(x1, JSGeneratorObject::kResumeModeOffset)); 708 __ Str(x2, FieldMemOperand(x1, JSGeneratorObject::kResumeModeOffset));
709 709
710 // Load suspended function and context. 710 // Load suspended function and context.
711 __ Ldr(cp, FieldMemOperand(x1, JSGeneratorObject::kContextOffset)); 711 __ Ldr(cp, FieldMemOperand(x1, JSGeneratorObject::kContextOffset));
712 __ Ldr(x4, FieldMemOperand(x1, JSGeneratorObject::kFunctionOffset)); 712 __ Ldr(x4, FieldMemOperand(x1, JSGeneratorObject::kFunctionOffset));
713 713
714 // Flood function if we are stepping. 714 // Flood function if we are stepping.
(...skipping 2271 matching lines...) Expand 10 before | Expand all | Expand 10 after
2986 } 2986 }
2987 } 2987 }
2988 2988
2989 2989
2990 #undef __ 2990 #undef __
2991 2991
2992 } // namespace internal 2992 } // namespace internal
2993 } // namespace v8 2993 } // namespace v8
2994 2994
2995 #endif // V8_TARGET_ARCH_ARM 2995 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/arm/builtins-arm.cc ('k') | src/compiler/access-builder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698