| 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 307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 318 class InterpreterFrameConstants : public AllStatic { | 318 class InterpreterFrameConstants : public AllStatic { |
| 319 public: | 319 public: |
| 320 // Fixed frame includes new.target and bytecode offset. | 320 // Fixed frame includes new.target and bytecode offset. |
| 321 static const int kFixedFrameSize = | 321 static const int kFixedFrameSize = |
| 322 StandardFrameConstants::kFixedFrameSize + 3 * kPointerSize; | 322 StandardFrameConstants::kFixedFrameSize + 3 * kPointerSize; |
| 323 static const int kFixedFrameSizeFromFp = | 323 static const int kFixedFrameSizeFromFp = |
| 324 StandardFrameConstants::kFixedFrameSizeFromFp + 3 * kPointerSize; | 324 StandardFrameConstants::kFixedFrameSizeFromFp + 3 * kPointerSize; |
| 325 | 325 |
| 326 // FP-relative. | 326 // FP-relative. |
| 327 static const int kLastParamFromFp = StandardFrameConstants::kCallerSPOffset; | 327 static const int kLastParamFromFp = StandardFrameConstants::kCallerSPOffset; |
| 328 static const int kCallerPCOffsetFromFp = |
| 329 StandardFrameConstants::kCallerPCOffset; |
| 328 static const int kNewTargetFromFp = | 330 static const int kNewTargetFromFp = |
| 329 -StandardFrameConstants::kFixedFrameSizeFromFp - 1 * kPointerSize; | 331 -StandardFrameConstants::kFixedFrameSizeFromFp - 1 * kPointerSize; |
| 330 static const int kBytecodeArrayFromFp = | 332 static const int kBytecodeArrayFromFp = |
| 331 -StandardFrameConstants::kFixedFrameSizeFromFp - 2 * kPointerSize; | 333 -StandardFrameConstants::kFixedFrameSizeFromFp - 2 * kPointerSize; |
| 332 static const int kBytecodeOffsetFromFp = | 334 static const int kBytecodeOffsetFromFp = |
| 333 -StandardFrameConstants::kFixedFrameSizeFromFp - 3 * kPointerSize; | 335 -StandardFrameConstants::kFixedFrameSizeFromFp - 3 * kPointerSize; |
| 334 static const int kRegisterFileFromFp = | 336 static const int kRegisterFileFromFp = |
| 335 -StandardFrameConstants::kFixedFrameSizeFromFp - 4 * kPointerSize; | 337 -StandardFrameConstants::kFixedFrameSizeFromFp - 4 * kPointerSize; |
| 336 | 338 |
| 337 static const int kExpressionsOffset = kRegisterFileFromFp; | 339 static const int kExpressionsOffset = kRegisterFileFromFp; |
| (...skipping 880 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1218 | 1220 |
| 1219 | 1221 |
| 1220 // Reads all frames on the current stack and copies them into the current | 1222 // Reads all frames on the current stack and copies them into the current |
| 1221 // zone memory. | 1223 // zone memory. |
| 1222 Vector<StackFrame*> CreateStackMap(Isolate* isolate, Zone* zone); | 1224 Vector<StackFrame*> CreateStackMap(Isolate* isolate, Zone* zone); |
| 1223 | 1225 |
| 1224 } // namespace internal | 1226 } // namespace internal |
| 1225 } // namespace v8 | 1227 } // namespace v8 |
| 1226 | 1228 |
| 1227 #endif // V8_FRAMES_H_ | 1229 #endif // V8_FRAMES_H_ |
| OLD | NEW |