| 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 1395 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1406 bool in_range = (ipc ^ static_cast<uint64_t>(target) >> | 1406 bool in_range = (ipc ^ static_cast<uint64_t>(target) >> |
| 1407 (kImm26Bits + kImmFieldShift)) == 0; | 1407 (kImm26Bits + kImmFieldShift)) == 0; |
| 1408 DCHECK(in_range && ((target & 3) == 0)); | 1408 DCHECK(in_range && ((target & 3) == 0)); |
| 1409 #endif | 1409 #endif |
| 1410 positions_recorder()->WriteRecordedPositions(); | 1410 positions_recorder()->WriteRecordedPositions(); |
| 1411 GenInstrJump(JAL, target >> 2); | 1411 GenInstrJump(JAL, target >> 2); |
| 1412 } | 1412 } |
| 1413 | 1413 |
| 1414 | 1414 |
| 1415 void Assembler::jalr(Register rs, Register rd) { | 1415 void Assembler::jalr(Register rs, Register rd) { |
| 1416 DCHECK(rs.code() != rd.code()); |
| 1416 BlockTrampolinePoolScope block_trampoline_pool(this); | 1417 BlockTrampolinePoolScope block_trampoline_pool(this); |
| 1417 positions_recorder()->WriteRecordedPositions(); | 1418 positions_recorder()->WriteRecordedPositions(); |
| 1418 GenInstrRegister(SPECIAL, rs, zero_reg, rd, 0, JALR); | 1419 GenInstrRegister(SPECIAL, rs, zero_reg, rd, 0, JALR); |
| 1419 BlockTrampolinePoolFor(1); // For associated delay slot. | 1420 BlockTrampolinePoolFor(1); // For associated delay slot. |
| 1420 } | 1421 } |
| 1421 | 1422 |
| 1422 | 1423 |
| 1423 void Assembler::j_or_jr(int64_t target, Register rs) { | 1424 void Assembler::j_or_jr(int64_t target, Register rs) { |
| 1424 // Get pc of delay slot. | 1425 // Get pc of delay slot. |
| 1425 uint64_t ipc = reinterpret_cast<uint64_t>(pc_ + 1 * kInstrSize); | 1426 uint64_t ipc = reinterpret_cast<uint64_t>(pc_ + 1 * kInstrSize); |
| (...skipping 1513 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2939 void Assembler::PopulateConstantPool(ConstantPoolArray* constant_pool) { | 2940 void Assembler::PopulateConstantPool(ConstantPoolArray* constant_pool) { |
| 2940 // No out-of-line constant pool support. | 2941 // No out-of-line constant pool support. |
| 2941 DCHECK(!FLAG_enable_ool_constant_pool); | 2942 DCHECK(!FLAG_enable_ool_constant_pool); |
| 2942 return; | 2943 return; |
| 2943 } | 2944 } |
| 2944 | 2945 |
| 2945 | 2946 |
| 2946 } } // namespace v8::internal | 2947 } } // namespace v8::internal |
| 2947 | 2948 |
| 2948 #endif // V8_TARGET_ARCH_MIPS64 | 2949 #endif // V8_TARGET_ARCH_MIPS64 |
| OLD | NEW |