Index: src/arm/assembler-arm.cc |
diff --git a/src/arm/assembler-arm.cc b/src/arm/assembler-arm.cc |
index 4171f7dcdf8d2e9bc9aa36647fd365a69352f91a..35279e557c8a99d8daccf713b4c3be4e1892d8a9 100644 |
--- a/src/arm/assembler-arm.cc |
+++ b/src/arm/assembler-arm.cc |
@@ -3079,6 +3079,11 @@ bool Assembler::ImmediateFitsAddrMode1Instruction(int32_t imm32) { |
} |
+bool Assembler::ImmediateFitsAddrMode2Instruction(int32_t imm32) { |
+ return is_uint12(abs(imm32)); |
+} |
+ |
+ |
// Debugging. |
void Assembler::RecordJSReturn() { |
positions_recorder()->WriteRecordedPositions(); |