Index: src/arm/assembler-arm.cc |
diff --git a/src/arm/assembler-arm.cc b/src/arm/assembler-arm.cc |
index da8e4327ce6588560ca2325ce68fd0df66e0079a..a02c5e519113b426e561bdd640dc9a12d6fcc36a 100644 |
--- a/src/arm/assembler-arm.cc |
+++ b/src/arm/assembler-arm.cc |
@@ -249,6 +249,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() { |
titzer
2016/06/02 13:17:08
This function basically assumes that the call site
Mircea Trofin
2016/06/02 14:46:21
The statement about the assumption is correct.
Se
|
+ DCHECK(IsWasmDirectCall(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) { |