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

Side by Side Diff: src/mips64/assembler-mips64.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 | « src/mips64/assembler-mips64.h ('k') | src/mips64/constants-mips64.h » ('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 1937 matching lines...) Expand 10 before | Expand all | Expand 10 after
1948 GenInstrImmediate(SWR, rs.rm(), rd, rs.offset_); 1948 GenInstrImmediate(SWR, rs.rm(), rd, rs.offset_);
1949 } 1949 }
1950 1950
1951 1951
1952 void Assembler::lui(Register rd, int32_t j) { 1952 void Assembler::lui(Register rd, int32_t j) {
1953 DCHECK(is_uint16(j)); 1953 DCHECK(is_uint16(j));
1954 GenInstrImmediate(LUI, zero_reg, rd, j); 1954 GenInstrImmediate(LUI, zero_reg, rd, j);
1955 } 1955 }
1956 1956
1957 1957
1958 void Assembler::aui(Register rs, Register rt, int32_t j) { 1958 void Assembler::aui(Register rt, Register rs, int32_t j) {
1959 // This instruction uses same opcode as 'lui'. The difference in encoding is 1959 // This instruction uses same opcode as 'lui'. The difference in encoding is
1960 // 'lui' has zero reg. for rs field. 1960 // 'lui' has zero reg. for rs field.
1961 DCHECK(!(rs.is(zero_reg)));
1962 DCHECK(is_uint16(j)); 1961 DCHECK(is_uint16(j));
1963 GenInstrImmediate(LUI, rs, rt, j); 1962 GenInstrImmediate(LUI, rs, rt, j);
1964 } 1963 }
1965 1964
1966 1965
1967 void Assembler::daui(Register rs, Register rt, int32_t j) { 1966 void Assembler::daui(Register rt, Register rs, int32_t j) {
1968 DCHECK(is_uint16(j)); 1967 DCHECK(is_uint16(j));
1968 DCHECK(!rs.is(zero_reg));
1969 GenInstrImmediate(DAUI, rs, rt, j); 1969 GenInstrImmediate(DAUI, rs, rt, j);
1970 } 1970 }
1971 1971
1972 1972
1973 void Assembler::dahi(Register rs, int32_t j) { 1973 void Assembler::dahi(Register rs, int32_t j) {
1974 DCHECK(is_uint16(j)); 1974 DCHECK(is_uint16(j));
1975 GenInstrImmediate(REGIMM, rs, DAHI, j); 1975 GenInstrImmediate(REGIMM, rs, DAHI, j);
1976 } 1976 }
1977 1977
1978 1978
(...skipping 1296 matching lines...) Expand 10 before | Expand all | Expand 10 after
3275 if (icache_flush_mode != SKIP_ICACHE_FLUSH) { 3275 if (icache_flush_mode != SKIP_ICACHE_FLUSH) {
3276 Assembler::FlushICache(isolate, pc, 4 * Assembler::kInstrSize); 3276 Assembler::FlushICache(isolate, pc, 4 * Assembler::kInstrSize);
3277 } 3277 }
3278 } 3278 }
3279 3279
3280 3280
3281 } // namespace internal 3281 } // namespace internal
3282 } // namespace v8 3282 } // namespace v8
3283 3283
3284 #endif // V8_TARGET_ARCH_MIPS64 3284 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « src/mips64/assembler-mips64.h ('k') | src/mips64/constants-mips64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698