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

Side by Side Diff: src/mips64/builtins-mips64.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/mips/builtins-mips.cc ('k') | src/objects.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 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_MIPS64 5 #if V8_TARGET_ARCH_MIPS64
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 703 matching lines...) Expand 10 before | Expand all | Expand 10 after
714 __ Branch(&skip_flooding, eq, t1, Operand(zero_reg)); 714 __ Branch(&skip_flooding, eq, t1, Operand(zero_reg));
715 { 715 {
716 FrameScope scope(masm, StackFrame::INTERNAL); 716 FrameScope scope(masm, StackFrame::INTERNAL);
717 __ Push(a1, a2, a4); 717 __ Push(a1, a2, a4);
718 __ CallRuntime(Runtime::kDebugPrepareStepInIfStepping); 718 __ CallRuntime(Runtime::kDebugPrepareStepInIfStepping);
719 __ Pop(a1, a2); 719 __ Pop(a1, a2);
720 __ ld(a4, FieldMemOperand(a1, JSGeneratorObject::kFunctionOffset)); 720 __ ld(a4, FieldMemOperand(a1, JSGeneratorObject::kFunctionOffset));
721 } 721 }
722 __ bind(&skip_flooding); 722 __ bind(&skip_flooding);
723 723
724 // Push receiver. 724 // Push hole for the never-used receiver, similarly to arguments below.
725 __ ld(a5, FieldMemOperand(a1, JSGeneratorObject::kReceiverOffset)); 725 __ PushRoot(Heap::kTheHoleValueRootIndex);
726 __ Push(a5);
727 726
728 // ----------- S t a t e ------------- 727 // ----------- S t a t e -------------
729 // -- a1 : the JSGeneratorObject to resume 728 // -- a1 : the JSGeneratorObject to resume
730 // -- a2 : the resume mode (tagged) 729 // -- a2 : the resume mode (tagged)
731 // -- a4 : generator function 730 // -- a4 : generator function
732 // -- cp : generator context 731 // -- cp : generator context
733 // -- ra : return address 732 // -- ra : return address
734 // -- sp[0] : generator receiver 733 // -- sp[0] : generator receiver
735 // ----------------------------------- 734 // -----------------------------------
736 735
(...skipping 2147 matching lines...) Expand 10 before | Expand all | Expand 10 after
2884 } 2883 }
2885 } 2884 }
2886 2885
2887 2886
2888 #undef __ 2887 #undef __
2889 2888
2890 } // namespace internal 2889 } // namespace internal
2891 } // namespace v8 2890 } // namespace v8
2892 2891
2893 #endif // V8_TARGET_ARCH_MIPS64 2892 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « src/mips/builtins-mips.cc ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698