| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef V8_ARM64_ASSEMBLER_ARM64_INL_H_ | 5 #ifndef V8_ARM64_ASSEMBLER_ARM64_INL_H_ |
| 6 #define V8_ARM64_ASSEMBLER_ARM64_INL_H_ | 6 #define V8_ARM64_ASSEMBLER_ARM64_INL_H_ |
| 7 | 7 |
| 8 #include "src/arm64/assembler-arm64.h" | 8 #include "src/arm64/assembler-arm64.h" |
| 9 #include "src/assembler.h" | 9 #include "src/assembler.h" |
| 10 #include "src/debug/debug.h" | 10 #include "src/debug/debug.h" |
| (...skipping 814 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 825 Memory::Address_at(pc_) = NULL; | 825 Memory::Address_at(pc_) = NULL; |
| 826 } else { | 826 } else { |
| 827 Assembler::set_target_address_at(isolate, pc_, host_, NULL); | 827 Assembler::set_target_address_at(isolate, pc_, host_, NULL); |
| 828 } | 828 } |
| 829 } | 829 } |
| 830 | 830 |
| 831 template <typename ObjectVisitor> | 831 template <typename ObjectVisitor> |
| 832 void RelocInfo::Visit(Isolate* isolate, ObjectVisitor* visitor) { | 832 void RelocInfo::Visit(Isolate* isolate, ObjectVisitor* visitor) { |
| 833 RelocInfo::Mode mode = rmode(); | 833 RelocInfo::Mode mode = rmode(); |
| 834 if (mode == RelocInfo::EMBEDDED_OBJECT) { | 834 if (mode == RelocInfo::EMBEDDED_OBJECT) { |
| 835 visitor->VisitEmbeddedPointer(this); | 835 visitor->VisitEmbeddedPointer(host(), this); |
| 836 } else if (RelocInfo::IsCodeTarget(mode)) { | 836 } else if (RelocInfo::IsCodeTarget(mode)) { |
| 837 visitor->VisitCodeTarget(this); | 837 visitor->VisitCodeTarget(host(), this); |
| 838 } else if (mode == RelocInfo::CELL) { | 838 } else if (mode == RelocInfo::CELL) { |
| 839 visitor->VisitCell(this); | 839 visitor->VisitCell(host(), this); |
| 840 } else if (mode == RelocInfo::EXTERNAL_REFERENCE) { | 840 } else if (mode == RelocInfo::EXTERNAL_REFERENCE) { |
| 841 visitor->VisitExternalReference(this); | 841 visitor->VisitExternalReference(host(), this); |
| 842 } else if (mode == RelocInfo::INTERNAL_REFERENCE) { | 842 } else if (mode == RelocInfo::INTERNAL_REFERENCE) { |
| 843 visitor->VisitInternalReference(this); | 843 visitor->VisitInternalReference(host(), this); |
| 844 } else if (RelocInfo::IsDebugBreakSlot(mode) && | 844 } else if (RelocInfo::IsDebugBreakSlot(mode) && |
| 845 IsPatchedDebugBreakSlotSequence()) { | 845 IsPatchedDebugBreakSlotSequence()) { |
| 846 visitor->VisitDebugTarget(this); | 846 visitor->VisitDebugTarget(host(), this); |
| 847 } else if (RelocInfo::IsRuntimeEntry(mode)) { | 847 } else if (RelocInfo::IsRuntimeEntry(mode)) { |
| 848 visitor->VisitRuntimeEntry(this); | 848 visitor->VisitRuntimeEntry(host(), this); |
| 849 } | 849 } |
| 850 } | 850 } |
| 851 | 851 |
| 852 | 852 |
| 853 template<typename StaticVisitor> | 853 template<typename StaticVisitor> |
| 854 void RelocInfo::Visit(Heap* heap) { | 854 void RelocInfo::Visit(Heap* heap) { |
| 855 RelocInfo::Mode mode = rmode(); | 855 RelocInfo::Mode mode = rmode(); |
| 856 if (mode == RelocInfo::EMBEDDED_OBJECT) { | 856 if (mode == RelocInfo::EMBEDDED_OBJECT) { |
| 857 StaticVisitor::VisitEmbeddedPointer(heap, this); | 857 StaticVisitor::VisitEmbeddedPointer(heap, this); |
| 858 } else if (RelocInfo::IsCodeTarget(mode)) { | 858 } else if (RelocInfo::IsCodeTarget(mode)) { |
| (...skipping 355 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1214 | 1214 |
| 1215 void Assembler::ClearRecordedAstId() { | 1215 void Assembler::ClearRecordedAstId() { |
| 1216 recorded_ast_id_ = TypeFeedbackId::None(); | 1216 recorded_ast_id_ = TypeFeedbackId::None(); |
| 1217 } | 1217 } |
| 1218 | 1218 |
| 1219 | 1219 |
| 1220 } // namespace internal | 1220 } // namespace internal |
| 1221 } // namespace v8 | 1221 } // namespace v8 |
| 1222 | 1222 |
| 1223 #endif // V8_ARM64_ASSEMBLER_ARM64_INL_H_ | 1223 #endif // V8_ARM64_ASSEMBLER_ARM64_INL_H_ |
| OLD | NEW |