Index: runtime/vm/instructions_x64.cc |
diff --git a/runtime/vm/instructions_x64.cc b/runtime/vm/instructions_x64.cc |
index fe0c6ef3af6ec48f96fb93cc1136b713a5cf7636..950fd1676b57f6f048293c1524479c20397ea843 100644 |
--- a/runtime/vm/instructions_x64.cc |
+++ b/runtime/vm/instructions_x64.cc |
@@ -12,6 +12,13 @@ |
namespace dart { |
+void ShortCallPattern::SetTargetAddress(uword target) const { |
+ ASSERT(IsValid()); |
+ *reinterpret_cast<uint32_t*>(start() + 1) = target - start() - kLengthInBytes; |
+ CPU::FlushICache(start() + 1, kWordSize); |
+} |
+ |
+ |
bool DecodeLoadObjectFromPoolOrThread(uword pc, |
const Code& code, |
Object* obj) { |