Index: runtime/vm/instructions_mips_test.cc |
diff --git a/runtime/vm/instructions_mips_test.cc b/runtime/vm/instructions_mips_test.cc |
index 7348db8ec5f09ce149329b31f963a54e95082b5c..9f1b7fbc542b12c5583081715a937547bcd429b1 100644 |
--- a/runtime/vm/instructions_mips_test.cc |
+++ b/runtime/vm/instructions_mips_test.cc |
@@ -39,6 +39,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()); |