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 795 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
806 STATIC_ASSERT(Assembler::kPatchDebugBreakSlotAddressOffset == 0); | 806 STATIC_ASSERT(Assembler::kPatchDebugBreakSlotAddressOffset == 0); |
807 return Assembler::target_address_at(pc_, host_); | 807 return Assembler::target_address_at(pc_, host_); |
808 } | 808 } |
809 | 809 |
810 | 810 |
811 void RelocInfo::set_debug_call_address(Address target) { | 811 void RelocInfo::set_debug_call_address(Address target) { |
812 DCHECK(IsDebugBreakSlot(rmode()) && IsPatchedDebugBreakSlotSequence()); | 812 DCHECK(IsDebugBreakSlot(rmode()) && IsPatchedDebugBreakSlotSequence()); |
813 STATIC_ASSERT(Assembler::kPatchDebugBreakSlotAddressOffset == 0); | 813 STATIC_ASSERT(Assembler::kPatchDebugBreakSlotAddressOffset == 0); |
814 Assembler::set_target_address_at(isolate_, pc_, host_, target); | 814 Assembler::set_target_address_at(isolate_, pc_, host_, target); |
815 if (host() != NULL) { | 815 if (host() != NULL) { |
816 Object* target_code = Code::GetCodeFromTargetAddress(target); | 816 Code* target_code = Code::GetCodeFromTargetAddress(target); |
817 host()->GetHeap()->incremental_marking()->RecordWriteIntoCode( | 817 host()->GetHeap()->incremental_marking()->RecordWriteIntoCode(host(), this, |
818 host(), this, HeapObject::cast(target_code)); | 818 target_code); |
819 } | 819 } |
820 } | 820 } |
821 | 821 |
822 | 822 |
823 void RelocInfo::WipeOut() { | 823 void RelocInfo::WipeOut() { |
824 DCHECK(IsEmbeddedObject(rmode_) || IsCodeTarget(rmode_) || | 824 DCHECK(IsEmbeddedObject(rmode_) || IsCodeTarget(rmode_) || |
825 IsRuntimeEntry(rmode_) || IsExternalReference(rmode_) || | 825 IsRuntimeEntry(rmode_) || IsExternalReference(rmode_) || |
826 IsInternalReference(rmode_)); | 826 IsInternalReference(rmode_)); |
827 if (IsInternalReference(rmode_)) { | 827 if (IsInternalReference(rmode_)) { |
828 Memory::Address_at(pc_) = NULL; | 828 Memory::Address_at(pc_) = NULL; |
(...skipping 388 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1217 | 1217 |
1218 void Assembler::ClearRecordedAstId() { | 1218 void Assembler::ClearRecordedAstId() { |
1219 recorded_ast_id_ = TypeFeedbackId::None(); | 1219 recorded_ast_id_ = TypeFeedbackId::None(); |
1220 } | 1220 } |
1221 | 1221 |
1222 | 1222 |
1223 } // namespace internal | 1223 } // namespace internal |
1224 } // namespace v8 | 1224 } // namespace v8 |
1225 | 1225 |
1226 #endif // V8_ARM64_ASSEMBLER_ARM64_INL_H_ | 1226 #endif // V8_ARM64_ASSEMBLER_ARM64_INL_H_ |
OLD | NEW |