| 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 1397 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1408 bool in_range = (ipc ^ static_cast<uint32_t>(target) >> | 1408 bool in_range = (ipc ^ static_cast<uint32_t>(target) >> |
| 1409 (kImm26Bits + kImmFieldShift)) == 0; | 1409 (kImm26Bits + kImmFieldShift)) == 0; |
| 1410 DCHECK(in_range && ((target & 3) == 0)); | 1410 DCHECK(in_range && ((target & 3) == 0)); |
| 1411 #endif | 1411 #endif |
| 1412 positions_recorder()->WriteRecordedPositions(); | 1412 positions_recorder()->WriteRecordedPositions(); |
| 1413 GenInstrJump(JAL, target >> 2); | 1413 GenInstrJump(JAL, target >> 2); |
| 1414 } | 1414 } |
| 1415 | 1415 |
| 1416 | 1416 |
| 1417 void Assembler::jalr(Register rs, Register rd) { | 1417 void Assembler::jalr(Register rs, Register rd) { |
| 1418 DCHECK(rs.code() != rd.code()); |
| 1418 BlockTrampolinePoolScope block_trampoline_pool(this); | 1419 BlockTrampolinePoolScope block_trampoline_pool(this); |
| 1419 positions_recorder()->WriteRecordedPositions(); | 1420 positions_recorder()->WriteRecordedPositions(); |
| 1420 GenInstrRegister(SPECIAL, rs, zero_reg, rd, 0, JALR); | 1421 GenInstrRegister(SPECIAL, rs, zero_reg, rd, 0, JALR); |
| 1421 BlockTrampolinePoolFor(1); // For associated delay slot. | 1422 BlockTrampolinePoolFor(1); // For associated delay slot. |
| 1422 } | 1423 } |
| 1423 | 1424 |
| 1424 | 1425 |
| 1425 void Assembler::j_or_jr(int32_t target, Register rs) { | 1426 void Assembler::j_or_jr(int32_t target, Register rs) { |
| 1426 // Get pc of delay slot. | 1427 // Get pc of delay slot. |
| 1427 uint32_t ipc = reinterpret_cast<uint32_t>(pc_ + 1 * kInstrSize); | 1428 uint32_t ipc = reinterpret_cast<uint32_t>(pc_ + 1 * kInstrSize); |
| (...skipping 1455 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2883 void Assembler::PopulateConstantPool(ConstantPoolArray* constant_pool) { | 2884 void Assembler::PopulateConstantPool(ConstantPoolArray* constant_pool) { |
| 2884 // No out-of-line constant pool support. | 2885 // No out-of-line constant pool support. |
| 2885 DCHECK(!FLAG_enable_ool_constant_pool); | 2886 DCHECK(!FLAG_enable_ool_constant_pool); |
| 2886 return; | 2887 return; |
| 2887 } | 2888 } |
| 2888 | 2889 |
| 2889 | 2890 |
| 2890 } } // namespace v8::internal | 2891 } } // namespace v8::internal |
| 2891 | 2892 |
| 2892 #endif // V8_TARGET_ARCH_MIPS | 2893 #endif // V8_TARGET_ARCH_MIPS |
| OLD | NEW |