| Index: src/arm/assembler-arm-inl.h
|
| ===================================================================
|
| --- src/arm/assembler-arm-inl.h (revision 5180)
|
| +++ src/arm/assembler-arm-inl.h (working copy)
|
| @@ -120,9 +120,8 @@
|
|
|
|
|
| void RelocInfo::set_call_address(Address target) {
|
| - ASSERT(IsPatchedReturnSequence());
|
| - // The 2 instructions offset assumes patched return sequence.
|
| - ASSERT(IsJSReturn(rmode()));
|
| + ASSERT((IsJSReturn(rmode()) && IsPatchedReturnSequence()) ||
|
| + (IsDebugBreakSlot(rmode()) && IsPatchedDebugBreakSlotSequence()));
|
| Memory::Address_at(pc_ + 2 * Assembler::kInstrSize) = target;
|
| }
|
|
|
| @@ -132,16 +131,15 @@
|
| }
|
|
|
|
|
| -Object** RelocInfo::call_object_address() {
|
| - ASSERT(IsPatchedReturnSequence());
|
| - // The 2 instructions offset assumes patched return sequence.
|
| - ASSERT(IsJSReturn(rmode()));
|
| - return reinterpret_cast<Object**>(pc_ + 2 * Assembler::kInstrSize);
|
| +void RelocInfo::set_call_object(Object* target) {
|
| + *call_object_address() = target;
|
| }
|
|
|
|
|
| -void RelocInfo::set_call_object(Object* target) {
|
| - *call_object_address() = target;
|
| +Object** RelocInfo::call_object_address() {
|
| + ASSERT((IsJSReturn(rmode()) && IsPatchedReturnSequence()) ||
|
| + (IsDebugBreakSlot(rmode()) && IsPatchedDebugBreakSlotSequence()));
|
| + return reinterpret_cast<Object**>(pc_ + 2 * Assembler::kInstrSize);
|
| }
|
|
|
|
|
|
|