OLD | NEW |
1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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_COMPILER_FRAME_STATES_H_ | 5 #ifndef V8_COMPILER_FRAME_STATES_H_ |
6 #define V8_COMPILER_FRAME_STATES_H_ | 6 #define V8_COMPILER_FRAME_STATES_H_ |
7 | 7 |
8 #include "src/handles.h" | 8 #include "src/handles.h" |
9 #include "src/utils.h" | 9 #include "src/utils.h" |
10 | 10 |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 : kind_(kind), parameter_(parameter) {} | 70 : kind_(kind), parameter_(parameter) {} |
71 | 71 |
72 Kind const kind_; | 72 Kind const kind_; |
73 size_t const parameter_; | 73 size_t const parameter_; |
74 }; | 74 }; |
75 | 75 |
76 | 76 |
77 // The type of stack frame that a FrameState node represents. | 77 // The type of stack frame that a FrameState node represents. |
78 enum class FrameStateType { | 78 enum class FrameStateType { |
79 kJavaScriptFunction, // Represents an unoptimized JavaScriptFrame. | 79 kJavaScriptFunction, // Represents an unoptimized JavaScriptFrame. |
80 kArgumentsAdaptor // Represents an ArgumentsAdaptorFrame. | 80 kArgumentsAdaptor, // Represents an ArgumentsAdaptorFrame. |
| 81 kConstructStub // Represents a ConstructStubFrame. |
81 }; | 82 }; |
82 | 83 |
83 | 84 |
84 enum ContextCallingMode { | 85 enum ContextCallingMode { |
85 CALL_MAINTAINS_NATIVE_CONTEXT, | 86 CALL_MAINTAINS_NATIVE_CONTEXT, |
86 CALL_CHANGES_NATIVE_CONTEXT | 87 CALL_CHANGES_NATIVE_CONTEXT |
87 }; | 88 }; |
88 | 89 |
89 | 90 |
90 class FrameStateFunctionInfo { | 91 class FrameStateFunctionInfo { |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
161 static const int kFrameStateContextInput = 3; | 162 static const int kFrameStateContextInput = 3; |
162 static const int kFrameStateFunctionInput = 4; | 163 static const int kFrameStateFunctionInput = 4; |
163 static const int kFrameStateOuterStateInput = 5; | 164 static const int kFrameStateOuterStateInput = 5; |
164 static const int kFrameStateInputCount = kFrameStateOuterStateInput + 1; | 165 static const int kFrameStateInputCount = kFrameStateOuterStateInput + 1; |
165 | 166 |
166 } // namespace compiler | 167 } // namespace compiler |
167 } // namespace internal | 168 } // namespace internal |
168 } // namespace v8 | 169 } // namespace v8 |
169 | 170 |
170 #endif // V8_COMPILER_FRAME_STATES_H_ | 171 #endif // V8_COMPILER_FRAME_STATES_H_ |
OLD | NEW |