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.h" | 10 #include "src/debug.h" |
(...skipping 866 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
877 visitor->VisitEmbeddedPointer(this); | 877 visitor->VisitEmbeddedPointer(this); |
878 } else if (RelocInfo::IsCodeTarget(mode)) { | 878 } else if (RelocInfo::IsCodeTarget(mode)) { |
879 visitor->VisitCodeTarget(this); | 879 visitor->VisitCodeTarget(this); |
880 } else if (mode == RelocInfo::CELL) { | 880 } else if (mode == RelocInfo::CELL) { |
881 visitor->VisitCell(this); | 881 visitor->VisitCell(this); |
882 } else if (mode == RelocInfo::EXTERNAL_REFERENCE) { | 882 } else if (mode == RelocInfo::EXTERNAL_REFERENCE) { |
883 visitor->VisitExternalReference(this); | 883 visitor->VisitExternalReference(this); |
884 } else if (mode == RelocInfo::INTERNAL_REFERENCE) { | 884 } else if (mode == RelocInfo::INTERNAL_REFERENCE) { |
885 visitor->VisitInternalReference(this); | 885 visitor->VisitInternalReference(this); |
886 } else if (RelocInfo::IsDebugBreakSlot(mode) && | 886 } else if (RelocInfo::IsDebugBreakSlot(mode) && |
887 IsPatchedDebugBreakSlotSequence() && | 887 IsPatchedDebugBreakSlotSequence()) { |
888 isolate->debug()->has_break_points()) { | |
889 visitor->VisitDebugTarget(this); | 888 visitor->VisitDebugTarget(this); |
890 } else if (RelocInfo::IsRuntimeEntry(mode)) { | 889 } else if (RelocInfo::IsRuntimeEntry(mode)) { |
891 visitor->VisitRuntimeEntry(this); | 890 visitor->VisitRuntimeEntry(this); |
892 } | 891 } |
893 } | 892 } |
894 | 893 |
895 | 894 |
896 template<typename StaticVisitor> | 895 template<typename StaticVisitor> |
897 void RelocInfo::Visit(Heap* heap) { | 896 void RelocInfo::Visit(Heap* heap) { |
898 RelocInfo::Mode mode = rmode(); | 897 RelocInfo::Mode mode = rmode(); |
899 if (mode == RelocInfo::EMBEDDED_OBJECT) { | 898 if (mode == RelocInfo::EMBEDDED_OBJECT) { |
900 StaticVisitor::VisitEmbeddedPointer(heap, this); | 899 StaticVisitor::VisitEmbeddedPointer(heap, this); |
901 } else if (RelocInfo::IsCodeTarget(mode)) { | 900 } else if (RelocInfo::IsCodeTarget(mode)) { |
902 StaticVisitor::VisitCodeTarget(heap, this); | 901 StaticVisitor::VisitCodeTarget(heap, this); |
903 } else if (mode == RelocInfo::CELL) { | 902 } else if (mode == RelocInfo::CELL) { |
904 StaticVisitor::VisitCell(heap, this); | 903 StaticVisitor::VisitCell(heap, this); |
905 } else if (mode == RelocInfo::EXTERNAL_REFERENCE) { | 904 } else if (mode == RelocInfo::EXTERNAL_REFERENCE) { |
906 StaticVisitor::VisitExternalReference(this); | 905 StaticVisitor::VisitExternalReference(this); |
907 } else if (mode == RelocInfo::INTERNAL_REFERENCE) { | 906 } else if (mode == RelocInfo::INTERNAL_REFERENCE) { |
908 StaticVisitor::VisitInternalReference(this); | 907 StaticVisitor::VisitInternalReference(this); |
909 } else if (heap->isolate()->debug()->has_break_points() && | 908 } else if (RelocInfo::IsDebugBreakSlot(mode) && |
910 RelocInfo::IsDebugBreakSlot(mode) && | |
911 IsPatchedDebugBreakSlotSequence()) { | 909 IsPatchedDebugBreakSlotSequence()) { |
912 StaticVisitor::VisitDebugTarget(heap, this); | 910 StaticVisitor::VisitDebugTarget(heap, this); |
913 } else if (RelocInfo::IsRuntimeEntry(mode)) { | 911 } else if (RelocInfo::IsRuntimeEntry(mode)) { |
914 StaticVisitor::VisitRuntimeEntry(this); | 912 StaticVisitor::VisitRuntimeEntry(this); |
915 } | 913 } |
916 } | 914 } |
917 | 915 |
918 | 916 |
919 LoadStoreOp Assembler::LoadOpFor(const CPURegister& rt) { | 917 LoadStoreOp Assembler::LoadOpFor(const CPURegister& rt) { |
920 DCHECK(rt.IsValid()); | 918 DCHECK(rt.IsValid()); |
(...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1283 | 1281 |
1284 | 1282 |
1285 void Assembler::ClearRecordedAstId() { | 1283 void Assembler::ClearRecordedAstId() { |
1286 recorded_ast_id_ = TypeFeedbackId::None(); | 1284 recorded_ast_id_ = TypeFeedbackId::None(); |
1287 } | 1285 } |
1288 | 1286 |
1289 | 1287 |
1290 } } // namespace v8::internal | 1288 } } // namespace v8::internal |
1291 | 1289 |
1292 #endif // V8_ARM64_ASSEMBLER_ARM64_INL_H_ | 1290 #endif // V8_ARM64_ASSEMBLER_ARM64_INL_H_ |
OLD | NEW |