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 | 5 |
6 | 6 |
7 #include "src/v8.h" | 7 #include "src/v8.h" |
8 | 8 |
9 #if V8_TARGET_ARCH_MIPS64 | 9 #if V8_TARGET_ARCH_MIPS64 |
10 | 10 |
(...skipping 799 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
810 __ jmp(&entry); | 810 __ jmp(&entry); |
811 __ bind(&loop); | 811 __ bind(&loop); |
812 __ dsll(at, a4, kPointerSizeLog2); | 812 __ dsll(at, a4, kPointerSizeLog2); |
813 __ Daddu(at, a2, Operand(at)); | 813 __ Daddu(at, a2, Operand(at)); |
814 __ ld(at, MemOperand(at)); | 814 __ ld(at, MemOperand(at)); |
815 __ push(at); | 815 __ push(at); |
816 __ bind(&entry); | 816 __ bind(&entry); |
817 __ Daddu(a4, a4, Operand(-1)); | 817 __ Daddu(a4, a4, Operand(-1)); |
818 __ Branch(&loop, ge, a4, Operand(zero_reg)); | 818 __ Branch(&loop, ge, a4, Operand(zero_reg)); |
819 | 819 |
| 820 __ Daddu(a0, a0, Operand(1)); |
| 821 |
| 822 // Handle step in. |
| 823 Label skip_step_in; |
| 824 ExternalReference debug_step_in_fp = |
| 825 ExternalReference::debug_step_in_fp_address(masm->isolate()); |
| 826 __ li(a2, Operand(debug_step_in_fp)); |
| 827 __ ld(a2, MemOperand(a2)); |
| 828 __ Branch(&skip_step_in, eq, a2, Operand(zero_reg)); |
| 829 |
| 830 __ Push(a0, a1, a1); |
| 831 __ CallRuntime(Runtime::kHandleStepInForDerivedConstructors, 1); |
| 832 __ Pop(a0, a1); |
| 833 |
| 834 __ bind(&skip_step_in); |
| 835 |
| 836 |
820 // Call the function. | 837 // Call the function. |
821 // a0: number of arguments | 838 // a0: number of arguments |
822 // a1: constructor function | 839 // a1: constructor function |
823 __ Daddu(a0, a0, Operand(1)); | |
824 ParameterCount actual(a0); | 840 ParameterCount actual(a0); |
825 __ InvokeFunction(a1, actual, CALL_FUNCTION, NullCallWrapper()); | 841 __ InvokeFunction(a1, actual, CALL_FUNCTION, NullCallWrapper()); |
826 | 842 |
827 // Restore context from the frame. | 843 // Restore context from the frame. |
828 // v0: result | 844 // v0: result |
829 // sp[0]: number of arguments (smi-tagged) | 845 // sp[0]: number of arguments (smi-tagged) |
830 __ ld(cp, MemOperand(fp, StandardFrameConstants::kContextOffset)); | 846 __ ld(cp, MemOperand(fp, StandardFrameConstants::kContextOffset)); |
831 __ ld(a1, MemOperand(sp, 0)); | 847 __ ld(a1, MemOperand(sp, 0)); |
832 | 848 |
833 // Leave construct frame. | 849 // Leave construct frame. |
(...skipping 835 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1669 __ break_(0xCC); | 1685 __ break_(0xCC); |
1670 } | 1686 } |
1671 } | 1687 } |
1672 | 1688 |
1673 | 1689 |
1674 #undef __ | 1690 #undef __ |
1675 | 1691 |
1676 } } // namespace v8::internal | 1692 } } // namespace v8::internal |
1677 | 1693 |
1678 #endif // V8_TARGET_ARCH_MIPS64 | 1694 #endif // V8_TARGET_ARCH_MIPS64 |
OLD | NEW |