| 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 778 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 789 // RegList constant kSafepointSavedRegisters. | 789 // RegList constant kSafepointSavedRegisters. |
| 790 void PushSafepointRegisters(); | 790 void PushSafepointRegisters(); |
| 791 void PopSafepointRegisters(); | 791 void PopSafepointRegisters(); |
| 792 // Store value in register src in the safepoint stack slot for | 792 // Store value in register src in the safepoint stack slot for |
| 793 // register dst. | 793 // register dst. |
| 794 void StoreToSafepointRegisterSlot(Register src, Register dst); | 794 void StoreToSafepointRegisterSlot(Register src, Register dst); |
| 795 // Load the value of the src register from its safepoint stack slot | 795 // Load the value of the src register from its safepoint stack slot |
| 796 // into register dst. | 796 // into register dst. |
| 797 void LoadFromSafepointRegisterSlot(Register dst, Register src); | 797 void LoadFromSafepointRegisterSlot(Register dst, Register src); |
| 798 | 798 |
| 799 // Flush the I-cache from asm code. You should use CpuFeatures::FlushICache | |
| 800 // from C. | |
| 801 // Does not handle errors. | |
| 802 void FlushICache(Register address, unsigned instructions); | |
| 803 | |
| 804 // MIPS64 R2 instruction macro. | 799 // MIPS64 R2 instruction macro. |
| 805 void Ins(Register rt, Register rs, uint16_t pos, uint16_t size); | 800 void Ins(Register rt, Register rs, uint16_t pos, uint16_t size); |
| 806 void Ext(Register rt, Register rs, uint16_t pos, uint16_t size); | 801 void Ext(Register rt, Register rs, uint16_t pos, uint16_t size); |
| 807 void Dext(Register rt, Register rs, uint16_t pos, uint16_t size); | 802 void Dext(Register rt, Register rs, uint16_t pos, uint16_t size); |
| 808 | 803 |
| 809 // --------------------------------------------------------------------------- | 804 // --------------------------------------------------------------------------- |
| 810 // FPU macros. These do not handle special cases like NaN or +- inf. | 805 // FPU macros. These do not handle special cases like NaN or +- inf. |
| 811 | 806 |
| 812 // Convert unsigned word to double. | 807 // Convert unsigned word to double. |
| 813 void Cvt_d_uw(FPURegister fd, FPURegister fs, FPURegister scratch); | 808 void Cvt_d_uw(FPURegister fd, FPURegister fs, FPURegister scratch); |
| (...skipping 1025 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1839 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) | 1834 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) |
| 1840 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 1835 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
| 1841 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 1836 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
| 1842 #else | 1837 #else |
| 1843 #define ACCESS_MASM(masm) masm-> | 1838 #define ACCESS_MASM(masm) masm-> |
| 1844 #endif | 1839 #endif |
| 1845 | 1840 |
| 1846 } } // namespace v8::internal | 1841 } } // namespace v8::internal |
| 1847 | 1842 |
| 1848 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ | 1843 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ |
| OLD | NEW |