Index: src/arm/macro-assembler-arm.cc |
diff --git a/src/arm/macro-assembler-arm.cc b/src/arm/macro-assembler-arm.cc |
index a8d4b7ccd458d2e26ec54ee5c40ff3f1a51d0d20..3623170c19f84af735794a31dc34f9c20c66a67d 100644 |
--- a/src/arm/macro-assembler-arm.cc |
+++ b/src/arm/macro-assembler-arm.cc |
@@ -3617,15 +3617,9 @@ void MacroAssembler::GetRelocatedValueLocation(Register ldr_location, |
ldr(result, MemOperand(ldr_location)); |
if (emit_debug_code()) { |
// Check that the instruction is a ldr reg, [<pc or pp> + offset] . |
- if (FLAG_enable_ool_constant_pool) { |
- and_(result, result, Operand(kLdrPpPattern)); |
- cmp(result, Operand(kLdrPpPattern)); |
- Check(eq, kTheInstructionToPatchShouldBeALoadFromPp); |
- } else { |
- and_(result, result, Operand(kLdrPCPattern)); |
- cmp(result, Operand(kLdrPCPattern)); |
- Check(eq, kTheInstructionToPatchShouldBeALoadFromPc); |
- } |
+ and_(result, result, Operand(GetConsantPoolLoadPattern())); |
+ cmp(result, Operand(GetConsantPoolLoadPattern())); |
+ Check(eq, kTheInstructionToPatchShouldBeALoadFromConstantPool); |
// Result was clobbered. Restore it. |
ldr(result, MemOperand(ldr_location)); |
} |