Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(63)

Side by Side Diff: src/mips/assembler-mips.cc

Issue 1481493002: (mips) adding simulator support for AUI/DAUI/DAHI/DATI instructions. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fix mips64 compilation error. Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | src/mips/disasm-mips.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | src/mips/disasm-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698