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 1801 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1812 GenInstrImmediate(SWR, rs.rm(), rd, rs.offset_); | 1812 GenInstrImmediate(SWR, rs.rm(), rd, rs.offset_); |
1813 } | 1813 } |
1814 | 1814 |
1815 | 1815 |
1816 void Assembler::lui(Register rd, int32_t j) { | 1816 void Assembler::lui(Register rd, int32_t j) { |
1817 DCHECK(is_uint16(j)); | 1817 DCHECK(is_uint16(j)); |
1818 GenInstrImmediate(LUI, zero_reg, rd, j); | 1818 GenInstrImmediate(LUI, zero_reg, rd, j); |
1819 } | 1819 } |
1820 | 1820 |
1821 | 1821 |
1822 void Assembler::aui(Register rs, Register rt, int32_t j) { | 1822 void Assembler::aui(Register rt, Register rs, int32_t j) { |
1823 // This instruction uses same opcode as 'lui'. The difference in encoding is | 1823 // This instruction uses same opcode as 'lui'. The difference in encoding is |
1824 // 'lui' has zero reg. for rs field. | 1824 // 'lui' has zero reg. for rs field. |
1825 DCHECK(!(rs.is(zero_reg))); | 1825 DCHECK(!(rs.is(zero_reg))); |
1826 DCHECK(is_uint16(j)); | 1826 DCHECK(is_uint16(j)); |
1827 GenInstrImmediate(LUI, rs, rt, j); | 1827 GenInstrImmediate(LUI, rs, rt, j); |
1828 } | 1828 } |
1829 | 1829 |
1830 | 1830 |
1831 // ---------PC-Relative instructions----------- | 1831 // ---------PC-Relative instructions----------- |
1832 | 1832 |
(...skipping 1214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3047 | 3047 |
3048 if (icache_flush_mode != SKIP_ICACHE_FLUSH) { | 3048 if (icache_flush_mode != SKIP_ICACHE_FLUSH) { |
3049 Assembler::FlushICache(isolate, pc, 2 * sizeof(int32_t)); | 3049 Assembler::FlushICache(isolate, pc, 2 * sizeof(int32_t)); |
3050 } | 3050 } |
3051 } | 3051 } |
3052 | 3052 |
3053 } // namespace internal | 3053 } // namespace internal |
3054 } // namespace v8 | 3054 } // namespace v8 |
3055 | 3055 |
3056 #endif // V8_TARGET_ARCH_MIPS | 3056 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |