Index: runtime/vm/instructions_x64_test.cc |
diff --git a/runtime/vm/instructions_x64_test.cc b/runtime/vm/instructions_x64_test.cc |
index c9abf0f1774c713f1776171fb7420a46439f270b..cecc2778825f2f622715cf37dbfc21083d303871 100644 |
--- a/runtime/vm/instructions_x64_test.cc |
+++ b/runtime/vm/instructions_x64_test.cc |
@@ -44,6 +44,13 @@ ASSEMBLER_TEST_GENERATE(Jump, assembler) { |
ASSEMBLER_TEST_RUN(Jump, test) { |
ASSERT(prologue_code_size != -1); |
+ const Code& code = test->code(); |
+ const Instructions& instrs = Instructions::Handle(code.instructions()); |
+ bool status = |
+ VirtualMemory::Protect(reinterpret_cast<void*>(instrs.EntryPoint()), |
+ instrs.size(), |
+ VirtualMemory::kReadWriteExecute); |
+ EXPECT(status); |
JumpPattern jump1(test->entry() + prologue_code_size, test->code()); |
jump1.IsValid(); |
EXPECT_EQ(StubCode::InstanceFunctionLookupLabel().address(), |