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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 kInterpretedFunction, // Represents an InterpretedFrame. | 80 kInterpretedFunction, // Represents an InterpretedFrame. |
81 kArgumentsAdaptor, // Represents an ArgumentsAdaptorFrame. | 81 kArgumentsAdaptor, // Represents an ArgumentsAdaptorFrame. |
82 kTailCallerFunction, // Represents a frame removed by tail call elimination. | 82 kTailCallerFunction, // Represents a frame removed by tail call elimination. |
83 kConstructStub, // Represents a ConstructStubFrame. | 83 kConstructStub, // Represents a ConstructStubFrame. |
84 kGetterStub, // Represents a GetterStubFrame. | 84 kGetterStub, // Represents a GetterStubFrame. |
85 kSetterStub // Represents a SetterStubFrame. | 85 kSetterStub, // Represents a SetterStubFrame. |
| 86 kBuiltinContinuation // Represents a continuation to a stub |
86 }; | 87 }; |
87 | 88 |
88 class FrameStateFunctionInfo { | 89 class FrameStateFunctionInfo { |
89 public: | 90 public: |
90 FrameStateFunctionInfo(FrameStateType type, int parameter_count, | 91 FrameStateFunctionInfo(FrameStateType type, int parameter_count, |
91 int local_count, | 92 int local_count, |
92 Handle<SharedFunctionInfo> shared_info) | 93 Handle<SharedFunctionInfo> shared_info) |
93 : type_(type), | 94 : type_(type), |
94 parameter_count_(parameter_count), | 95 parameter_count_(parameter_count), |
95 local_count_(local_count), | 96 local_count_(local_count), |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 static const int kFrameStateContextInput = 3; | 159 static const int kFrameStateContextInput = 3; |
159 static const int kFrameStateFunctionInput = 4; | 160 static const int kFrameStateFunctionInput = 4; |
160 static const int kFrameStateOuterStateInput = 5; | 161 static const int kFrameStateOuterStateInput = 5; |
161 static const int kFrameStateInputCount = kFrameStateOuterStateInput + 1; | 162 static const int kFrameStateInputCount = kFrameStateOuterStateInput + 1; |
162 | 163 |
163 } // namespace compiler | 164 } // namespace compiler |
164 } // namespace internal | 165 } // namespace internal |
165 } // namespace v8 | 166 } // namespace v8 |
166 | 167 |
167 #endif // V8_COMPILER_FRAME_STATES_H_ | 168 #endif // V8_COMPILER_FRAME_STATES_H_ |
OLD | NEW |