| Index: runtime/vm/code_patcher_x64.cc
|
| ===================================================================
|
| --- runtime/vm/code_patcher_x64.cc (revision 22345)
|
| +++ runtime/vm/code_patcher_x64.cc (working copy)
|
| @@ -173,6 +173,8 @@
|
|
|
|
|
| void CodePatcher::InsertCallAt(uword start, uword target) {
|
| + // The inserted call should not overlap the lazy deopt jump code.
|
| + ASSERT(start + ShortCallPattern::InstructionLength() <= target);
|
| *reinterpret_cast<uint8_t*>(start) = 0xE8;
|
| ShortCallPattern call(start);
|
| call.SetTargetAddress(target);
|
|
|