| Index: src/arm/assembler-thumb.cc
|
| diff --git a/src/arm/assembler-thumb.cc b/src/arm/assembler-thumb.cc
|
| index 8ddc14b71396c092d4151be9fc3283f012fa56f2..7cf59236889532a52a28faebb74bf7aee2222287 100644
|
| --- a/src/arm/assembler-thumb.cc
|
| +++ b/src/arm/assembler-thumb.cc
|
| @@ -1350,6 +1350,13 @@ void Assembler::ldr_pc_thumb(Register dst, const Operand& src) {
|
| ldr_thumb(dst, MemOperand(pc, 0));
|
| }
|
|
|
| +
|
| +bool Assembler::IsThumbLdrPcImmediateOffset(Instr instr) {
|
| + // Check the instruction is indeed a
|
| + // ldr<cond> <Rd>, [pc +/- offset_12].
|
| + return (instr & kThumbLdrPCMask) == kThumbLdrPCPattern;
|
| +}
|
| +
|
| } } // namespace v8::internal
|
|
|
| #endif // V8_TARGET_ARCH_ARM
|
|
|