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 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
167 static const int kAllocationSiteOffset = | 167 static const int kAllocationSiteOffset = |
168 StandardFrameConstants::kExpressionsOffset - 1 * kPointerSize; | 168 StandardFrameConstants::kExpressionsOffset - 1 * kPointerSize; |
169 static const int kCodeOffset = | 169 static const int kCodeOffset = |
170 StandardFrameConstants::kExpressionsOffset - 0 * kPointerSize; | 170 StandardFrameConstants::kExpressionsOffset - 0 * kPointerSize; |
171 | 171 |
172 static const int kFrameSize = | 172 static const int kFrameSize = |
173 StandardFrameConstants::kFixedFrameSize + 5 * kPointerSize; | 173 StandardFrameConstants::kFixedFrameSize + 5 * kPointerSize; |
174 }; | 174 }; |
175 | 175 |
176 | 176 |
177 class InterpreterFrameConstants : public AllStatic { | |
178 public: | |
179 // Register file pointer relative. | |
180 static const int kLastParamFromRegisterPointer = | |
181 StandardFrameConstants::kFixedFrameSize + kPointerSize; | |
182 }; | |
183 | |
Michael Starzinger
2015/08/26 13:44:36
nit: Two empty newlines.
rmcilroy
2015/08/27 09:54:39
Done.
| |
177 // Abstract base class for all stack frames. | 184 // Abstract base class for all stack frames. |
178 class StackFrame BASE_EMBEDDED { | 185 class StackFrame BASE_EMBEDDED { |
179 public: | 186 public: |
180 #define DECLARE_TYPE(type, ignore) type, | 187 #define DECLARE_TYPE(type, ignore) type, |
181 enum Type { | 188 enum Type { |
182 NONE = 0, | 189 NONE = 0, |
183 STACK_FRAME_TYPE_LIST(DECLARE_TYPE) | 190 STACK_FRAME_TYPE_LIST(DECLARE_TYPE) |
184 NUMBER_OF_TYPES, | 191 NUMBER_OF_TYPES, |
185 // Used by FrameScope to indicate that the stack frame is constructed | 192 // Used by FrameScope to indicate that the stack frame is constructed |
186 // manually and the FrameScope does not need to emit code. | 193 // manually and the FrameScope does not need to emit code. |
(...skipping 751 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
938 }; | 945 }; |
939 | 946 |
940 | 947 |
941 // Reads all frames on the current stack and copies them into the current | 948 // Reads all frames on the current stack and copies them into the current |
942 // zone memory. | 949 // zone memory. |
943 Vector<StackFrame*> CreateStackMap(Isolate* isolate, Zone* zone); | 950 Vector<StackFrame*> CreateStackMap(Isolate* isolate, Zone* zone); |
944 | 951 |
945 } } // namespace v8::internal | 952 } } // namespace v8::internal |
946 | 953 |
947 #endif // V8_FRAMES_H_ | 954 #endif // V8_FRAMES_H_ |
OLD | NEW |