Index: runtime/vm/code_patcher_x64.cc |
diff --git a/runtime/vm/code_patcher_x64.cc b/runtime/vm/code_patcher_x64.cc |
index 2e6ec0257cde936b603457028d6ac8d2bea261ce..b8863dc721b87999568d37e2d1adbf56b3a37f1b 100644 |
--- a/runtime/vm/code_patcher_x64.cc |
+++ b/runtime/vm/code_patcher_x64.cc |
@@ -35,6 +35,12 @@ intptr_t IndexFromPPLoad(uword start) { |
} |
+intptr_t IndexFromPPLoadDisp8(uword start) { |
+ int8_t offset = *reinterpret_cast<int8_t*>(start); |
+ return ObjectPool::IndexFromOffset(offset); |
+} |
+ |
+ |
class UnoptimizedCall : public ValueObject { |
public: |
UnoptimizedCall(uword return_address, const Code& code) |