| OLD | NEW |
| 1 // Copyright (c) 1994-2006 Sun Microsystems Inc. | 1 // Copyright (c) 1994-2006 Sun Microsystems Inc. |
| 2 // All Rights Reserved. | 2 // All Rights Reserved. |
| 3 // | 3 // |
| 4 // Redistribution and use in source and binary forms, with or without | 4 // Redistribution and use in source and binary forms, with or without |
| 5 // modification, are permitted provided that the following conditions are | 5 // modification, are permitted provided that the following conditions are |
| 6 // met: | 6 // met: |
| 7 // | 7 // |
| 8 // - Redistributions of source code must retain the above copyright notice, | 8 // - Redistributions of source code must retain the above copyright notice, |
| 9 // this list of conditions and the following disclaimer. | 9 // this list of conditions and the following disclaimer. |
| 10 // | 10 // |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 } | 126 } |
| 127 } | 127 } |
| 128 | 128 |
| 129 | 129 |
| 130 Object* RelocInfo::target_object() { | 130 Object* RelocInfo::target_object() { |
| 131 ASSERT(IsCodeTarget(rmode_) || rmode_ == EMBEDDED_OBJECT); | 131 ASSERT(IsCodeTarget(rmode_) || rmode_ == EMBEDDED_OBJECT); |
| 132 return reinterpret_cast<Object*>(Assembler::target_address_at(pc_)); | 132 return reinterpret_cast<Object*>(Assembler::target_address_at(pc_)); |
| 133 } | 133 } |
| 134 | 134 |
| 135 | 135 |
| 136 Handle<Object> RelocInfo::target_object_handle(Assembler *origin) { | 136 Handle<Object> RelocInfo::target_object_handle(Assembler* origin) { |
| 137 ASSERT(IsCodeTarget(rmode_) || rmode_ == EMBEDDED_OBJECT); | 137 ASSERT(IsCodeTarget(rmode_) || rmode_ == EMBEDDED_OBJECT); |
| 138 return Handle<Object>(reinterpret_cast<Object**>( | 138 return Handle<Object>(reinterpret_cast<Object**>( |
| 139 Assembler::target_address_at(pc_))); | 139 Assembler::target_address_at(pc_))); |
| 140 } | 140 } |
| 141 | 141 |
| 142 | 142 |
| 143 Object** RelocInfo::target_object_address() { | 143 Object** RelocInfo::target_object_address() { |
| 144 // Provide a "natural pointer" to the embedded object, | 144 // Provide a "natural pointer" to the embedded object, |
| 145 // which can be de-referenced during heap iteration. | 145 // which can be de-referenced during heap iteration. |
| 146 ASSERT(IsCodeTarget(rmode_) || rmode_ == EMBEDDED_OBJECT); | 146 ASSERT(IsCodeTarget(rmode_) || rmode_ == EMBEDDED_OBJECT); |
| (...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 335 } | 335 } |
| 336 *reinterpret_cast<Instr*>(pc_) = x; | 336 *reinterpret_cast<Instr*>(pc_) = x; |
| 337 pc_ += kInstrSize; | 337 pc_ += kInstrSize; |
| 338 CheckTrampolinePoolQuick(); | 338 CheckTrampolinePoolQuick(); |
| 339 } | 339 } |
| 340 | 340 |
| 341 | 341 |
| 342 } } // namespace v8::internal | 342 } } // namespace v8::internal |
| 343 | 343 |
| 344 #endif // V8_MIPS_ASSEMBLER_MIPS_INL_H_ | 344 #endif // V8_MIPS_ASSEMBLER_MIPS_INL_H_ |
| OLD | NEW |