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

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

Issue 1222283002: Version 4.4.63.13 (cherry-pick) (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@4.4
Patch Set: Created 5 years, 5 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/mips/code-stubs-mips.cc ('k') | src/mips64/code-stubs-mips64.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 1378 matching lines...) Expand 10 before | Expand all | Expand 10 after
1389 bool in_range = (ipc ^ static_cast<uint64_t>(target) >> 1389 bool in_range = (ipc ^ static_cast<uint64_t>(target) >>
1390 (kImm26Bits + kImmFieldShift)) == 0; 1390 (kImm26Bits + kImmFieldShift)) == 0;
1391 DCHECK(in_range && ((target & 3) == 0)); 1391 DCHECK(in_range && ((target & 3) == 0));
1392 #endif 1392 #endif
1393 positions_recorder()->WriteRecordedPositions(); 1393 positions_recorder()->WriteRecordedPositions();
1394 GenInstrJump(JAL, target >> 2); 1394 GenInstrJump(JAL, target >> 2);
1395 } 1395 }
1396 1396
1397 1397
1398 void Assembler::jalr(Register rs, Register rd) { 1398 void Assembler::jalr(Register rs, Register rd) {
1399 DCHECK(rs.code() != rd.code());
1399 BlockTrampolinePoolScope block_trampoline_pool(this); 1400 BlockTrampolinePoolScope block_trampoline_pool(this);
1400 positions_recorder()->WriteRecordedPositions(); 1401 positions_recorder()->WriteRecordedPositions();
1401 GenInstrRegister(SPECIAL, rs, zero_reg, rd, 0, JALR); 1402 GenInstrRegister(SPECIAL, rs, zero_reg, rd, 0, JALR);
1402 BlockTrampolinePoolFor(1); // For associated delay slot. 1403 BlockTrampolinePoolFor(1); // For associated delay slot.
1403 } 1404 }
1404 1405
1405 1406
1406 void Assembler::j_or_jr(int64_t target, Register rs) { 1407 void Assembler::j_or_jr(int64_t target, Register rs) {
1407 // Get pc of delay slot. 1408 // Get pc of delay slot.
1408 uint64_t ipc = reinterpret_cast<uint64_t>(pc_ + 1 * kInstrSize); 1409 uint64_t ipc = reinterpret_cast<uint64_t>(pc_ + 1 * kInstrSize);
(...skipping 1562 matching lines...) Expand 10 before | Expand all | Expand 10 after
2971 void Assembler::PopulateConstantPool(ConstantPoolArray* constant_pool) { 2972 void Assembler::PopulateConstantPool(ConstantPoolArray* constant_pool) {
2972 // No out-of-line constant pool support. 2973 // No out-of-line constant pool support.
2973 DCHECK(!FLAG_enable_ool_constant_pool); 2974 DCHECK(!FLAG_enable_ool_constant_pool);
2974 return; 2975 return;
2975 } 2976 }
2976 2977
2977 2978
2978 } } // namespace v8::internal 2979 } } // namespace v8::internal
2979 2980
2980 #endif // V8_TARGET_ARCH_MIPS64 2981 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « src/mips/code-stubs-mips.cc ('k') | src/mips64/code-stubs-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698