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 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
174 StandardFrameConstants::kFixedFrameSize + 5 * kPointerSize; | 174 StandardFrameConstants::kFixedFrameSize + 5 * kPointerSize; |
175 }; | 175 }; |
176 | 176 |
177 | 177 |
178 class InterpreterFrameConstants : public AllStatic { | 178 class InterpreterFrameConstants : public AllStatic { |
179 public: | 179 public: |
180 // Register file pointer relative. | 180 // Register file pointer relative. |
181 static const int kLastParamFromRegisterPointer = | 181 static const int kLastParamFromRegisterPointer = |
182 StandardFrameConstants::kFixedFrameSize + kPointerSize; | 182 StandardFrameConstants::kFixedFrameSize + kPointerSize; |
183 static const int kFunctionFromRegisterPointer = kPointerSize; | 183 static const int kFunctionFromRegisterPointer = kPointerSize; |
| 184 static const int kContextFromRegisterPointer = 2 * kPointerSize; |
184 }; | 185 }; |
185 | 186 |
186 | 187 |
187 // Abstract base class for all stack frames. | 188 // Abstract base class for all stack frames. |
188 class StackFrame BASE_EMBEDDED { | 189 class StackFrame BASE_EMBEDDED { |
189 public: | 190 public: |
190 #define DECLARE_TYPE(type, ignore) type, | 191 #define DECLARE_TYPE(type, ignore) type, |
191 enum Type { | 192 enum Type { |
192 NONE = 0, | 193 NONE = 0, |
193 STACK_FRAME_TYPE_LIST(DECLARE_TYPE) | 194 STACK_FRAME_TYPE_LIST(DECLARE_TYPE) |
(...skipping 752 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
946 | 947 |
947 | 948 |
948 // Reads all frames on the current stack and copies them into the current | 949 // Reads all frames on the current stack and copies them into the current |
949 // zone memory. | 950 // zone memory. |
950 Vector<StackFrame*> CreateStackMap(Isolate* isolate, Zone* zone); | 951 Vector<StackFrame*> CreateStackMap(Isolate* isolate, Zone* zone); |
951 | 952 |
952 } // namespace internal | 953 } // namespace internal |
953 } // namespace v8 | 954 } // namespace v8 |
954 | 955 |
955 #endif // V8_FRAMES_H_ | 956 #endif // V8_FRAMES_H_ |
OLD | NEW |