| 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 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 227 Memory::Address_at(pc_) = NULL; | 227 Memory::Address_at(pc_) = NULL; |
| 228 } else { | 228 } else { |
| 229 Assembler::set_target_address_at(isolate, pc_, host_, NULL); | 229 Assembler::set_target_address_at(isolate, pc_, host_, NULL); |
| 230 } | 230 } |
| 231 } | 231 } |
| 232 | 232 |
| 233 template <typename ObjectVisitor> | 233 template <typename ObjectVisitor> |
| 234 void RelocInfo::Visit(Isolate* isolate, ObjectVisitor* visitor) { | 234 void RelocInfo::Visit(Isolate* isolate, ObjectVisitor* visitor) { |
| 235 RelocInfo::Mode mode = rmode(); | 235 RelocInfo::Mode mode = rmode(); |
| 236 if (mode == RelocInfo::EMBEDDED_OBJECT) { | 236 if (mode == RelocInfo::EMBEDDED_OBJECT) { |
| 237 visitor->VisitEmbeddedPointer(this); | 237 visitor->VisitEmbeddedPointer(host(), this); |
| 238 } else if (RelocInfo::IsCodeTarget(mode)) { | 238 } else if (RelocInfo::IsCodeTarget(mode)) { |
| 239 visitor->VisitCodeTarget(this); | 239 visitor->VisitCodeTarget(host(), this); |
| 240 } else if (mode == RelocInfo::CELL) { | 240 } else if (mode == RelocInfo::CELL) { |
| 241 visitor->VisitCell(this); | 241 visitor->VisitCellPointer(host(), this); |
| 242 } else if (mode == RelocInfo::EXTERNAL_REFERENCE) { | 242 } else if (mode == RelocInfo::EXTERNAL_REFERENCE) { |
| 243 visitor->VisitExternalReference(this); | 243 visitor->VisitExternalReference(host(), this); |
| 244 } else if (mode == RelocInfo::INTERNAL_REFERENCE) { | 244 } else if (mode == RelocInfo::INTERNAL_REFERENCE) { |
| 245 visitor->VisitInternalReference(this); | 245 visitor->VisitInternalReference(host(), this); |
| 246 } else if (RelocInfo::IsCodeAgeSequence(mode)) { | 246 } else if (RelocInfo::IsCodeAgeSequence(mode)) { |
| 247 visitor->VisitCodeAgeSequence(this); | 247 visitor->VisitCodeAgeSequence(host(), this); |
| 248 } else if (RelocInfo::IsDebugBreakSlot(mode) && | 248 } else if (RelocInfo::IsDebugBreakSlot(mode) && |
| 249 IsPatchedDebugBreakSlotSequence()) { | 249 IsPatchedDebugBreakSlotSequence()) { |
| 250 visitor->VisitDebugTarget(this); | 250 visitor->VisitDebugTarget(host(), this); |
| 251 } else if (RelocInfo::IsRuntimeEntry(mode)) { | 251 } else if (RelocInfo::IsRuntimeEntry(mode)) { |
| 252 visitor->VisitRuntimeEntry(this); | 252 visitor->VisitRuntimeEntry(host(), this); |
| 253 } | 253 } |
| 254 } | 254 } |
| 255 | 255 |
| 256 | 256 |
| 257 template<typename StaticVisitor> | 257 template<typename StaticVisitor> |
| 258 void RelocInfo::Visit(Heap* heap) { | 258 void RelocInfo::Visit(Heap* heap) { |
| 259 RelocInfo::Mode mode = rmode(); | 259 RelocInfo::Mode mode = rmode(); |
| 260 if (mode == RelocInfo::EMBEDDED_OBJECT) { | 260 if (mode == RelocInfo::EMBEDDED_OBJECT) { |
| 261 StaticVisitor::VisitEmbeddedPointer(heap, this); | 261 StaticVisitor::VisitEmbeddedPointer(heap, this); |
| 262 } else if (RelocInfo::IsCodeTarget(mode)) { | 262 } else if (RelocInfo::IsCodeTarget(mode)) { |
| (...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 510 Address constant_pool = code ? code->constant_pool() : NULL; | 510 Address constant_pool = code ? code->constant_pool() : NULL; |
| 511 set_target_address_at(isolate, pc, constant_pool, target, icache_flush_mode); | 511 set_target_address_at(isolate, pc, constant_pool, target, icache_flush_mode); |
| 512 } | 512 } |
| 513 | 513 |
| 514 EnsureSpace::EnsureSpace(Assembler* assembler) { assembler->CheckBuffer(); } | 514 EnsureSpace::EnsureSpace(Assembler* assembler) { assembler->CheckBuffer(); } |
| 515 | 515 |
| 516 } // namespace internal | 516 } // namespace internal |
| 517 } // namespace v8 | 517 } // namespace v8 |
| 518 | 518 |
| 519 #endif // V8_ARM_ASSEMBLER_ARM_INL_H_ | 519 #endif // V8_ARM_ASSEMBLER_ARM_INL_H_ |
| OLD | NEW |