Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(894)

Side by Side Diff: src/arm64/assembler-arm64-inl.h

Issue 976623002: Serializer: correctly deal with internal references. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: argh I keep making mistakes. Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/arm/assembler-arm-inl.h ('k') | src/assembler.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 715 matching lines...) Expand 10 before | Expand all | Expand 10 after
726 icache_flush_mode); 726 icache_flush_mode);
727 if (write_barrier_mode == UPDATE_WRITE_BARRIER && 727 if (write_barrier_mode == UPDATE_WRITE_BARRIER &&
728 host() != NULL && 728 host() != NULL &&
729 target->IsHeapObject()) { 729 target->IsHeapObject()) {
730 host()->GetHeap()->incremental_marking()->RecordWrite( 730 host()->GetHeap()->incremental_marking()->RecordWrite(
731 host(), &Memory::Object_at(pc_), HeapObject::cast(target)); 731 host(), &Memory::Object_at(pc_), HeapObject::cast(target));
732 } 732 }
733 } 733 }
734 734
735 735
736 Address RelocInfo::target_reference() { 736 Address RelocInfo::target_external_reference() {
737 DCHECK(rmode_ == EXTERNAL_REFERENCE); 737 DCHECK(rmode_ == EXTERNAL_REFERENCE);
738 return Assembler::target_address_at(pc_, host_); 738 return Assembler::target_address_at(pc_, host_);
739 } 739 }
740 740
741 741
742 Address RelocInfo::target_internal_reference() {
743 DCHECK(rmode_ == INTERNAL_REFERENCE);
744 return Memory::Address_at(pc_);
745 }
746
747
748 void RelocInfo::set_target_internal_reference(Address target) {
749 DCHECK(rmode_ == INTERNAL_REFERENCE);
750 Memory::Address_at(pc_) = target;
751 }
752
753
742 Address RelocInfo::target_runtime_entry(Assembler* origin) { 754 Address RelocInfo::target_runtime_entry(Assembler* origin) {
743 DCHECK(IsRuntimeEntry(rmode_)); 755 DCHECK(IsRuntimeEntry(rmode_));
744 return target_address(); 756 return target_address();
745 } 757 }
746 758
747 759
748 void RelocInfo::set_target_runtime_entry(Address target, 760 void RelocInfo::set_target_runtime_entry(Address target,
749 WriteBarrierMode write_barrier_mode, 761 WriteBarrierMode write_barrier_mode,
750 ICacheFlushMode icache_flush_mode) { 762 ICacheFlushMode icache_flush_mode) {
751 DCHECK(IsRuntimeEntry(rmode_)); 763 DCHECK(IsRuntimeEntry(rmode_));
(...skipping 511 matching lines...) Expand 10 before | Expand all | Expand 10 after
1263 1275
1264 1276
1265 void Assembler::ClearRecordedAstId() { 1277 void Assembler::ClearRecordedAstId() {
1266 recorded_ast_id_ = TypeFeedbackId::None(); 1278 recorded_ast_id_ = TypeFeedbackId::None();
1267 } 1279 }
1268 1280
1269 1281
1270 } } // namespace v8::internal 1282 } } // namespace v8::internal
1271 1283
1272 #endif // V8_ARM64_ASSEMBLER_ARM64_INL_H_ 1284 #endif // V8_ARM64_ASSEMBLER_ARM64_INL_H_
OLDNEW
« no previous file with comments | « src/arm/assembler-arm-inl.h ('k') | src/assembler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698