Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(411)

Unified Diff: runtime/vm/stack_frame_mips.cc

Issue 13407003: Third codegen test passing for simulated MIPS. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/simulator_mips.cc ('k') | runtime/vm/stub_code_mips.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/stack_frame_mips.cc
===================================================================
--- runtime/vm/stack_frame_mips.cc (revision 20788)
+++ runtime/vm/stack_frame_mips.cc (working copy)
@@ -9,27 +9,28 @@
namespace dart {
+static const int kPcAddressOffsetFromSp = -2 * kWordSize;
+static const int kEntrypointMarkerOffsetFromFp = 2 * kWordSize;
+static const int kSpOffsetFromPreviousFp = 3 * kWordSize;
+
+
intptr_t StackFrame::PcAddressOffsetFromSp() {
- UNIMPLEMENTED();
- return 0;
+ return kPcAddressOffsetFromSp;
}
intptr_t StackFrame::EntrypointMarkerOffsetFromFp() {
- UNIMPLEMENTED();
- return 0;
+ return kEntrypointMarkerOffsetFromFp;
}
uword StackFrame::GetCallerFp() const {
- UNIMPLEMENTED();
- return 0;
+ return *(reinterpret_cast<uword*>(fp()));
}
uword StackFrame::GetCallerSp() const {
- UNIMPLEMENTED();
- return 0;
+ return fp() + kSpOffsetFromPreviousFp;
}
@@ -46,7 +47,9 @@
void StackFrameIterator::SetupLastExitFrameData() {
- UNIMPLEMENTED();
+ Isolate* current = Isolate::Current();
+ uword exit_marker = current->top_exit_frame_info();
+ frames_.fp_ = exit_marker;
}
« no previous file with comments | « runtime/vm/simulator_mips.cc ('k') | runtime/vm/stub_code_mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698