| Index: runtime/vm/stack_frame.cc
|
| diff --git a/runtime/vm/stack_frame.cc b/runtime/vm/stack_frame.cc
|
| index 65f7c3ba61346ba298351dd1bc97ad9d07852f9a..11bba467e249236497544d622c709a8a09d7593a 100644
|
| --- a/runtime/vm/stack_frame.cc
|
| +++ b/runtime/vm/stack_frame.cc
|
| @@ -240,10 +240,10 @@ bool StackFrame::FindExceptionHandler(Thread* thread,
|
| }
|
|
|
|
|
| -intptr_t StackFrame::GetTokenPos() const {
|
| +TokenDescriptor StackFrame::GetTokenPos() const {
|
| const Code& code = Code::Handle(LookupDartCode());
|
| if (code.IsNull()) {
|
| - return -1; // Stub frames do not have token_pos.
|
| + return TokenDescriptor::kNoSource; // Stub frames do not have token_pos.
|
| }
|
| uword pc_offset = pc() - code.EntryPoint();
|
| const PcDescriptors& descriptors =
|
| @@ -252,10 +252,10 @@ intptr_t StackFrame::GetTokenPos() const {
|
| PcDescriptors::Iterator iter(descriptors, RawPcDescriptors::kAnyKind);
|
| while (iter.MoveNext()) {
|
| if (iter.PcOffset() == pc_offset) {
|
| - return iter.TokenPos();
|
| + return TokenDescriptor(iter.TokenPos());
|
| }
|
| }
|
| - return -1;
|
| + return TokenDescriptor::kNoSource;
|
| }
|
|
|
|
|
|
|