OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |