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

Side by Side Diff: runtime/vm/stack_frame_x64.h

Issue 22825023: Uses an object pool on x64 (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 3 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 #ifndef VM_STACK_FRAME_X64_H_ 5 #ifndef VM_STACK_FRAME_X64_H_
6 #define VM_STACK_FRAME_X64_H_ 6 #define VM_STACK_FRAME_X64_H_
7 7
8 namespace dart { 8 namespace dart {
9 9
10 /* X64 Dart Frame Layout 10 /* X64 Dart Frame Layout
11 11
12 | | <- TOS 12 | | <- TOS
13 Callee frame | ... | 13 Callee frame | ... |
14 | saved PP |
15 | callee's PC marker |
14 | saved RBP | (RBP of current frame) 16 | saved RBP | (RBP of current frame)
15 | saved PC | (PC of current frame) 17 | saved PC | (PC of current frame)
16 +--------------------+ 18 +--------------------+
17 Current frame | ... | <- RSP of current frame 19 Current frame | ... | <- RSP of current frame
18 | first local | 20 | first local |
21 | caller's PP |
19 | PC marker | (current frame's code entry + offset) 22 | PC marker | (current frame's code entry + offset)
20 | caller's RBP | <- RBP of current frame 23 | caller's RBP | <- RBP of current frame
21 | caller's ret addr | (PC of caller frame) 24 | caller's ret addr | (PC of caller frame)
22 +--------------------+ 25 +--------------------+
23 Caller frame | last parameter | <- RSP of caller frame 26 Caller frame | last parameter | <- RSP of caller frame
24 | ... | 27 | ... |
25 */ 28 */
26 29
27 static const int kDartFrameFixedSize = 3; // PC marker, RBP, PC. 30 static const int kDartFrameFixedSize = 4; // PC marker, RBP, PP, PC.
28 static const int kSavedPcSlotFromSp = -1; 31 static const int kSavedPcSlotFromSp = -1;
29 static const int kFirstLocalSlotFromFp = -2; 32
33 static const int kFirstLocalSlotFromFp = -3;
34 static const int kSavedCallerPpSlotFromFp = -2;
30 static const int kPcMarkerSlotFromFp = -1; 35 static const int kPcMarkerSlotFromFp = -1;
31 static const int kSavedCallerFpSlotFromFp = 0; 36 static const int kSavedCallerFpSlotFromFp = 0;
32 static const int kSavedCallerPcSlotFromFp = 1; 37 static const int kSavedCallerPcSlotFromFp = 1;
38
33 static const int kParamEndSlotFromFp = 1; // One slot past last parameter. 39 static const int kParamEndSlotFromFp = 1; // One slot past last parameter.
34 static const int kCallerSpSlotFromFp = 2; 40 static const int kCallerSpSlotFromFp = 2;
35 41 static const int kSavedAboveReturnAddress = 3; // Saved above return address.
36 // No pool pointer on X64 (indicated by aliasing saved fp).
37 static const int kSavedCallerPpSlotFromFp = kSavedCallerFpSlotFromFp;
38 42
39 // Entry and exit frame layout. 43 // Entry and exit frame layout.
40 static const int kSavedContextSlotFromEntryFp = -9; 44 static const int kSavedContextSlotFromEntryFp = -10;
41 static const int kExitLinkSlotFromEntryFp = -8; 45 static const int kExitLinkSlotFromEntryFp = -9;
42 46
43 } // namespace dart 47 } // namespace dart
44 48
45 #endif // VM_STACK_FRAME_X64_H_ 49 #endif // VM_STACK_FRAME_X64_H_
46 50
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698