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 #ifndef V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ | 5 #ifndef V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ |
6 #define V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ | 6 #define V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ |
7 | 7 |
8 #include "src/assembler.h" | 8 #include "src/assembler.h" |
9 #include "src/globals.h" | 9 #include "src/globals.h" |
10 #include "src/mips64/assembler-mips64.h" | 10 #include "src/mips64/assembler-mips64.h" |
(...skipping 786 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
797 ld(src3, MemOperand(sp, 0 * kPointerSize)); | 797 ld(src3, MemOperand(sp, 0 * kPointerSize)); |
798 ld(src2, MemOperand(sp, 1 * kPointerSize)); | 798 ld(src2, MemOperand(sp, 1 * kPointerSize)); |
799 ld(src1, MemOperand(sp, 2 * kPointerSize)); | 799 ld(src1, MemOperand(sp, 2 * kPointerSize)); |
800 Daddu(sp, sp, 3 * kPointerSize); | 800 Daddu(sp, sp, 3 * kPointerSize); |
801 } | 801 } |
802 | 802 |
803 void Pop(uint32_t count = 1) { | 803 void Pop(uint32_t count = 1) { |
804 Daddu(sp, sp, Operand(count * kPointerSize)); | 804 Daddu(sp, sp, Operand(count * kPointerSize)); |
805 } | 805 } |
806 | 806 |
| 807 // Push a fixed frame, consisting of ra, fp. |
| 808 void PushCommonFrame(Register marker_reg = no_reg); |
| 809 |
| 810 // Push a standard frame, consisting of ra, fp, context and JS function. |
| 811 void PushStandardFrame(Register function_reg); |
| 812 |
| 813 void PopCommonFrame(Register marker_reg = no_reg); |
| 814 |
807 // Push and pop the registers that can hold pointers, as defined by the | 815 // Push and pop the registers that can hold pointers, as defined by the |
808 // RegList constant kSafepointSavedRegisters. | 816 // RegList constant kSafepointSavedRegisters. |
809 void PushSafepointRegisters(); | 817 void PushSafepointRegisters(); |
810 void PopSafepointRegisters(); | 818 void PopSafepointRegisters(); |
811 // Store value in register src in the safepoint stack slot for | 819 // Store value in register src in the safepoint stack slot for |
812 // register dst. | 820 // register dst. |
813 void StoreToSafepointRegisterSlot(Register src, Register dst); | 821 void StoreToSafepointRegisterSlot(Register src, Register dst); |
814 // Load the value of the src register from its safepoint stack slot | 822 // Load the value of the src register from its safepoint stack slot |
815 // into register dst. | 823 // into register dst. |
816 void LoadFromSafepointRegisterSlot(Register dst, Register src); | 824 void LoadFromSafepointRegisterSlot(Register dst, Register src); |
(...skipping 1145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1962 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 1970 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
1963 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 1971 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
1964 #else | 1972 #else |
1965 #define ACCESS_MASM(masm) masm-> | 1973 #define ACCESS_MASM(masm) masm-> |
1966 #endif | 1974 #endif |
1967 | 1975 |
1968 } // namespace internal | 1976 } // namespace internal |
1969 } // namespace v8 | 1977 } // namespace v8 |
1970 | 1978 |
1971 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ | 1979 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ |
OLD | NEW |