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

Unified Diff: runtime/vm/stack_frame_arm.h

Issue 14925005: Remove stack_frame_<arch>.cc files. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 7 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/stack_frame.cc ('k') | runtime/vm/stack_frame_arm.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/stack_frame_arm.h
===================================================================
--- runtime/vm/stack_frame_arm.h (revision 22469)
+++ runtime/vm/stack_frame_arm.h (working copy)
@@ -9,26 +9,33 @@
/* ARM Dart Frame Layout
- | | <- TOS
-Callee frame | ... |
- | current LR | (PC of current frame)
- | PC Marker | (callee's frame code entry)
- +-------------------+
-Current frame | ... | <- SP of current frame
- | first local |
- | caller's PP |
- | caller's FP | <- FP of current frame
- | caller's LR | (PC of caller frame)
- | PC Marker | (current frame's code entry)
- +-------------------+
-Caller frame | last parameter |
- | ... |
+ | | <- TOS
+Callee frame | ... |
+ | current LR | (PC of current frame)
+ | callee's PC marker |
+ +--------------------+
+Current frame | ... | <- SP of current frame
+ | first local |
+ | caller's PP |
+ | caller's FP | <- FP of current frame
+ | caller's LR | (PC of caller frame)
+ | PC marker | (current frame's code entry + offset)
+ +--------------------+
+Caller frame | last parameter | <- SP of caller frame
+ | ... |
*/
-static const int kLastParamSlotIndex = 3; // From fp.
-static const int kFirstLocalSlotIndex = -2; // From fp.
-static const int kPcSlotIndexFromSp = -2;
+static const int kSavedPcSlotFromSp = -2;
+static const int kFirstLocalSlotFromFp = -2;
+static const int kSavedCallerFpSlotFromFp = 0;
+static const int kPcMarkerSlotFromFp = 2;
+static const int kParamEndSlotFromFp = 2; // Same slot as current pc marker.
+static const int kCallerSpSlotFromFp = 3;
+// Entry and exit frame layout.
+static const int kSavedContextSlotFromEntryFp = -10;
+static const int kExitLinkSlotFromEntryFp = -9;
+
} // namespace dart
#endif // VM_STACK_FRAME_ARM_H_
« no previous file with comments | « runtime/vm/stack_frame.cc ('k') | runtime/vm/stack_frame_arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698