Index: src/x87/assembler-x87.cc |
diff --git a/src/x87/assembler-x87.cc b/src/x87/assembler-x87.cc |
index 4be4d2afa56913334af910db4824c20dfda862e0..e7e4abe34836d2a4b628fefc4eac20344ac6b979 100644 |
--- a/src/x87/assembler-x87.cc |
+++ b/src/x87/assembler-x87.cc |
@@ -116,44 +116,14 @@ uint32_t RelocInfo::wasm_memory_size_reference() { |
return Memory::uint32_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_)) { |
- Address updated_reference; |
- DCHECK(old_base <= wasm_memory_reference() && |
- wasm_memory_reference() < old_base + old_size); |
- updated_reference = new_base + (wasm_memory_reference() - old_base); |
- DCHECK(new_base <= updated_reference && |
- updated_reference < new_base + new_size); |
- Memory::Address_at(pc_) = updated_reference; |
- } 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(pc_) = updated_size_reference; |
- } else { |
- UNREACHABLE(); |
- } |
- if (icache_flush_mode != SKIP_ICACHE_FLUSH) { |
- Assembler::FlushICache(isolate_, pc_, sizeof(int32_t)); |
- } |
+void RelocInfo::unchecked_update_wasm_memory_reference( |
+ Address address, ICacheFlushMode flush_mode) { |
+ Memory::Address_at(pc_) = address; |
} |
-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); |
- Memory::Address_at(pc_) = updated_reference; |
- if (icache_flush_mode != SKIP_ICACHE_FLUSH) { |
- Assembler::FlushICache(isolate_, pc_, sizeof(int32_t)); |
- } |
+void RelocInfo::unchecked_update_wasm_memory_size(uint32_t size, |
+ ICacheFlushMode flush_mode) { |
+ Memory::uint32_at(pc_) = size; |
} |
// ----------------------------------------------------------------------------- |