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_IA32_FRAMES_IA32_H_ | 5 #ifndef V8_IA32_FRAMES_IA32_H_ |
6 #define V8_IA32_FRAMES_IA32_H_ | 6 #define V8_IA32_FRAMES_IA32_H_ |
7 | 7 |
8 namespace v8 { | 8 namespace v8 { |
9 namespace internal { | 9 namespace internal { |
10 | 10 |
(...skipping 28 matching lines...) Expand all Loading... |
39 public: | 39 public: |
40 static const int kCallerFPOffset = -6 * kPointerSize; | 40 static const int kCallerFPOffset = -6 * kPointerSize; |
41 | 41 |
42 static const int kNewTargetArgOffset = +2 * kPointerSize; | 42 static const int kNewTargetArgOffset = +2 * kPointerSize; |
43 static const int kFunctionArgOffset = +3 * kPointerSize; | 43 static const int kFunctionArgOffset = +3 * kPointerSize; |
44 static const int kReceiverArgOffset = +4 * kPointerSize; | 44 static const int kReceiverArgOffset = +4 * kPointerSize; |
45 static const int kArgcOffset = +5 * kPointerSize; | 45 static const int kArgcOffset = +5 * kPointerSize; |
46 static const int kArgvOffset = +6 * kPointerSize; | 46 static const int kArgvOffset = +6 * kPointerSize; |
47 }; | 47 }; |
48 | 48 |
49 | 49 class ExitFrameConstants : public TypedFrameConstants { |
50 class ExitFrameConstants : public AllStatic { | |
51 public: | 50 public: |
52 static const int kFrameSize = 2 * kPointerSize; | 51 static const int kSPOffset = TYPED_FRAME_PUSHED_VALUE_OFFSET(0); |
53 | 52 static const int kCodeOffset = TYPED_FRAME_PUSHED_VALUE_OFFSET(1); |
54 static const int kCodeOffset = -2 * kPointerSize; | 53 DEFINE_TYPED_FRAME_SIZES(2); |
55 static const int kSPOffset = -1 * kPointerSize; | |
56 | 54 |
57 static const int kCallerFPOffset = 0 * kPointerSize; | 55 static const int kCallerFPOffset = 0 * kPointerSize; |
58 static const int kCallerPCOffset = +1 * kPointerSize; | 56 static const int kCallerPCOffset = +1 * kPointerSize; |
59 | 57 |
60 // FP-relative displacement of the caller's SP. It points just | 58 // FP-relative displacement of the caller's SP. It points just |
61 // below the saved PC. | 59 // below the saved PC. |
62 static const int kCallerSPDisplacement = +2 * kPointerSize; | 60 static const int kCallerSPDisplacement = +2 * kPointerSize; |
63 | 61 |
64 static const int kConstantPoolOffset = 0; // Not used | 62 static const int kConstantPoolOffset = 0; // Not used |
65 }; | 63 }; |
66 | 64 |
67 | 65 |
68 class JavaScriptFrameConstants : public AllStatic { | 66 class JavaScriptFrameConstants : public AllStatic { |
69 public: | 67 public: |
70 // FP-relative. | 68 // FP-relative. |
71 static const int kLocal0Offset = StandardFrameConstants::kExpressionsOffset; | 69 static const int kLocal0Offset = StandardFrameConstants::kExpressionsOffset; |
72 static const int kLastParameterOffset = +2 * kPointerSize; | 70 static const int kLastParameterOffset = +2 * kPointerSize; |
73 static const int kFunctionOffset = StandardFrameConstants::kMarkerOffset; | 71 static const int kFunctionOffset = StandardFrameConstants::kFunctionOffset; |
74 | 72 |
75 // Caller SP-relative. | 73 // Caller SP-relative. |
76 static const int kParam0Offset = -2 * kPointerSize; | 74 static const int kParam0Offset = -2 * kPointerSize; |
77 static const int kReceiverOffset = -1 * kPointerSize; | 75 static const int kReceiverOffset = -1 * kPointerSize; |
78 | 76 |
79 static const int kDynamicAlignmentStateOffset = kLocal0Offset; | 77 static const int kDynamicAlignmentStateOffset = kLocal0Offset; |
80 }; | 78 }; |
81 | 79 |
82 | 80 |
83 } // namespace internal | 81 } // namespace internal |
84 } // namespace v8 | 82 } // namespace v8 |
85 | 83 |
86 #endif // V8_IA32_FRAMES_IA32_H_ | 84 #endif // V8_IA32_FRAMES_IA32_H_ |
OLD | NEW |