| 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 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 154 public: | 154 public: |
| 155 // FP-relative. | 155 // FP-relative. |
| 156 static const int kCodeOffset = StandardFrameConstants::kExpressionsOffset; | 156 static const int kCodeOffset = StandardFrameConstants::kExpressionsOffset; |
| 157 }; | 157 }; |
| 158 | 158 |
| 159 | 159 |
| 160 class ConstructFrameConstants : public AllStatic { | 160 class ConstructFrameConstants : public AllStatic { |
| 161 public: | 161 public: |
| 162 // FP-relative. | 162 // FP-relative. |
| 163 static const int kImplicitReceiverOffset = | 163 static const int kImplicitReceiverOffset = |
| 164 StandardFrameConstants::kExpressionsOffset - 4 * kPointerSize; | |
| 165 static const int kNewTargetOffset = | |
| 166 StandardFrameConstants::kExpressionsOffset - 3 * kPointerSize; | 164 StandardFrameConstants::kExpressionsOffset - 3 * kPointerSize; |
| 167 static const int kLengthOffset = | 165 static const int kLengthOffset = |
| 168 StandardFrameConstants::kExpressionsOffset - 2 * kPointerSize; | 166 StandardFrameConstants::kExpressionsOffset - 2 * kPointerSize; |
| 169 static const int kAllocationSiteOffset = | 167 static const int kAllocationSiteOffset = |
| 170 StandardFrameConstants::kExpressionsOffset - 1 * kPointerSize; | 168 StandardFrameConstants::kExpressionsOffset - 1 * kPointerSize; |
| 171 static const int kCodeOffset = | 169 static const int kCodeOffset = |
| 172 StandardFrameConstants::kExpressionsOffset - 0 * kPointerSize; | 170 StandardFrameConstants::kExpressionsOffset - 0 * kPointerSize; |
| 173 | 171 |
| 174 static const int kFrameSize = | 172 static const int kFrameSize = |
| 175 StandardFrameConstants::kFixedFrameSize + 5 * kPointerSize; | 173 StandardFrameConstants::kFixedFrameSize + 4 * kPointerSize; |
| 176 }; | 174 }; |
| 177 | 175 |
| 178 | 176 |
| 179 class InterpreterFrameConstants : public AllStatic { | 177 class InterpreterFrameConstants : public AllStatic { |
| 180 public: | 178 public: |
| 181 // Register file pointer relative. | 179 // Register file pointer relative. |
| 182 static const int kLastParamFromRegisterPointer = | 180 static const int kLastParamFromRegisterPointer = |
| 183 StandardFrameConstants::kFixedFrameSize + 2 * kPointerSize; | 181 StandardFrameConstants::kFixedFrameSize + 2 * kPointerSize; |
| 184 static const int kNewTargetFromRegisterPointer = kPointerSize; | 182 static const int kNewTargetFromRegisterPointer = kPointerSize; |
| 185 static const int kFunctionFromRegisterPointer = 2 * kPointerSize; | 183 static const int kFunctionFromRegisterPointer = 2 * kPointerSize; |
| (...skipping 769 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 955 | 953 |
| 956 | 954 |
| 957 // Reads all frames on the current stack and copies them into the current | 955 // Reads all frames on the current stack and copies them into the current |
| 958 // zone memory. | 956 // zone memory. |
| 959 Vector<StackFrame*> CreateStackMap(Isolate* isolate, Zone* zone); | 957 Vector<StackFrame*> CreateStackMap(Isolate* isolate, Zone* zone); |
| 960 | 958 |
| 961 } // namespace internal | 959 } // namespace internal |
| 962 } // namespace v8 | 960 } // namespace v8 |
| 963 | 961 |
| 964 #endif // V8_FRAMES_H_ | 962 #endif // V8_FRAMES_H_ |
| OLD | NEW |