| 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 935 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1752 dsrl(dst, src, shift); | 1760 dsrl(dst, src, shift); |
| 1753 And(dst, dst, Operand(mask)); | 1761 And(dst, dst, Operand(mask)); |
| 1754 dsll32(dst, dst, 0); | 1762 dsll32(dst, dst, 0); |
| 1755 } | 1763 } |
| 1756 | 1764 |
| 1757 template<typename Field> | 1765 template<typename Field> |
| 1758 void DecodeFieldToSmi(Register reg) { | 1766 void DecodeFieldToSmi(Register reg) { |
| 1759 DecodeField<Field>(reg, reg); | 1767 DecodeField<Field>(reg, reg); |
| 1760 } | 1768 } |
| 1761 // Generates function and stub prologue code. | 1769 // Generates function and stub prologue code. |
| 1762 void StubPrologue(); | 1770 void StubPrologue(StackFrame::Type type); |
| 1763 void Prologue(bool code_pre_aging); | 1771 void Prologue(bool code_pre_aging); |
| 1764 | 1772 |
| 1765 // Load the type feedback vector from a JavaScript frame. | 1773 // Load the type feedback vector from a JavaScript frame. |
| 1766 void EmitLoadTypeFeedbackVector(Register vector); | 1774 void EmitLoadTypeFeedbackVector(Register vector); |
| 1767 | 1775 |
| 1768 // Activation support. | 1776 // Activation support. |
| 1769 void EnterFrame(StackFrame::Type type); | 1777 void EnterFrame(StackFrame::Type type); |
| 1770 void EnterFrame(StackFrame::Type type, bool load_constant_pool_pointer_reg); | 1778 void EnterFrame(StackFrame::Type type, bool load_constant_pool_pointer_reg); |
| 1771 void LeaveFrame(StackFrame::Type type); | 1779 void LeaveFrame(StackFrame::Type type); |
| 1772 | 1780 |
| (...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1964 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 1972 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
| 1965 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 1973 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
| 1966 #else | 1974 #else |
| 1967 #define ACCESS_MASM(masm) masm-> | 1975 #define ACCESS_MASM(masm) masm-> |
| 1968 #endif | 1976 #endif |
| 1969 | 1977 |
| 1970 } // namespace internal | 1978 } // namespace internal |
| 1971 } // namespace v8 | 1979 } // namespace v8 |
| 1972 | 1980 |
| 1973 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ | 1981 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ |
| OLD | NEW |