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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 }; | 98 }; |
99 enum RAStatus { kRAHasNotBeenSaved, kRAHasBeenSaved }; | 99 enum RAStatus { kRAHasNotBeenSaved, kRAHasBeenSaved }; |
100 | 100 |
101 Register GetRegisterThatIsNotOneOf(Register reg1, | 101 Register GetRegisterThatIsNotOneOf(Register reg1, |
102 Register reg2 = no_reg, | 102 Register reg2 = no_reg, |
103 Register reg3 = no_reg, | 103 Register reg3 = no_reg, |
104 Register reg4 = no_reg, | 104 Register reg4 = no_reg, |
105 Register reg5 = no_reg, | 105 Register reg5 = no_reg, |
106 Register reg6 = no_reg); | 106 Register reg6 = no_reg); |
107 | 107 |
108 bool AreAliased(Register reg1, | 108 bool AreAliased(Register reg1, Register reg2, Register reg3 = no_reg, |
109 Register reg2, | 109 Register reg4 = no_reg, Register reg5 = no_reg, |
110 Register reg3 = no_reg, | 110 Register reg6 = no_reg, Register reg7 = no_reg, |
111 Register reg4 = no_reg, | 111 Register reg8 = no_reg, Register reg9 = no_reg, |
112 Register reg5 = no_reg, | 112 Register reg10 = no_reg); |
113 Register reg6 = no_reg, | |
114 Register reg7 = no_reg, | |
115 Register reg8 = no_reg); | |
116 | 113 |
117 | 114 |
118 // ----------------------------------------------------------------------------- | 115 // ----------------------------------------------------------------------------- |
119 // Static helper functions. | 116 // Static helper functions. |
120 | 117 |
121 #if defined(V8_TARGET_LITTLE_ENDIAN) | 118 #if defined(V8_TARGET_LITTLE_ENDIAN) |
122 #define SmiWordOffset(offset) (offset + kPointerSize / 2) | 119 #define SmiWordOffset(offset) (offset + kPointerSize / 2) |
123 #else | 120 #else |
124 #define SmiWordOffset(offset) offset | 121 #define SmiWordOffset(offset) offset |
125 #endif | 122 #endif |
(...skipping 1727 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1853 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 1850 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
1854 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 1851 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
1855 #else | 1852 #else |
1856 #define ACCESS_MASM(masm) masm-> | 1853 #define ACCESS_MASM(masm) masm-> |
1857 #endif | 1854 #endif |
1858 | 1855 |
1859 } // namespace internal | 1856 } // namespace internal |
1860 } // namespace v8 | 1857 } // namespace v8 |
1861 | 1858 |
1862 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ | 1859 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ |
OLD | NEW |