Index: src/arm64/assembler-arm64.cc |
diff --git a/src/arm64/assembler-arm64.cc b/src/arm64/assembler-arm64.cc |
index 89219ec274b746d4774edb2285648e0a8be21556..49e8c3921dbd087452c957a59c3389d81f719e8f 100644 |
--- a/src/arm64/assembler-arm64.cc |
+++ b/src/arm64/assembler-arm64.cc |
@@ -194,41 +194,14 @@ Address RelocInfo::wasm_global_reference() { |
return Memory::Address_at(Assembler::target_pointer_address_at(pc_)); |
} |
-void RelocInfo::update_wasm_memory_reference( |
- Address old_base, Address new_base, uint32_t old_size, uint32_t new_size, |
- ICacheFlushMode icache_flush_mode) { |
- DCHECK(IsWasmMemoryReference(rmode_) || IsWasmMemorySizeReference(rmode_)); |
- if (IsWasmMemoryReference(rmode_) && old_base != new_base) { |
- Address updated_memory_reference; |
- DCHECK(old_base <= wasm_memory_reference() && |
- wasm_memory_reference() < old_base + old_size); |
- updated_memory_reference = new_base + (wasm_memory_reference() - old_base); |
- DCHECK(new_base <= updated_memory_reference && |
- updated_memory_reference < new_base + new_size); |
- Assembler::set_target_address_at( |
- isolate_, pc_, host_, updated_memory_reference, icache_flush_mode); |
- } else if (IsWasmMemorySizeReference(rmode_)) { |
- uint32_t updated_size_reference; |
- DCHECK(wasm_memory_size_reference() <= old_size); |
- updated_size_reference = |
- new_size + (wasm_memory_size_reference() - old_size); |
- DCHECK(updated_size_reference <= new_size); |
- Memory::uint32_at(Assembler::target_pointer_address_at(pc_)) = |
- updated_size_reference; |
- } else { |
- UNREACHABLE(); |
- } |
+void RelocInfo::unchecked_update_wasm_memory_reference( |
+ Address address, ICacheFlushMode flush_mode) { |
+ Assembler::set_target_address_at(isolate_, pc_, host_, address, flush_mode); |
} |
-void RelocInfo::update_wasm_global_reference( |
- Address old_base, Address new_base, ICacheFlushMode icache_flush_mode) { |
- DCHECK(IsWasmGlobalReference(rmode_)); |
- Address updated_reference; |
- DCHECK(old_base <= wasm_global_reference()); |
- updated_reference = new_base + (wasm_global_reference() - old_base); |
- DCHECK(new_base <= updated_reference); |
- Assembler::set_target_address_at(isolate_, pc_, host_, updated_reference, |
- icache_flush_mode); |
+void RelocInfo::unchecked_update_wasm_memory_size(uint32_t size, |
+ ICacheFlushMode flush_mode) { |
+ Memory::uint32_at(Assembler::target_pointer_address_at(pc_)) = size; |
} |
Register GetAllocatableRegisterThatIsNotOneOf(Register reg1, Register reg2, |