Chromium Code Reviews| 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 1936 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1947 GenInstrImmediate(SWR, rs.rm(), rd, rs.offset_); | 1947 GenInstrImmediate(SWR, rs.rm(), rd, rs.offset_); |
| 1948 } | 1948 } |
| 1949 | 1949 |
| 1950 | 1950 |
| 1951 void Assembler::lui(Register rd, int32_t j) { | 1951 void Assembler::lui(Register rd, int32_t j) { |
| 1952 DCHECK(is_uint16(j)); | 1952 DCHECK(is_uint16(j)); |
| 1953 GenInstrImmediate(LUI, zero_reg, rd, j); | 1953 GenInstrImmediate(LUI, zero_reg, rd, j); |
| 1954 } | 1954 } |
| 1955 | 1955 |
| 1956 | 1956 |
| 1957 void Assembler::aui(Register rs, Register rt, int32_t j) { | 1957 void Assembler::aui(Register rt, Register rs, int32_t j) { |
| 1958 // This instruction uses same opcode as 'lui'. The difference in encoding is | 1958 // This instruction uses same opcode as 'lui'. The difference in encoding is |
| 1959 // 'lui' has zero reg. for rs field. | 1959 // 'lui' has zero reg. for rs field. |
| 1960 DCHECK(!(rs.is(zero_reg))); | 1960 DCHECK(!(rs.is(zero_reg))); |
|
balazs.kilvady
2015/11/26 17:10:50
The documantaison says 'In Release 6, LUI is an as
| |
| 1961 DCHECK(is_uint16(j)); | 1961 DCHECK(is_uint16(j)); |
| 1962 GenInstrImmediate(LUI, rs, rt, j); | 1962 GenInstrImmediate(LUI, rs, rt, j); |
| 1963 } | 1963 } |
| 1964 | 1964 |
| 1965 | 1965 |
| 1966 void Assembler::daui(Register rs, Register rt, int32_t j) { | 1966 void Assembler::daui(Register rt, Register rs, int32_t j) { |
| 1967 DCHECK(is_uint16(j)); | 1967 DCHECK(is_uint16(j)); |
| 1968 DCHECK(!rs.is(zero_reg)); | |
| 1968 GenInstrImmediate(DAUI, rs, rt, j); | 1969 GenInstrImmediate(DAUI, rs, rt, j); |
| 1969 } | 1970 } |
| 1970 | 1971 |
| 1971 | 1972 |
| 1972 void Assembler::dahi(Register rs, int32_t j) { | 1973 void Assembler::dahi(Register rs, int32_t j) { |
| 1973 DCHECK(is_uint16(j)); | 1974 DCHECK(is_uint16(j)); |
| 1974 GenInstrImmediate(REGIMM, rs, DAHI, j); | 1975 GenInstrImmediate(REGIMM, rs, DAHI, j); |
| 1975 } | 1976 } |
| 1976 | 1977 |
| 1977 | 1978 |
| (...skipping 1297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 3275 if (icache_flush_mode != SKIP_ICACHE_FLUSH) { | 3276 if (icache_flush_mode != SKIP_ICACHE_FLUSH) { |
| 3276 CpuFeatures::FlushICache(pc, 4 * Assembler::kInstrSize); | 3277 CpuFeatures::FlushICache(pc, 4 * Assembler::kInstrSize); |
| 3277 } | 3278 } |
| 3278 } | 3279 } |
| 3279 | 3280 |
| 3280 | 3281 |
| 3281 } // namespace internal | 3282 } // namespace internal |
| 3282 } // namespace v8 | 3283 } // namespace v8 |
| 3283 | 3284 |
| 3284 #endif // V8_TARGET_ARCH_MIPS64 | 3285 #endif // V8_TARGET_ARCH_MIPS64 |
| OLD | NEW |