| 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 290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 301 public: | 301 public: |
| 302 // FP-relative. | 302 // FP-relative. |
| 303 static const int kFunctionOffset = TYPED_FRAME_PUSHED_VALUE_OFFSET(1); | 303 static const int kFunctionOffset = TYPED_FRAME_PUSHED_VALUE_OFFSET(1); |
| 304 DEFINE_TYPED_FRAME_SIZES(2); | 304 DEFINE_TYPED_FRAME_SIZES(2); |
| 305 }; | 305 }; |
| 306 | 306 |
| 307 class ConstructFrameConstants : public TypedFrameConstants { | 307 class ConstructFrameConstants : public TypedFrameConstants { |
| 308 public: | 308 public: |
| 309 // FP-relative. | 309 // FP-relative. |
| 310 static const int kContextOffset = TYPED_FRAME_PUSHED_VALUE_OFFSET(0); | 310 static const int kContextOffset = TYPED_FRAME_PUSHED_VALUE_OFFSET(0); |
| 311 static const int kAllocationSiteOffset = TYPED_FRAME_PUSHED_VALUE_OFFSET(1); | 311 static const int kLengthOffset = TYPED_FRAME_PUSHED_VALUE_OFFSET(1); |
| 312 static const int kLengthOffset = TYPED_FRAME_PUSHED_VALUE_OFFSET(2); | 312 static const int kImplicitReceiverOffset = TYPED_FRAME_PUSHED_VALUE_OFFSET(2); |
| 313 static const int kImplicitReceiverOffset = TYPED_FRAME_PUSHED_VALUE_OFFSET(3); | 313 DEFINE_TYPED_FRAME_SIZES(3); |
| 314 DEFINE_TYPED_FRAME_SIZES(4); | |
| 315 }; | 314 }; |
| 316 | 315 |
| 317 class StubFailureTrampolineFrameConstants : public InternalFrameConstants { | 316 class StubFailureTrampolineFrameConstants : public InternalFrameConstants { |
| 318 public: | 317 public: |
| 319 static const int kArgumentsArgumentsOffset = | 318 static const int kArgumentsArgumentsOffset = |
| 320 TYPED_FRAME_PUSHED_VALUE_OFFSET(0); | 319 TYPED_FRAME_PUSHED_VALUE_OFFSET(0); |
| 321 static const int kArgumentsLengthOffset = TYPED_FRAME_PUSHED_VALUE_OFFSET(1); | 320 static const int kArgumentsLengthOffset = TYPED_FRAME_PUSHED_VALUE_OFFSET(1); |
| 322 static const int kArgumentsPointerOffset = TYPED_FRAME_PUSHED_VALUE_OFFSET(2); | 321 static const int kArgumentsPointerOffset = TYPED_FRAME_PUSHED_VALUE_OFFSET(2); |
| 323 static const int kFixedHeaderBottomOffset = kArgumentsPointerOffset; | 322 static const int kFixedHeaderBottomOffset = kArgumentsPointerOffset; |
| 324 DEFINE_TYPED_FRAME_SIZES(3); | 323 DEFINE_TYPED_FRAME_SIZES(3); |
| (...skipping 1003 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1328 | 1327 |
| 1329 | 1328 |
| 1330 // Reads all frames on the current stack and copies them into the current | 1329 // Reads all frames on the current stack and copies them into the current |
| 1331 // zone memory. | 1330 // zone memory. |
| 1332 Vector<StackFrame*> CreateStackMap(Isolate* isolate, Zone* zone); | 1331 Vector<StackFrame*> CreateStackMap(Isolate* isolate, Zone* zone); |
| 1333 | 1332 |
| 1334 } // namespace internal | 1333 } // namespace internal |
| 1335 } // namespace v8 | 1334 } // namespace v8 |
| 1336 | 1335 |
| 1337 #endif // V8_FRAMES_H_ | 1336 #endif // V8_FRAMES_H_ |
| OLD | NEW |