Index: runtime/vm/instructions_arm.cc |
diff --git a/runtime/vm/instructions_arm.cc b/runtime/vm/instructions_arm.cc |
index a385a075bbb8397b0072c6d0410cf2802a90584f..a3abab897714ccba0147ce701268f4033f93c213 100644 |
--- a/runtime/vm/instructions_arm.cc |
+++ b/runtime/vm/instructions_arm.cc |
@@ -258,15 +258,15 @@ SwitchableCallPattern::SwitchableCallPattern(uword pc, const Code& code) |
ASSERT(*(reinterpret_cast<uword*>(pc) - 1) == 0xe12fff3e); |
Register reg; |
- uword stub_load_end = |
- InstructionPattern::DecodeLoadWordFromPool(pc - 2 * Instr::kInstrSize, |
+ uword data_load_end = |
+ InstructionPattern::DecodeLoadWordFromPool(pc - Instr::kInstrSize, |
®, |
- &target_pool_index_); |
- ASSERT(reg == CODE_REG); |
- InstructionPattern::DecodeLoadWordFromPool(stub_load_end, |
- ®, |
- &data_pool_index_); |
+ &data_pool_index_); |
ASSERT(reg == R9); |
+ InstructionPattern::DecodeLoadWordFromPool(data_load_end - Instr::kInstrSize, |
+ ®, |
+ &target_pool_index_); |
+ ASSERT(reg == CODE_REG); |
} |