OLD | NEW |
1 // Copyright (c) 1994-2006 Sun Microsystems Inc. | 1 // Copyright (c) 1994-2006 Sun Microsystems Inc. |
2 // All Rights Reserved. | 2 // All Rights Reserved. |
3 // | 3 // |
4 // Redistribution and use in source and binary forms, with or without | 4 // Redistribution and use in source and binary forms, with or without |
5 // modification, are permitted provided that the following conditions are | 5 // modification, are permitted provided that the following conditions are |
6 // met: | 6 // met: |
7 // | 7 // |
8 // - Redistributions of source code must retain the above copyright notice, | 8 // - Redistributions of source code must retain the above copyright notice, |
9 // this list of conditions and the following disclaimer. | 9 // this list of conditions and the following disclaimer. |
10 // | 10 // |
(...skipping 2237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2248 } | 2248 } |
2249 | 2249 |
2250 | 2250 |
2251 void Assembler::tne(Register rs, Register rt, uint16_t code) { | 2251 void Assembler::tne(Register rs, Register rt, uint16_t code) { |
2252 DCHECK(is_uint10(code)); | 2252 DCHECK(is_uint10(code)); |
2253 Instr instr = | 2253 Instr instr = |
2254 SPECIAL | TNE | rs.code() << kRsShift | rt.code() << kRtShift | code << 6; | 2254 SPECIAL | TNE | rs.code() << kRsShift | rt.code() << kRtShift | code << 6; |
2255 emit(instr); | 2255 emit(instr); |
2256 } | 2256 } |
2257 | 2257 |
| 2258 void Assembler::sync() { |
| 2259 Instr sync_instr = SPECIAL | SYNC; |
| 2260 emit(sync_instr); |
| 2261 } |
2258 | 2262 |
2259 // Move from HI/LO register. | 2263 // Move from HI/LO register. |
2260 | 2264 |
2261 void Assembler::mfhi(Register rd) { | 2265 void Assembler::mfhi(Register rd) { |
2262 GenInstrRegister(SPECIAL, zero_reg, zero_reg, rd, 0, MFHI); | 2266 GenInstrRegister(SPECIAL, zero_reg, zero_reg, rd, 0, MFHI); |
2263 } | 2267 } |
2264 | 2268 |
2265 | 2269 |
2266 void Assembler::mflo(Register rd) { | 2270 void Assembler::mflo(Register rd) { |
2267 GenInstrRegister(SPECIAL, zero_reg, zero_reg, rd, 0, MFLO); | 2271 GenInstrRegister(SPECIAL, zero_reg, zero_reg, rd, 0, MFLO); |
(...skipping 1124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3392 if (icache_flush_mode != SKIP_ICACHE_FLUSH) { | 3396 if (icache_flush_mode != SKIP_ICACHE_FLUSH) { |
3393 Assembler::FlushICache(isolate, pc, 4 * Assembler::kInstrSize); | 3397 Assembler::FlushICache(isolate, pc, 4 * Assembler::kInstrSize); |
3394 } | 3398 } |
3395 } | 3399 } |
3396 | 3400 |
3397 | 3401 |
3398 } // namespace internal | 3402 } // namespace internal |
3399 } // namespace v8 | 3403 } // namespace v8 |
3400 | 3404 |
3401 #endif // V8_TARGET_ARCH_MIPS64 | 3405 #endif // V8_TARGET_ARCH_MIPS64 |
OLD | NEW |