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 1991 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2002 } | 2002 } |
2003 | 2003 |
2004 | 2004 |
2005 void Assembler::tne(Register rs, Register rt, uint16_t code) { | 2005 void Assembler::tne(Register rs, Register rt, uint16_t code) { |
2006 DCHECK(is_uint10(code)); | 2006 DCHECK(is_uint10(code)); |
2007 Instr instr = | 2007 Instr instr = |
2008 SPECIAL | TNE | rs.code() << kRsShift | rt.code() << kRtShift | code << 6; | 2008 SPECIAL | TNE | rs.code() << kRsShift | rt.code() << kRtShift | code << 6; |
2009 emit(instr); | 2009 emit(instr); |
2010 } | 2010 } |
2011 | 2011 |
| 2012 void Assembler::sync() { |
| 2013 Instr sync_instr = SPECIAL | SYNC; |
| 2014 emit(sync_instr); |
| 2015 } |
2012 | 2016 |
2013 // Move from HI/LO register. | 2017 // Move from HI/LO register. |
2014 | 2018 |
2015 void Assembler::mfhi(Register rd) { | 2019 void Assembler::mfhi(Register rd) { |
2016 GenInstrRegister(SPECIAL, zero_reg, zero_reg, rd, 0, MFHI); | 2020 GenInstrRegister(SPECIAL, zero_reg, zero_reg, rd, 0, MFHI); |
2017 } | 2021 } |
2018 | 2022 |
2019 | 2023 |
2020 void Assembler::mflo(Register rd) { | 2024 void Assembler::mflo(Register rd) { |
2021 GenInstrRegister(SPECIAL, zero_reg, zero_reg, rd, 0, MFLO); | 2025 GenInstrRegister(SPECIAL, zero_reg, zero_reg, rd, 0, MFLO); |
(...skipping 1130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3152 | 3156 |
3153 if (icache_flush_mode != SKIP_ICACHE_FLUSH) { | 3157 if (icache_flush_mode != SKIP_ICACHE_FLUSH) { |
3154 Assembler::FlushICache(isolate, pc, 2 * sizeof(int32_t)); | 3158 Assembler::FlushICache(isolate, pc, 2 * sizeof(int32_t)); |
3155 } | 3159 } |
3156 } | 3160 } |
3157 | 3161 |
3158 } // namespace internal | 3162 } // namespace internal |
3159 } // namespace v8 | 3163 } // namespace v8 |
3160 | 3164 |
3161 #endif // V8_TARGET_ARCH_MIPS | 3165 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |