Index: src/arm64/assembler-arm64.cc |
diff --git a/src/arm64/assembler-arm64.cc b/src/arm64/assembler-arm64.cc |
index 6fddd6f29396841540e4cc17f909ae058d02671c..d1874af347412e8d4e4c346551e8f0e41e1efd98 100644 |
--- a/src/arm64/assembler-arm64.cc |
+++ b/src/arm64/assembler-arm64.cc |
@@ -189,6 +189,11 @@ uint32_t RelocInfo::wasm_memory_size_reference() { |
return Memory::uint32_at(Assembler::target_pointer_address_at(pc_)); |
} |
+uint32_t RelocInfo::wasm_function_index() { |
+ DCHECK(IsWasmCall(rmode_)); |
+ return Memory::uint32_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) { |