Index: runtime/vm/instructions_arm_test.cc |
diff --git a/runtime/vm/instructions_arm_test.cc b/runtime/vm/instructions_arm_test.cc |
index dec458d5ccc2595244e0ef62dc599c496057a6e2..547016188bfacb3008ef8e4cf17071817c671e76 100644 |
--- a/runtime/vm/instructions_arm_test.cc |
+++ b/runtime/vm/instructions_arm_test.cc |
@@ -38,6 +38,13 @@ ASSEMBLER_TEST_GENERATE(Jump, assembler) { |
ASSEMBLER_TEST_RUN(Jump, test) { |
+ 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(), test->code()); |
EXPECT_EQ(StubCode::InstanceFunctionLookupLabel().address(), |
jump1.TargetAddress()); |