| 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 1414 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1425 bool in_range = (ipc ^ static_cast<uint32_t>(target) >> | 1425 bool in_range = (ipc ^ static_cast<uint32_t>(target) >> |
| 1426 (kImm26Bits + kImmFieldShift)) == 0; | 1426 (kImm26Bits + kImmFieldShift)) == 0; |
| 1427 DCHECK(in_range && ((target & 3) == 0)); | 1427 DCHECK(in_range && ((target & 3) == 0)); |
| 1428 #endif | 1428 #endif |
| 1429 positions_recorder()->WriteRecordedPositions(); | 1429 positions_recorder()->WriteRecordedPositions(); |
| 1430 GenInstrJump(JAL, target >> 2); | 1430 GenInstrJump(JAL, target >> 2); |
| 1431 } | 1431 } |
| 1432 | 1432 |
| 1433 | 1433 |
| 1434 void Assembler::jalr(Register rs, Register rd) { | 1434 void Assembler::jalr(Register rs, Register rd) { |
| 1435 DCHECK(rs.code() != rd.code()); |
| 1435 BlockTrampolinePoolScope block_trampoline_pool(this); | 1436 BlockTrampolinePoolScope block_trampoline_pool(this); |
| 1436 positions_recorder()->WriteRecordedPositions(); | 1437 positions_recorder()->WriteRecordedPositions(); |
| 1437 GenInstrRegister(SPECIAL, rs, zero_reg, rd, 0, JALR); | 1438 GenInstrRegister(SPECIAL, rs, zero_reg, rd, 0, JALR); |
| 1438 BlockTrampolinePoolFor(1); // For associated delay slot. | 1439 BlockTrampolinePoolFor(1); // For associated delay slot. |
| 1439 } | 1440 } |
| 1440 | 1441 |
| 1441 | 1442 |
| 1442 void Assembler::j_or_jr(int32_t target, Register rs) { | 1443 void Assembler::j_or_jr(int32_t target, Register rs) { |
| 1443 // Get pc of delay slot. | 1444 // Get pc of delay slot. |
| 1444 uint32_t ipc = reinterpret_cast<uint32_t>(pc_ + 1 * kInstrSize); | 1445 uint32_t ipc = reinterpret_cast<uint32_t>(pc_ + 1 * kInstrSize); |
| (...skipping 1304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2749 void Assembler::PopulateConstantPool(ConstantPoolArray* constant_pool) { | 2750 void Assembler::PopulateConstantPool(ConstantPoolArray* constant_pool) { |
| 2750 // No out-of-line constant pool support. | 2751 // No out-of-line constant pool support. |
| 2751 DCHECK(!FLAG_enable_ool_constant_pool); | 2752 DCHECK(!FLAG_enable_ool_constant_pool); |
| 2752 return; | 2753 return; |
| 2753 } | 2754 } |
| 2754 | 2755 |
| 2755 | 2756 |
| 2756 } } // namespace v8::internal | 2757 } } // namespace v8::internal |
| 2757 | 2758 |
| 2758 #endif // V8_TARGET_ARCH_MIPS | 2759 #endif // V8_TARGET_ARCH_MIPS |
| OLD | NEW |