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 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
149 // return the end of the instructions to be patched, allowing the | 149 // return the end of the instructions to be patched, allowing the |
150 // deserializer to deserialize the instructions as raw bytes and put them in | 150 // deserializer to deserialize the instructions as raw bytes and put them in |
151 // place, ready to be patched with the target. After jump optimization, | 151 // place, ready to be patched with the target. After jump optimization, |
152 // that is the address of the instruction that follows J/JAL/JR/JALR | 152 // that is the address of the instruction that follows J/JAL/JR/JALR |
153 // instruction. | 153 // instruction. |
154 return reinterpret_cast<Address>( | 154 return reinterpret_cast<Address>( |
155 pc_ + Assembler::kInstructionsFor32BitConstant * Assembler::kInstrSize); | 155 pc_ + Assembler::kInstructionsFor32BitConstant * Assembler::kInstrSize); |
156 } | 156 } |
157 | 157 |
158 | 158 |
| 159 Address RelocInfo::constant_pool_entry_address() { |
| 160 UNREACHABLE(); |
| 161 return NULL; |
| 162 } |
| 163 |
| 164 |
159 int RelocInfo::target_address_size() { | 165 int RelocInfo::target_address_size() { |
160 return Assembler::kSpecialTargetSize; | 166 return Assembler::kSpecialTargetSize; |
161 } | 167 } |
162 | 168 |
163 | 169 |
164 void RelocInfo::set_target_address(Address target, WriteBarrierMode mode) { | 170 void RelocInfo::set_target_address(Address target, WriteBarrierMode mode) { |
165 ASSERT(IsCodeTarget(rmode_) || IsRuntimeEntry(rmode_)); | 171 ASSERT(IsCodeTarget(rmode_) || IsRuntimeEntry(rmode_)); |
166 Assembler::set_target_address_at(pc_, target); | 172 Assembler::set_target_address_at(pc_, target); |
167 if (mode == UPDATE_WRITE_BARRIER && host() != NULL && IsCodeTarget(rmode_)) { | 173 if (mode == UPDATE_WRITE_BARRIER && host() != NULL && IsCodeTarget(rmode_)) { |
168 Object* target_code = Code::GetCodeFromTargetAddress(target); | 174 Object* target_code = Code::GetCodeFromTargetAddress(target); |
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
418 } | 424 } |
419 *reinterpret_cast<Instr*>(pc_) = x; | 425 *reinterpret_cast<Instr*>(pc_) = x; |
420 pc_ += kInstrSize; | 426 pc_ += kInstrSize; |
421 CheckTrampolinePoolQuick(); | 427 CheckTrampolinePoolQuick(); |
422 } | 428 } |
423 | 429 |
424 | 430 |
425 } } // namespace v8::internal | 431 } } // namespace v8::internal |
426 | 432 |
427 #endif // V8_MIPS_ASSEMBLER_MIPS_INL_H_ | 433 #endif // V8_MIPS_ASSEMBLER_MIPS_INL_H_ |
OLD | NEW |