OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 807 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
818 void RelocInfo::Visit(Isolate* isolate, ObjectVisitor* visitor) { | 818 void RelocInfo::Visit(Isolate* isolate, ObjectVisitor* visitor) { |
819 RelocInfo::Mode mode = rmode(); | 819 RelocInfo::Mode mode = rmode(); |
820 if (mode == RelocInfo::EMBEDDED_OBJECT) { | 820 if (mode == RelocInfo::EMBEDDED_OBJECT) { |
821 visitor->VisitEmbeddedPointer(this); | 821 visitor->VisitEmbeddedPointer(this); |
822 } else if (RelocInfo::IsCodeTarget(mode)) { | 822 } else if (RelocInfo::IsCodeTarget(mode)) { |
823 visitor->VisitCodeTarget(this); | 823 visitor->VisitCodeTarget(this); |
824 } else if (mode == RelocInfo::CELL) { | 824 } else if (mode == RelocInfo::CELL) { |
825 visitor->VisitCell(this); | 825 visitor->VisitCell(this); |
826 } else if (mode == RelocInfo::EXTERNAL_REFERENCE) { | 826 } else if (mode == RelocInfo::EXTERNAL_REFERENCE) { |
827 visitor->VisitExternalReference(this); | 827 visitor->VisitExternalReference(this); |
828 #ifdef ENABLE_DEBUGGER_SUPPORT | |
829 } else if (((RelocInfo::IsJSReturn(mode) && | 828 } else if (((RelocInfo::IsJSReturn(mode) && |
830 IsPatchedReturnSequence()) || | 829 IsPatchedReturnSequence()) || |
831 (RelocInfo::IsDebugBreakSlot(mode) && | 830 (RelocInfo::IsDebugBreakSlot(mode) && |
832 IsPatchedDebugBreakSlotSequence())) && | 831 IsPatchedDebugBreakSlotSequence())) && |
833 isolate->debug()->has_break_points()) { | 832 isolate->debug()->has_break_points()) { |
834 visitor->VisitDebugTarget(this); | 833 visitor->VisitDebugTarget(this); |
835 #endif | |
836 } else if (RelocInfo::IsRuntimeEntry(mode)) { | 834 } else if (RelocInfo::IsRuntimeEntry(mode)) { |
837 visitor->VisitRuntimeEntry(this); | 835 visitor->VisitRuntimeEntry(this); |
838 } | 836 } |
839 } | 837 } |
840 | 838 |
841 | 839 |
842 template<typename StaticVisitor> | 840 template<typename StaticVisitor> |
843 void RelocInfo::Visit(Heap* heap) { | 841 void RelocInfo::Visit(Heap* heap) { |
844 RelocInfo::Mode mode = rmode(); | 842 RelocInfo::Mode mode = rmode(); |
845 if (mode == RelocInfo::EMBEDDED_OBJECT) { | 843 if (mode == RelocInfo::EMBEDDED_OBJECT) { |
846 StaticVisitor::VisitEmbeddedPointer(heap, this); | 844 StaticVisitor::VisitEmbeddedPointer(heap, this); |
847 } else if (RelocInfo::IsCodeTarget(mode)) { | 845 } else if (RelocInfo::IsCodeTarget(mode)) { |
848 StaticVisitor::VisitCodeTarget(heap, this); | 846 StaticVisitor::VisitCodeTarget(heap, this); |
849 } else if (mode == RelocInfo::CELL) { | 847 } else if (mode == RelocInfo::CELL) { |
850 StaticVisitor::VisitCell(heap, this); | 848 StaticVisitor::VisitCell(heap, this); |
851 } else if (mode == RelocInfo::EXTERNAL_REFERENCE) { | 849 } else if (mode == RelocInfo::EXTERNAL_REFERENCE) { |
852 StaticVisitor::VisitExternalReference(this); | 850 StaticVisitor::VisitExternalReference(this); |
853 #ifdef ENABLE_DEBUGGER_SUPPORT | |
854 } else if (heap->isolate()->debug()->has_break_points() && | 851 } else if (heap->isolate()->debug()->has_break_points() && |
855 ((RelocInfo::IsJSReturn(mode) && | 852 ((RelocInfo::IsJSReturn(mode) && |
856 IsPatchedReturnSequence()) || | 853 IsPatchedReturnSequence()) || |
857 (RelocInfo::IsDebugBreakSlot(mode) && | 854 (RelocInfo::IsDebugBreakSlot(mode) && |
858 IsPatchedDebugBreakSlotSequence()))) { | 855 IsPatchedDebugBreakSlotSequence()))) { |
859 StaticVisitor::VisitDebugTarget(heap, this); | 856 StaticVisitor::VisitDebugTarget(heap, this); |
860 #endif | |
861 } else if (RelocInfo::IsRuntimeEntry(mode)) { | 857 } else if (RelocInfo::IsRuntimeEntry(mode)) { |
862 StaticVisitor::VisitRuntimeEntry(this); | 858 StaticVisitor::VisitRuntimeEntry(this); |
863 } | 859 } |
864 } | 860 } |
865 | 861 |
866 | 862 |
867 LoadStoreOp Assembler::LoadOpFor(const CPURegister& rt) { | 863 LoadStoreOp Assembler::LoadOpFor(const CPURegister& rt) { |
868 ASSERT(rt.IsValid()); | 864 ASSERT(rt.IsValid()); |
869 if (rt.IsRegister()) { | 865 if (rt.IsRegister()) { |
870 return rt.Is64Bits() ? LDR_x : LDR_w; | 866 return rt.Is64Bits() ? LDR_x : LDR_w; |
(...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1225 | 1221 |
1226 | 1222 |
1227 void Assembler::ClearRecordedAstId() { | 1223 void Assembler::ClearRecordedAstId() { |
1228 recorded_ast_id_ = TypeFeedbackId::None(); | 1224 recorded_ast_id_ = TypeFeedbackId::None(); |
1229 } | 1225 } |
1230 | 1226 |
1231 | 1227 |
1232 } } // namespace v8::internal | 1228 } } // namespace v8::internal |
1233 | 1229 |
1234 #endif // V8_ARM64_ASSEMBLER_ARM64_INL_H_ | 1230 #endif // V8_ARM64_ASSEMBLER_ARM64_INL_H_ |
OLD | NEW |