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

Side by Side Diff: src/mips/builtins-mips.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/interpreter/interpreter-assembler.h ('k') | src/mips64/builtins-mips64.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_MIPS 5 #if V8_TARGET_ARCH_MIPS
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 797 matching lines...) Expand 10 before | Expand all | Expand 10 after
808 void Builtins::Generate_ResumeGeneratorTrampoline(MacroAssembler* masm) { 808 void Builtins::Generate_ResumeGeneratorTrampoline(MacroAssembler* masm) {
809 // ----------- S t a t e ------------- 809 // ----------- S t a t e -------------
810 // -- v0 : the value to pass to the generator 810 // -- v0 : the value to pass to the generator
811 // -- a1 : the JSGeneratorObject to resume 811 // -- a1 : the JSGeneratorObject to resume
812 // -- a2 : the resume mode (tagged) 812 // -- a2 : the resume mode (tagged)
813 // -- ra : return address 813 // -- ra : return address
814 // ----------------------------------- 814 // -----------------------------------
815 __ AssertGeneratorObject(a1); 815 __ AssertGeneratorObject(a1);
816 816
817 // Store input value into generator object. 817 // Store input value into generator object.
818 __ sw(v0, FieldMemOperand(a1, JSGeneratorObject::kInputOffset)); 818 __ sw(v0, FieldMemOperand(a1, JSGeneratorObject::kInputOrDebugPosOffset));
819 __ RecordWriteField(a1, JSGeneratorObject::kInputOffset, v0, a3, 819 __ RecordWriteField(a1, JSGeneratorObject::kInputOrDebugPosOffset, v0, a3,
820 kRAHasNotBeenSaved, kDontSaveFPRegs); 820 kRAHasNotBeenSaved, kDontSaveFPRegs);
821 821
822 // Store resume mode into generator object. 822 // Store resume mode into generator object.
823 __ sw(a2, FieldMemOperand(a1, JSGeneratorObject::kResumeModeOffset)); 823 __ sw(a2, FieldMemOperand(a1, JSGeneratorObject::kResumeModeOffset));
824 824
825 // Load suspended function and context. 825 // Load suspended function and context.
826 __ lw(cp, FieldMemOperand(a1, JSGeneratorObject::kContextOffset)); 826 __ lw(cp, FieldMemOperand(a1, JSGeneratorObject::kContextOffset));
827 __ lw(t0, FieldMemOperand(a1, JSGeneratorObject::kFunctionOffset)); 827 __ lw(t0, FieldMemOperand(a1, JSGeneratorObject::kFunctionOffset));
828 828
829 // Flood function if we are stepping. 829 // Flood function if we are stepping.
(...skipping 2127 matching lines...) Expand 10 before | Expand all | Expand 10 after
2957 } 2957 }
2958 } 2958 }
2959 2959
2960 2960
2961 #undef __ 2961 #undef __
2962 2962
2963 } // namespace internal 2963 } // namespace internal
2964 } // namespace v8 2964 } // namespace v8
2965 2965
2966 #endif // V8_TARGET_ARCH_MIPS 2966 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/interpreter/interpreter-assembler.h ('k') | src/mips64/builtins-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698