Index: runtime/vm/instructions_mips_test.cc |
=================================================================== |
--- runtime/vm/instructions_mips_test.cc (revision 32487) |
+++ runtime/vm/instructions_mips_test.cc (working copy) |
@@ -39,6 +39,13 @@ |
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::kReadWrite); |
+ EXPECT(status); |
JumpPattern jump1(test->entry(), test->code()); |
EXPECT_EQ(StubCode::InstanceFunctionLookupLabel().address(), |
jump1.TargetAddress()); |