| 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 | 5 // modification, are permitted provided that the following conditions |
| 6 // are met: | 6 // are 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 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 231 Memory::Address_at(pc_) = NULL; | 231 Memory::Address_at(pc_) = NULL; |
| 232 } else { | 232 } else { |
| 233 Assembler::set_target_address_at(isolate, pc_, host_, NULL); | 233 Assembler::set_target_address_at(isolate, pc_, host_, NULL); |
| 234 } | 234 } |
| 235 } | 235 } |
| 236 | 236 |
| 237 template <typename ObjectVisitor> | 237 template <typename ObjectVisitor> |
| 238 void RelocInfo::Visit(Isolate* isolate, ObjectVisitor* visitor) { | 238 void RelocInfo::Visit(Isolate* isolate, ObjectVisitor* visitor) { |
| 239 RelocInfo::Mode mode = rmode(); | 239 RelocInfo::Mode mode = rmode(); |
| 240 if (mode == RelocInfo::EMBEDDED_OBJECT) { | 240 if (mode == RelocInfo::EMBEDDED_OBJECT) { |
| 241 visitor->VisitEmbeddedPointer(this); | 241 visitor->VisitEmbeddedPointer(host(), this); |
| 242 } else if (RelocInfo::IsCodeTarget(mode)) { | 242 } else if (RelocInfo::IsCodeTarget(mode)) { |
| 243 visitor->VisitCodeTarget(this); | 243 visitor->VisitCodeTarget(host(), this); |
| 244 } else if (mode == RelocInfo::CELL) { | 244 } else if (mode == RelocInfo::CELL) { |
| 245 visitor->VisitCell(this); | 245 visitor->VisitCell(host(), this); |
| 246 } else if (mode == RelocInfo::EXTERNAL_REFERENCE) { | 246 } else if (mode == RelocInfo::EXTERNAL_REFERENCE) { |
| 247 visitor->VisitExternalReference(this); | 247 visitor->VisitExternalReference(host(), this); |
| 248 } else if (mode == RelocInfo::INTERNAL_REFERENCE) { | 248 } else if (mode == RelocInfo::INTERNAL_REFERENCE) { |
| 249 visitor->VisitInternalReference(this); | 249 visitor->VisitInternalReference(host(), this); |
| 250 } else if (RelocInfo::IsCodeAgeSequence(mode)) { | 250 } else if (RelocInfo::IsCodeAgeSequence(mode)) { |
| 251 visitor->VisitCodeAgeSequence(this); | 251 visitor->VisitCodeAgeSequence(host(), this); |
| 252 } else if (RelocInfo::IsDebugBreakSlot(mode) && | 252 } else if (RelocInfo::IsDebugBreakSlot(mode) && |
| 253 IsPatchedDebugBreakSlotSequence()) { | 253 IsPatchedDebugBreakSlotSequence()) { |
| 254 visitor->VisitDebugTarget(this); | 254 visitor->VisitDebugTarget(host(), this); |
| 255 } else if (RelocInfo::IsRuntimeEntry(mode)) { | 255 } else if (RelocInfo::IsRuntimeEntry(mode)) { |
| 256 visitor->VisitRuntimeEntry(this); | 256 visitor->VisitRuntimeEntry(host(), this); |
| 257 } | 257 } |
| 258 } | 258 } |
| 259 | 259 |
| 260 | 260 |
| 261 template<typename StaticVisitor> | 261 template<typename StaticVisitor> |
| 262 void RelocInfo::Visit(Heap* heap) { | 262 void RelocInfo::Visit(Heap* heap) { |
| 263 RelocInfo::Mode mode = rmode(); | 263 RelocInfo::Mode mode = rmode(); |
| 264 if (mode == RelocInfo::EMBEDDED_OBJECT) { | 264 if (mode == RelocInfo::EMBEDDED_OBJECT) { |
| 265 StaticVisitor::VisitEmbeddedPointer(heap, this); | 265 StaticVisitor::VisitEmbeddedPointer(heap, this); |
| 266 } else if (RelocInfo::IsCodeTarget(mode)) { | 266 } else if (RelocInfo::IsCodeTarget(mode)) { |
| (...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 584 Address constant_pool = code ? code->constant_pool() : NULL; | 584 Address constant_pool = code ? code->constant_pool() : NULL; |
| 585 set_target_address_at(isolate, pc, constant_pool, target, icache_flush_mode); | 585 set_target_address_at(isolate, pc, constant_pool, target, icache_flush_mode); |
| 586 } | 586 } |
| 587 | 587 |
| 588 EnsureSpace::EnsureSpace(Assembler* assembler) { assembler->CheckBuffer(); } | 588 EnsureSpace::EnsureSpace(Assembler* assembler) { assembler->CheckBuffer(); } |
| 589 | 589 |
| 590 } // namespace internal | 590 } // namespace internal |
| 591 } // namespace v8 | 591 } // namespace v8 |
| 592 | 592 |
| 593 #endif // V8_ARM_ASSEMBLER_ARM_INL_H_ | 593 #endif // V8_ARM_ASSEMBLER_ARM_INL_H_ |
| OLD | NEW |