| 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 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 224 } | 224 } |
| 225 | 225 |
| 226 | 226 |
| 227 Address* RelocInfo::target_reference_address() { | 227 Address* RelocInfo::target_reference_address() { |
| 228 ASSERT(rmode_ == EXTERNAL_REFERENCE); | 228 ASSERT(rmode_ == EXTERNAL_REFERENCE); |
| 229 reconstructed_adr_ptr_ = Assembler::target_address_at(pc_); | 229 reconstructed_adr_ptr_ = Assembler::target_address_at(pc_); |
| 230 return &reconstructed_adr_ptr_; | 230 return &reconstructed_adr_ptr_; |
| 231 } | 231 } |
| 232 | 232 |
| 233 | 233 |
| 234 Address RelocInfo::target_runtime_entry(Assembler* origin) { | |
| 235 ASSERT(IsRuntimeEntry(rmode_)); | |
| 236 return target_address(); | |
| 237 } | |
| 238 | |
| 239 | |
| 240 void RelocInfo::set_target_runtime_entry(Address target, | |
| 241 WriteBarrierMode mode) { | |
| 242 ASSERT(IsRuntimeEntry(rmode_)); | |
| 243 if (target_address() != target) set_target_address(target, mode); | |
| 244 } | |
| 245 | |
| 246 | |
| 247 Handle<JSGlobalPropertyCell> RelocInfo::target_cell_handle() { | 234 Handle<JSGlobalPropertyCell> RelocInfo::target_cell_handle() { |
| 248 ASSERT(rmode_ == RelocInfo::GLOBAL_PROPERTY_CELL); | 235 ASSERT(rmode_ == RelocInfo::GLOBAL_PROPERTY_CELL); |
| 249 Address address = Memory::Address_at(pc_); | 236 Address address = Memory::Address_at(pc_); |
| 250 return Handle<JSGlobalPropertyCell>( | 237 return Handle<JSGlobalPropertyCell>( |
| 251 reinterpret_cast<JSGlobalPropertyCell**>(address)); | 238 reinterpret_cast<JSGlobalPropertyCell**>(address)); |
| 252 } | 239 } |
| 253 | 240 |
| 254 | 241 |
| 255 JSGlobalPropertyCell* RelocInfo::target_cell() { | 242 JSGlobalPropertyCell* RelocInfo::target_cell() { |
| 256 ASSERT(rmode_ == RelocInfo::GLOBAL_PROPERTY_CELL); | 243 ASSERT(rmode_ == RelocInfo::GLOBAL_PROPERTY_CELL); |
| (...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 429 } | 416 } |
| 430 *reinterpret_cast<Instr*>(pc_) = x; | 417 *reinterpret_cast<Instr*>(pc_) = x; |
| 431 pc_ += kInstrSize; | 418 pc_ += kInstrSize; |
| 432 CheckTrampolinePoolQuick(); | 419 CheckTrampolinePoolQuick(); |
| 433 } | 420 } |
| 434 | 421 |
| 435 | 422 |
| 436 } } // namespace v8::internal | 423 } } // namespace v8::internal |
| 437 | 424 |
| 438 #endif // V8_MIPS_ASSEMBLER_MIPS_INL_H_ | 425 #endif // V8_MIPS_ASSEMBLER_MIPS_INL_H_ |
| OLD | NEW |