OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef V8_FRAMES_H_ | 5 #ifndef V8_FRAMES_H_ |
6 #define V8_FRAMES_H_ | 6 #define V8_FRAMES_H_ |
7 | 7 |
8 #include "src/allocation.h" | 8 #include "src/allocation.h" |
9 #include "src/handles.h" | 9 #include "src/handles.h" |
10 #include "src/safepoint-table.h" | 10 #include "src/safepoint-table.h" |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 // is the last object pointer. | 119 // is the last object pointer. |
120 static const int kCPSlotSize = | 120 static const int kCPSlotSize = |
121 FLAG_enable_embedded_constant_pool ? kPointerSize : 0; | 121 FLAG_enable_embedded_constant_pool ? kPointerSize : 0; |
122 static const int kFixedFrameSizeFromFp = 2 * kPointerSize + kCPSlotSize; | 122 static const int kFixedFrameSizeFromFp = 2 * kPointerSize + kCPSlotSize; |
123 static const int kFixedFrameSizeAboveFp = kPCOnStackSize + kFPOnStackSize; | 123 static const int kFixedFrameSizeAboveFp = kPCOnStackSize + kFPOnStackSize; |
124 static const int kFixedFrameSize = | 124 static const int kFixedFrameSize = |
125 kFixedFrameSizeAboveFp + kFixedFrameSizeFromFp; | 125 kFixedFrameSizeAboveFp + kFixedFrameSizeFromFp; |
126 static const int kFixedSlotCountAboveFp = | 126 static const int kFixedSlotCountAboveFp = |
127 kFixedFrameSizeAboveFp / kPointerSize; | 127 kFixedFrameSizeAboveFp / kPointerSize; |
128 static const int kFixedSlotCount = kFixedFrameSize / kPointerSize; | 128 static const int kFixedSlotCount = kFixedFrameSize / kPointerSize; |
| 129 static const int kCPSlotCount = kCPSlotSize / kPointerSize; |
129 static const int kExpressionsOffset = -3 * kPointerSize - kCPSlotSize; | 130 static const int kExpressionsOffset = -3 * kPointerSize - kCPSlotSize; |
130 static const int kMarkerOffset = -2 * kPointerSize - kCPSlotSize; | 131 static const int kMarkerOffset = -2 * kPointerSize - kCPSlotSize; |
131 static const int kContextOffset = -1 * kPointerSize - kCPSlotSize; | 132 static const int kContextOffset = -1 * kPointerSize - kCPSlotSize; |
132 static const int kConstantPoolOffset = kCPSlotSize ? -1 * kPointerSize : 0; | 133 static const int kConstantPoolOffset = kCPSlotSize ? -1 * kPointerSize : 0; |
133 static const int kCallerFPOffset = 0 * kPointerSize; | 134 static const int kCallerFPOffset = 0 * kPointerSize; |
134 static const int kCallerPCOffset = +1 * kFPOnStackSize; | 135 static const int kCallerPCOffset = +1 * kFPOnStackSize; |
135 static const int kCallerSPOffset = kCallerPCOffset + 1 * kPCOnStackSize; | 136 static const int kCallerSPOffset = kCallerPCOffset + 1 * kPCOnStackSize; |
136 | 137 |
137 static const int kLastObjectOffset = kContextOffset; | 138 static const int kLastObjectOffset = kContextOffset; |
138 }; | 139 }; |
(...skipping 807 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
946 }; | 947 }; |
947 | 948 |
948 | 949 |
949 // Reads all frames on the current stack and copies them into the current | 950 // Reads all frames on the current stack and copies them into the current |
950 // zone memory. | 951 // zone memory. |
951 Vector<StackFrame*> CreateStackMap(Isolate* isolate, Zone* zone); | 952 Vector<StackFrame*> CreateStackMap(Isolate* isolate, Zone* zone); |
952 | 953 |
953 } } // namespace v8::internal | 954 } } // namespace v8::internal |
954 | 955 |
955 #endif // V8_FRAMES_H_ | 956 #endif // V8_FRAMES_H_ |
OLD | NEW |