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

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

Issue 1968263002: Remove unused 'receiver' field from generators (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: weaken dcheck Created 4 years, 7 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/ia32/builtins-ia32.cc ('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 838 matching lines...) Expand 10 before | Expand all | Expand 10 after
849 __ Branch(&skip_flooding, eq, t1, Operand(zero_reg)); 849 __ Branch(&skip_flooding, eq, t1, Operand(zero_reg));
850 { 850 {
851 FrameScope scope(masm, StackFrame::INTERNAL); 851 FrameScope scope(masm, StackFrame::INTERNAL);
852 __ Push(a1, a2, t0); 852 __ Push(a1, a2, t0);
853 __ CallRuntime(Runtime::kDebugPrepareStepInIfStepping); 853 __ CallRuntime(Runtime::kDebugPrepareStepInIfStepping);
854 __ Pop(a1, a2); 854 __ Pop(a1, a2);
855 __ lw(t0, FieldMemOperand(a1, JSGeneratorObject::kFunctionOffset)); 855 __ lw(t0, FieldMemOperand(a1, JSGeneratorObject::kFunctionOffset));
856 } 856 }
857 __ bind(&skip_flooding); 857 __ bind(&skip_flooding);
858 858
859 // Push receiver. 859 // Push hole for the never-used receiver, similarly to arguments below.
860 __ lw(t1, FieldMemOperand(a1, JSGeneratorObject::kReceiverOffset)); 860 __ PushRoot(Heap::kTheHoleValueRootIndex);
861 __ Push(t1);
862 861
863 // ----------- S t a t e ------------- 862 // ----------- S t a t e -------------
864 // -- a1 : the JSGeneratorObject to resume 863 // -- a1 : the JSGeneratorObject to resume
865 // -- a2 : the resume mode (tagged) 864 // -- a2 : the resume mode (tagged)
866 // -- t0 : generator function 865 // -- t0 : generator function
867 // -- cp : generator context 866 // -- cp : generator context
868 // -- ra : return address 867 // -- ra : return address
869 // -- sp[0] : generator receiver 868 // -- sp[0] : generator receiver
870 // ----------------------------------- 869 // -----------------------------------
871 870
(...skipping 2022 matching lines...) Expand 10 before | Expand all | Expand 10 after
2894 } 2893 }
2895 } 2894 }
2896 2895
2897 2896
2898 #undef __ 2897 #undef __
2899 2898
2900 } // namespace internal 2899 } // namespace internal
2901 } // namespace v8 2900 } // namespace v8
2902 2901
2903 #endif // V8_TARGET_ARCH_MIPS 2902 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/ia32/builtins-ia32.cc ('k') | src/mips64/builtins-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698