Index: runtime/vm/simulator_arm64.cc |
diff --git a/runtime/vm/simulator_arm64.cc b/runtime/vm/simulator_arm64.cc |
index e517fa43dd255d05aa7db02cb466df0f3bf61439..610b857a76115e032c2dbee96cfda488786bdd14 100644 |
--- a/runtime/vm/simulator_arm64.cc |
+++ b/runtime/vm/simulator_arm64.cc |
@@ -265,7 +265,7 @@ bool SimulatorDebugger::GetQValue(char* desc, simd_value_t* value) { |
TokenPosition SimulatorDebugger::GetApproximateTokenIndex(const Code& code, |
uword pc) { |
TokenPosition token_pos = TokenPosition::kNoSource; |
- uword pc_offset = pc - code.EntryPoint(); |
+ uword pc_offset = pc - code.PayloadStart(); |
const PcDescriptors& descriptors = |
PcDescriptors::Handle(code.pc_descriptors()); |
PcDescriptors::Iterator iter(descriptors, RawPcDescriptors::kAnyKind); |