| 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 728 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 739 } | 739 } |
| 740 | 740 |
| 741 void Pop(uint32_t count = 1) { | 741 void Pop(uint32_t count = 1) { |
| 742 Daddu(sp, sp, Operand(count * kPointerSize)); | 742 Daddu(sp, sp, Operand(count * kPointerSize)); |
| 743 } | 743 } |
| 744 | 744 |
| 745 // Push and pop the registers that can hold pointers, as defined by the | 745 // Push and pop the registers that can hold pointers, as defined by the |
| 746 // RegList constant kSafepointSavedRegisters. | 746 // RegList constant kSafepointSavedRegisters. |
| 747 void PushSafepointRegisters(); | 747 void PushSafepointRegisters(); |
| 748 void PopSafepointRegisters(); | 748 void PopSafepointRegisters(); |
| 749 void PushSafepointRegistersAndDoubles(); | |
| 750 void PopSafepointRegistersAndDoubles(); | |
| 751 // Store value in register src in the safepoint stack slot for | 749 // Store value in register src in the safepoint stack slot for |
| 752 // register dst. | 750 // register dst. |
| 753 void StoreToSafepointRegisterSlot(Register src, Register dst); | 751 void StoreToSafepointRegisterSlot(Register src, Register dst); |
| 754 void StoreToSafepointRegistersAndDoublesSlot(Register src, Register dst); | |
| 755 // Load the value of the src register from its safepoint stack slot | 752 // Load the value of the src register from its safepoint stack slot |
| 756 // into register dst. | 753 // into register dst. |
| 757 void LoadFromSafepointRegisterSlot(Register dst, Register src); | 754 void LoadFromSafepointRegisterSlot(Register dst, Register src); |
| 758 | 755 |
| 759 // Flush the I-cache from asm code. You should use CpuFeatures::FlushICache | 756 // Flush the I-cache from asm code. You should use CpuFeatures::FlushICache |
| 760 // from C. | 757 // from C. |
| 761 // Does not handle errors. | 758 // Does not handle errors. |
| 762 void FlushICache(Register address, unsigned instructions); | 759 void FlushICache(Register address, unsigned instructions); |
| 763 | 760 |
| 764 // MIPS64 R2 instruction macro. | 761 // MIPS64 R2 instruction macro. |
| (...skipping 1018 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1783 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) | 1780 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) |
| 1784 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 1781 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
| 1785 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 1782 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
| 1786 #else | 1783 #else |
| 1787 #define ACCESS_MASM(masm) masm-> | 1784 #define ACCESS_MASM(masm) masm-> |
| 1788 #endif | 1785 #endif |
| 1789 | 1786 |
| 1790 } } // namespace v8::internal | 1787 } } // namespace v8::internal |
| 1791 | 1788 |
| 1792 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ | 1789 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ |
| OLD | NEW |