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

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

Issue 2045263002: [heap] Avoid the use of cells to point from code to new-space objects. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: The IsSmi check in mov(HeapObject) lets some tests fail. Created 4 years, 6 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/arm64/assembler-arm64.cc ('k') | src/arm64/macro-assembler-arm64.cc » ('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/debug.h" 10 #include "src/debug/debug.h"
(...skipping 713 matching lines...) Expand 10 before | Expand all | Expand 10 after
724 ICacheFlushMode icache_flush_mode) { 724 ICacheFlushMode icache_flush_mode) {
725 DCHECK(IsCodeTarget(rmode_) || rmode_ == EMBEDDED_OBJECT); 725 DCHECK(IsCodeTarget(rmode_) || rmode_ == EMBEDDED_OBJECT);
726 Assembler::set_target_address_at(isolate_, pc_, host_, 726 Assembler::set_target_address_at(isolate_, pc_, host_,
727 reinterpret_cast<Address>(target), 727 reinterpret_cast<Address>(target),
728 icache_flush_mode); 728 icache_flush_mode);
729 if (write_barrier_mode == UPDATE_WRITE_BARRIER && 729 if (write_barrier_mode == UPDATE_WRITE_BARRIER &&
730 host() != NULL && 730 host() != NULL &&
731 target->IsHeapObject()) { 731 target->IsHeapObject()) {
732 host()->GetHeap()->incremental_marking()->RecordWriteIntoCode( 732 host()->GetHeap()->incremental_marking()->RecordWriteIntoCode(
733 host(), this, HeapObject::cast(target)); 733 host(), this, HeapObject::cast(target));
734 host()->GetHeap()->RecordWriteIntoCode(host(), this, target);
734 } 735 }
735 } 736 }
736 737
737 738
738 Address RelocInfo::target_external_reference() { 739 Address RelocInfo::target_external_reference() {
739 DCHECK(rmode_ == EXTERNAL_REFERENCE); 740 DCHECK(rmode_ == EXTERNAL_REFERENCE);
740 return Assembler::target_address_at(pc_, host_); 741 return Assembler::target_address_at(pc_, host_);
741 } 742 }
742 743
743 744
(...skipping 492 matching lines...) Expand 10 before | Expand all | Expand 10 after
1236 1237
1237 void Assembler::ClearRecordedAstId() { 1238 void Assembler::ClearRecordedAstId() {
1238 recorded_ast_id_ = TypeFeedbackId::None(); 1239 recorded_ast_id_ = TypeFeedbackId::None();
1239 } 1240 }
1240 1241
1241 1242
1242 } // namespace internal 1243 } // namespace internal
1243 } // namespace v8 1244 } // namespace v8
1244 1245
1245 #endif // V8_ARM64_ASSEMBLER_ARM64_INL_H_ 1246 #endif // V8_ARM64_ASSEMBLER_ARM64_INL_H_
OLDNEW
« no previous file with comments | « src/arm64/assembler-arm64.cc ('k') | src/arm64/macro-assembler-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698