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 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
173 static const int kFrameSize = | 173 static const int kFrameSize = |
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 }; | 184 }; |
184 | 185 |
185 | 186 |
186 // Abstract base class for all stack frames. | 187 // Abstract base class for all stack frames. |
187 class StackFrame BASE_EMBEDDED { | 188 class StackFrame BASE_EMBEDDED { |
188 public: | 189 public: |
189 #define DECLARE_TYPE(type, ignore) type, | 190 #define DECLARE_TYPE(type, ignore) type, |
190 enum Type { | 191 enum Type { |
191 NONE = 0, | 192 NONE = 0, |
192 STACK_FRAME_TYPE_LIST(DECLARE_TYPE) | 193 STACK_FRAME_TYPE_LIST(DECLARE_TYPE) |
(...skipping 747 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
940 }; | 941 }; |
941 | 942 |
942 | 943 |
943 // Reads all frames on the current stack and copies them into the current | 944 // Reads all frames on the current stack and copies them into the current |
944 // zone memory. | 945 // zone memory. |
945 Vector<StackFrame*> CreateStackMap(Isolate* isolate, Zone* zone); | 946 Vector<StackFrame*> CreateStackMap(Isolate* isolate, Zone* zone); |
946 | 947 |
947 } } // namespace v8::internal | 948 } } // namespace v8::internal |
948 | 949 |
949 #endif // V8_FRAMES_H_ | 950 #endif // V8_FRAMES_H_ |
OLD | NEW |