Index: src/arm/assembler-arm-inl.h |
diff --git a/src/arm/assembler-arm-inl.h b/src/arm/assembler-arm-inl.h |
index 287ed09dce92b0dea4832d95cccb89354ab50942..f5612e463cf789cc58a458f70ad713d849ae964e 100644 |
--- a/src/arm/assembler-arm-inl.h |
+++ b/src/arm/assembler-arm-inl.h |
@@ -222,7 +222,7 @@ void RelocInfo::set_target_cell(Cell* cell, WriteBarrierMode mode) { |
} |
-static const int kNoCodeAgeSequenceLength = 3; |
+static const int kNoCodeAgeSequenceLength = 3 * Assembler::kInstrSize; |
Handle<Object> RelocInfo::code_age_stub_handle(Assembler* origin) { |
@@ -234,15 +234,15 @@ Handle<Object> RelocInfo::code_age_stub_handle(Assembler* origin) { |
Code* RelocInfo::code_age_stub() { |
ASSERT(rmode_ == RelocInfo::CODE_AGE_SEQUENCE); |
return Code::GetCodeFromTargetAddress( |
- Memory::Address_at(pc_ + Assembler::kInstrSize * |
- (kNoCodeAgeSequenceLength - 1))); |
+ Memory::Address_at(pc_ + |
+ (kNoCodeAgeSequenceLength - Assembler::kInstrSize))); |
} |
void RelocInfo::set_code_age_stub(Code* stub) { |
ASSERT(rmode_ == RelocInfo::CODE_AGE_SEQUENCE); |
- Memory::Address_at(pc_ + Assembler::kInstrSize * |
- (kNoCodeAgeSequenceLength - 1)) = |
+ Memory::Address_at(pc_ + |
+ (kNoCodeAgeSequenceLength - Assembler::kInstrSize)) = |
stub->instruction_start(); |
} |