Index: src/s390/assembler-s390.cc |
diff --git a/src/s390/assembler-s390.cc b/src/s390/assembler-s390.cc |
index 6e817caad6a9f08c4233701cd1ac7e9bdd14c2a9..874ff7b21eeddcae9a91cbb6a8294e7f44cd83a4 100644 |
--- a/src/s390/assembler-s390.cc |
+++ b/src/s390/assembler-s390.cc |
@@ -239,13 +239,19 @@ Address RelocInfo::wasm_global_reference() { |
return Assembler::target_address_at(pc_, host_); |
} |
+uint32_t RelocInfo::wasm_function_table_size_reference() { |
+ DCHECK(IsWasmFunctionTableSizeReference(rmode_)); |
+ return static_cast<uint32_t>( |
+ reinterpret_cast<intptr_t>(Assembler::target_address_at(pc_, host_))); |
+} |
+ |
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::unchecked_update_wasm_memory_size(uint32_t size, |
- ICacheFlushMode flush_mode) { |
+void RelocInfo::unchecked_update_wasm_size(uint32_t size, |
+ ICacheFlushMode flush_mode) { |
Assembler::set_target_address_at(isolate_, pc_, host_, |
reinterpret_cast<Address>(size), flush_mode); |
} |