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 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
258 Condition cond, | 258 Condition cond, |
259 Register reg, | 259 Register reg, |
260 const Operand& op); | 260 const Operand& op); |
261 | 261 |
262 // Swap two registers. If the scratch register is omitted then a slightly | 262 // Swap two registers. If the scratch register is omitted then a slightly |
263 // less efficient form using xor instead of mov is emitted. | 263 // less efficient form using xor instead of mov is emitted. |
264 void Swap(Register reg1, Register reg2, Register scratch = no_reg); | 264 void Swap(Register reg1, Register reg2, Register scratch = no_reg); |
265 | 265 |
266 void Call(Label* target); | 266 void Call(Label* target); |
267 | 267 |
| 268 void Move(Register dst, Handle<Object> handle) { li(dst, handle); } |
268 void Move(Register dst, Smi* smi) { li(dst, Operand(smi)); } | 269 void Move(Register dst, Smi* smi) { li(dst, Operand(smi)); } |
269 | 270 |
270 inline void Move(Register dst, Register src) { | 271 inline void Move(Register dst, Register src) { |
271 if (!dst.is(src)) { | 272 if (!dst.is(src)) { |
272 mov(dst, src); | 273 mov(dst, src); |
273 } | 274 } |
274 } | 275 } |
275 | 276 |
276 inline void Move(FPURegister dst, FPURegister src) { | 277 inline void Move(FPURegister dst, FPURegister src) { |
277 if (!dst.is(src)) { | 278 if (!dst.is(src)) { |
(...skipping 1682 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1960 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 1961 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
1961 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 1962 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
1962 #else | 1963 #else |
1963 #define ACCESS_MASM(masm) masm-> | 1964 #define ACCESS_MASM(masm) masm-> |
1964 #endif | 1965 #endif |
1965 | 1966 |
1966 } // namespace internal | 1967 } // namespace internal |
1967 } // namespace v8 | 1968 } // namespace v8 |
1968 | 1969 |
1969 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ | 1970 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ |
OLD | NEW |