Index: src/mips/assembler-mips.cc |
diff --git a/src/mips/assembler-mips.cc b/src/mips/assembler-mips.cc |
index 6831b0b0d370b2e32dd8d625460e90225737f61e..f069f0e10412edddc1ba577a46c3f0f04de4be88 100644 |
--- a/src/mips/assembler-mips.cc |
+++ b/src/mips/assembler-mips.cc |
@@ -1442,6 +1442,7 @@ void Assembler::jal(int32_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); |