Index: src/mips64/assembler-mips64.cc |
diff --git a/src/mips64/assembler-mips64.cc b/src/mips64/assembler-mips64.cc |
index 12f3044d65066a5de04bf8cefeadff7da4d2a956..36de2863137c4b81c7ccd378e81de9a3975b70ef 100644 |
--- a/src/mips64/assembler-mips64.cc |
+++ b/src/mips64/assembler-mips64.cc |
@@ -1448,6 +1448,7 @@ void Assembler::jal(int64_t target) { |
void Assembler::jalr(Register rs, Register rd) { |
+ DCHECK(rs.code() != rd.code()); |
BlockTrampolinePoolScope block_trampoline_pool(this); |
positions_recorder()->WriteRecordedPositions(); |
GenInstrRegister(SPECIAL, rs, zero_reg, rd, 0, JALR); |