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

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

Issue 1899783003: MIPS: [Atomics] Remove Atomics code stubs; use TF ops. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 8 months 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 2237 matching lines...) Expand 10 before | Expand all | Expand 10 after
2248 } 2248 }
2249 2249
2250 2250
2251 void Assembler::tne(Register rs, Register rt, uint16_t code) { 2251 void Assembler::tne(Register rs, Register rt, uint16_t code) {
2252 DCHECK(is_uint10(code)); 2252 DCHECK(is_uint10(code));
2253 Instr instr = 2253 Instr instr =
2254 SPECIAL | TNE | rs.code() << kRsShift | rt.code() << kRtShift | code << 6; 2254 SPECIAL | TNE | rs.code() << kRsShift | rt.code() << kRtShift | code << 6;
2255 emit(instr); 2255 emit(instr);
2256 } 2256 }
2257 2257
2258 void Assembler::sync() {
2259 Instr sync_instr = SPECIAL | SYNC;
2260 emit(sync_instr);
2261 }
2258 2262
2259 // Move from HI/LO register. 2263 // Move from HI/LO register.
2260 2264
2261 void Assembler::mfhi(Register rd) { 2265 void Assembler::mfhi(Register rd) {
2262 GenInstrRegister(SPECIAL, zero_reg, zero_reg, rd, 0, MFHI); 2266 GenInstrRegister(SPECIAL, zero_reg, zero_reg, rd, 0, MFHI);
2263 } 2267 }
2264 2268
2265 2269
2266 void Assembler::mflo(Register rd) { 2270 void Assembler::mflo(Register rd) {
2267 GenInstrRegister(SPECIAL, zero_reg, zero_reg, rd, 0, MFLO); 2271 GenInstrRegister(SPECIAL, zero_reg, zero_reg, rd, 0, MFLO);
(...skipping 1124 matching lines...) Expand 10 before | Expand all | Expand 10 after
3392 if (icache_flush_mode != SKIP_ICACHE_FLUSH) { 3396 if (icache_flush_mode != SKIP_ICACHE_FLUSH) {
3393 Assembler::FlushICache(isolate, pc, 4 * Assembler::kInstrSize); 3397 Assembler::FlushICache(isolate, pc, 4 * Assembler::kInstrSize);
3394 } 3398 }
3395 } 3399 }
3396 3400
3397 3401
3398 } // namespace internal 3402 } // namespace internal
3399 } // namespace v8 3403 } // namespace v8
3400 3404
3401 #endif // V8_TARGET_ARCH_MIPS64 3405 #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