Index: runtime/vm/code_patcher_mips_test.cc |
diff --git a/runtime/vm/code_patcher_mips_test.cc b/runtime/vm/code_patcher_mips_test.cc |
index b6d410999d48e75e35e05ba0e7108a118fdc5400..8e07b7728b766d8d18749dce1221bfaec5278203 100644 |
--- a/runtime/vm/code_patcher_mips_test.cc |
+++ b/runtime/vm/code_patcher_mips_test.cc |
@@ -50,8 +50,8 @@ ASSEMBLER_TEST_GENERATE(IcDataAccess, assembler) { |
ASSEMBLER_TEST_RUN(IcDataAccess, test) { |
- uword return_address = |
- test->entry() + test->code().Size() - 2 * Instr::kInstrSize; |
+ uword end = test->payload_start() + test->code().Size(); |
+ uword return_address = end - 2 * Instr::kInstrSize; |
ICData& ic_data = ICData::Handle(); |
CodePatcher::GetInstanceCallAt(return_address, test->code(), &ic_data); |
EXPECT_STREQ("targetFunction", |