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

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

Issue 1759873002: Assembler changes for enabling GrowHeap in Wasm (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix compile Created 4 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/arm64/assembler-arm64.cc ('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/debug.h" 10 #include "src/debug/debug.h"
(...skipping 23 matching lines...) Expand all
34 Assembler::set_target_address_at(isolate_, pc_, host_, target, 34 Assembler::set_target_address_at(isolate_, pc_, host_, target,
35 icache_flush_mode); 35 icache_flush_mode);
36 if (write_barrier_mode == UPDATE_WRITE_BARRIER && host() != NULL && 36 if (write_barrier_mode == UPDATE_WRITE_BARRIER && host() != NULL &&
37 IsCodeTarget(rmode_)) { 37 IsCodeTarget(rmode_)) {
38 Object* target_code = Code::GetCodeFromTargetAddress(target); 38 Object* target_code = Code::GetCodeFromTargetAddress(target);
39 host()->GetHeap()->incremental_marking()->RecordWriteIntoCode( 39 host()->GetHeap()->incremental_marking()->RecordWriteIntoCode(
40 host(), this, HeapObject::cast(target_code)); 40 host(), this, HeapObject::cast(target_code));
41 } 41 }
42 } 42 }
43 43
44 void RelocInfo::update_wasm_memory_reference(
45 Address old_base, Address new_base, size_t old_size, size_t new_size,
46 ICacheFlushMode icache_flush_mode) {
47 DCHECK(IsWasmMemoryReference(rmode_));
48 DCHECK(old_base <= wasm_memory_reference() &&
49 wasm_memory_reference() < old_base + old_size);
50 Address updated_reference = new_base + (wasm_memory_reference() - old_base);
51 DCHECK(new_base <= updated_reference &&
52 updated_reference < new_base + new_size);
53 Assembler::set_target_address_at(isolate_, pc_, host_, updated_reference,
54 icache_flush_mode);
55 }
44 56
45 inline int CPURegister::code() const { 57 inline int CPURegister::code() const {
46 DCHECK(IsValid()); 58 DCHECK(IsValid());
47 return reg_code; 59 return reg_code;
48 } 60 }
49 61
50 62
51 inline CPURegister::RegisterType CPURegister::type() const { 63 inline CPURegister::RegisterType CPURegister::type() const {
52 DCHECK(IsValidOrNone()); 64 DCHECK(IsValidOrNone());
53 return reg_type; 65 return reg_type;
(...skipping 632 matching lines...) Expand 10 before | Expand all | Expand 10 after
686 int RelocInfo::target_address_size() { 698 int RelocInfo::target_address_size() {
687 return kPointerSize; 699 return kPointerSize;
688 } 700 }
689 701
690 702
691 Address RelocInfo::target_address() { 703 Address RelocInfo::target_address() {
692 DCHECK(IsCodeTarget(rmode_) || IsRuntimeEntry(rmode_)); 704 DCHECK(IsCodeTarget(rmode_) || IsRuntimeEntry(rmode_));
693 return Assembler::target_address_at(pc_, host_); 705 return Assembler::target_address_at(pc_, host_);
694 } 706 }
695 707
708 Address RelocInfo::wasm_memory_reference() {
709 DCHECK(IsWasmMemoryReference(rmode_));
710 return Assembler::target_address_at(pc_, host_);
711 }
696 712
697 Address RelocInfo::target_address_address() { 713 Address RelocInfo::target_address_address() {
698 DCHECK(IsCodeTarget(rmode_) || IsRuntimeEntry(rmode_) 714 DCHECK(IsCodeTarget(rmode_) || IsRuntimeEntry(rmode_)
699 || rmode_ == EMBEDDED_OBJECT 715 || rmode_ == EMBEDDED_OBJECT
700 || rmode_ == EXTERNAL_REFERENCE); 716 || rmode_ == EXTERNAL_REFERENCE);
701 return Assembler::target_pointer_address_at(pc_); 717 return Assembler::target_pointer_address_at(pc_);
702 } 718 }
703 719
704 720
705 Address RelocInfo::constant_pool_entry_address() { 721 Address RelocInfo::constant_pool_entry_address() {
(...skipping 532 matching lines...) Expand 10 before | Expand all | Expand 10 after
1238 1254
1239 void Assembler::ClearRecordedAstId() { 1255 void Assembler::ClearRecordedAstId() {
1240 recorded_ast_id_ = TypeFeedbackId::None(); 1256 recorded_ast_id_ = TypeFeedbackId::None();
1241 } 1257 }
1242 1258
1243 1259
1244 } // namespace internal 1260 } // namespace internal
1245 } // namespace v8 1261 } // namespace v8
1246 1262
1247 #endif // V8_ARM64_ASSEMBLER_ARM64_INL_H_ 1263 #endif // V8_ARM64_ASSEMBLER_ARM64_INL_H_
OLDNEW
« no previous file with comments | « src/arm64/assembler-arm64.cc ('k') | src/assembler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698