| 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 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 177 host(), this, HeapObject::cast(target_code)); | 177 host(), this, HeapObject::cast(target_code)); |
| 178 } | 178 } |
| 179 } | 179 } |
| 180 | 180 |
| 181 | 181 |
| 182 Address Assembler::target_address_from_return_address(Address pc) { | 182 Address Assembler::target_address_from_return_address(Address pc) { |
| 183 return pc - kCallTargetAddressOffset; | 183 return pc - kCallTargetAddressOffset; |
| 184 } | 184 } |
| 185 | 185 |
| 186 | 186 |
| 187 Address Assembler::break_address_from_break_address(Address pc) { |
| 188 return pc - Assembler::kPatchDebugBreakSlotReturnOffset; |
| 189 } |
| 190 |
| 191 |
| 187 Object* RelocInfo::target_object() { | 192 Object* RelocInfo::target_object() { |
| 188 ASSERT(IsCodeTarget(rmode_) || rmode_ == EMBEDDED_OBJECT); | 193 ASSERT(IsCodeTarget(rmode_) || rmode_ == EMBEDDED_OBJECT); |
| 189 return reinterpret_cast<Object*>(Assembler::target_address_at(pc_, host_)); | 194 return reinterpret_cast<Object*>(Assembler::target_address_at(pc_, host_)); |
| 190 } | 195 } |
| 191 | 196 |
| 192 | 197 |
| 193 Handle<Object> RelocInfo::target_object_handle(Assembler* origin) { | 198 Handle<Object> RelocInfo::target_object_handle(Assembler* origin) { |
| 194 ASSERT(IsCodeTarget(rmode_) || rmode_ == EMBEDDED_OBJECT); | 199 ASSERT(IsCodeTarget(rmode_) || rmode_ == EMBEDDED_OBJECT); |
| 195 return Handle<Object>(reinterpret_cast<Object**>( | 200 return Handle<Object>(reinterpret_cast<Object**>( |
| 196 Assembler::target_address_at(pc_, host_))); | 201 Assembler::target_address_at(pc_, host_))); |
| (...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 443 } | 448 } |
| 444 *reinterpret_cast<uint64_t*>(pc_) = x; | 449 *reinterpret_cast<uint64_t*>(pc_) = x; |
| 445 pc_ += kInstrSize * 2; | 450 pc_ += kInstrSize * 2; |
| 446 CheckTrampolinePoolQuick(); | 451 CheckTrampolinePoolQuick(); |
| 447 } | 452 } |
| 448 | 453 |
| 449 | 454 |
| 450 } } // namespace v8::internal | 455 } } // namespace v8::internal |
| 451 | 456 |
| 452 #endif // V8_MIPS_ASSEMBLER_MIPS_INL_H_ | 457 #endif // V8_MIPS_ASSEMBLER_MIPS_INL_H_ |
| OLD | NEW |