Index: src/mips/assembler-mips.cc |
diff --git a/src/mips/assembler-mips.cc b/src/mips/assembler-mips.cc |
index f95323b41fa64b5128468aaa6f2d93b38a93520b..96eb694c0870b9d257b551f79ec442ed8a45113e 100644 |
--- a/src/mips/assembler-mips.cc |
+++ b/src/mips/assembler-mips.cc |
@@ -199,6 +199,11 @@ uint32_t RelocInfo::wasm_memory_size_reference() { |
return reinterpret_cast<uint32_t>(Assembler::target_address_at(pc_, host_)); |
} |
+uint32_t RelocInfo::wasm_function_index() { |
+ DCHECK(IsWasmCall(rmode_)); |
+ return reinterpret_cast<uint32_t>(Assembler::target_address_at(pc_, host_)); |
+} |
+ |
void RelocInfo::update_wasm_memory_reference( |
Address old_base, Address new_base, uint32_t old_size, uint32_t new_size, |
ICacheFlushMode icache_flush_mode) { |