| OLD | NEW |
| 1 | 1 |
| 2 // Copyright (c) 1994-2006 Sun Microsystems Inc. | 2 // Copyright (c) 1994-2006 Sun Microsystems Inc. |
| 3 // All Rights Reserved. | 3 // All Rights Reserved. |
| 4 // | 4 // |
| 5 // Redistribution and use in source and binary forms, with or without | 5 // Redistribution and use in source and binary forms, with or without |
| 6 // modification, are permitted provided that the following conditions are | 6 // modification, are permitted provided that the following conditions are |
| 7 // met: | 7 // met: |
| 8 // | 8 // |
| 9 // - Redistributions of source code must retain the above copyright notice, | 9 // - Redistributions of source code must retain the above copyright notice, |
| 10 // this list of conditions and the following disclaimer. | 10 // this list of conditions and the following disclaimer. |
| (...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 183 host(), this, HeapObject::cast(target_code)); | 183 host(), this, HeapObject::cast(target_code)); |
| 184 } | 184 } |
| 185 } | 185 } |
| 186 | 186 |
| 187 | 187 |
| 188 Address Assembler::target_address_from_return_address(Address pc) { | 188 Address Assembler::target_address_from_return_address(Address pc) { |
| 189 return pc - kCallTargetAddressOffset; | 189 return pc - kCallTargetAddressOffset; |
| 190 } | 190 } |
| 191 | 191 |
| 192 | 192 |
| 193 Address Assembler::break_address_from_return_address(Address pc) { |
| 194 return pc - Assembler::kPatchDebugBreakSlotReturnOffset; |
| 195 } |
| 196 |
| 197 |
| 193 Object* RelocInfo::target_object() { | 198 Object* RelocInfo::target_object() { |
| 194 ASSERT(IsCodeTarget(rmode_) || rmode_ == EMBEDDED_OBJECT); | 199 ASSERT(IsCodeTarget(rmode_) || rmode_ == EMBEDDED_OBJECT); |
| 195 return reinterpret_cast<Object*>(Assembler::target_address_at(pc_, host_)); | 200 return reinterpret_cast<Object*>(Assembler::target_address_at(pc_, host_)); |
| 196 } | 201 } |
| 197 | 202 |
| 198 | 203 |
| 199 Handle<Object> RelocInfo::target_object_handle(Assembler* origin) { | 204 Handle<Object> RelocInfo::target_object_handle(Assembler* origin) { |
| 200 ASSERT(IsCodeTarget(rmode_) || rmode_ == EMBEDDED_OBJECT); | 205 ASSERT(IsCodeTarget(rmode_) || rmode_ == EMBEDDED_OBJECT); |
| 201 return Handle<Object>(reinterpret_cast<Object**>( | 206 return Handle<Object>(reinterpret_cast<Object**>( |
| 202 Assembler::target_address_at(pc_, host_))); | 207 Assembler::target_address_at(pc_, host_))); |
| (...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 436 } | 441 } |
| 437 *reinterpret_cast<Instr*>(pc_) = x; | 442 *reinterpret_cast<Instr*>(pc_) = x; |
| 438 pc_ += kInstrSize; | 443 pc_ += kInstrSize; |
| 439 CheckTrampolinePoolQuick(); | 444 CheckTrampolinePoolQuick(); |
| 440 } | 445 } |
| 441 | 446 |
| 442 | 447 |
| 443 } } // namespace v8::internal | 448 } } // namespace v8::internal |
| 444 | 449 |
| 445 #endif // V8_MIPS_ASSEMBLER_MIPS_INL_H_ | 450 #endif // V8_MIPS_ASSEMBLER_MIPS_INL_H_ |
| OLD | NEW |