Index: src/ppc/assembler-ppc.cc |
diff --git a/src/ppc/assembler-ppc.cc b/src/ppc/assembler-ppc.cc |
index 08a8005ee1a27db09eede1ea44cd8b452c593635..62d0e7f8cc03e832c3438250fda6a71befb58381 100644 |
--- a/src/ppc/assembler-ppc.cc |
+++ b/src/ppc/assembler-ppc.cc |
@@ -171,14 +171,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); |
} |