| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 #include "vm/globals.h" | 5 #include "vm/globals.h" |
| 6 #if defined(TARGET_ARCH_MIPS) | 6 #if defined(TARGET_ARCH_MIPS) |
| 7 | 7 |
| 8 #include "vm/stack_frame.h" | 8 #include "vm/stack_frame.h" |
| 9 | 9 |
| 10 namespace dart { | 10 namespace dart { |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 return *(reinterpret_cast<uword*>(fp())); | 31 return *(reinterpret_cast<uword*>(fp())); |
| 32 } | 32 } |
| 33 | 33 |
| 34 | 34 |
| 35 uword StackFrame::GetCallerSp() const { | 35 uword StackFrame::GetCallerSp() const { |
| 36 return fp() + kSpOffsetFromPreviousFp; | 36 return fp() + kSpOffsetFromPreviousFp; |
| 37 } | 37 } |
| 38 | 38 |
| 39 | 39 |
| 40 intptr_t EntryFrame::ExitLinkOffset() const { | 40 intptr_t EntryFrame::ExitLinkOffset() const { |
| 41 UNIMPLEMENTED(); | 41 return kExitLinkOffsetInEntryFrame; |
| 42 return 0; | |
| 43 } | 42 } |
| 44 | 43 |
| 45 | 44 |
| 46 intptr_t EntryFrame::SavedContextOffset() const { | 45 intptr_t EntryFrame::SavedContextOffset() const { |
| 47 UNIMPLEMENTED(); | 46 UNIMPLEMENTED(); |
| 48 return 0; | 47 return 0; |
| 49 } | 48 } |
| 50 | 49 |
| 51 | 50 |
| 52 void StackFrameIterator::SetupLastExitFrameData() { | 51 void StackFrameIterator::SetupLastExitFrameData() { |
| 53 Isolate* current = Isolate::Current(); | 52 Isolate* current = Isolate::Current(); |
| 54 uword exit_marker = current->top_exit_frame_info(); | 53 uword exit_marker = current->top_exit_frame_info(); |
| 55 frames_.fp_ = exit_marker; | 54 frames_.fp_ = exit_marker; |
| 56 } | 55 } |
| 57 | 56 |
| 58 | 57 |
| 59 void StackFrameIterator::SetupNextExitFrameData() { | 58 void StackFrameIterator::SetupNextExitFrameData() { |
| 60 uword exit_address = entry_.fp() + kExitLinkOffsetInEntryFrame; | 59 uword exit_address = entry_.fp() + kExitLinkOffsetInEntryFrame; |
| 61 uword exit_marker = *reinterpret_cast<uword*>(exit_address); | 60 uword exit_marker = *reinterpret_cast<uword*>(exit_address); |
| 62 frames_.fp_ = exit_marker; | 61 frames_.fp_ = exit_marker; |
| 63 frames_.sp_ = 0; | 62 frames_.sp_ = 0; |
| 64 } | 63 } |
| 65 | 64 |
| 66 } // namespace dart | 65 } // namespace dart |
| 67 | 66 |
| 68 #endif // defined TARGET_ARCH_MIPS | 67 #endif // defined TARGET_ARCH_MIPS |
| OLD | NEW |