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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 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 kConstructStub // Represents a ConstructStubFrame. | 83 kConstructStub // Represents a ConstructStubFrame. |
83 }; | 84 }; |
84 | 85 |
85 | |
86 class FrameStateFunctionInfo { | 86 class FrameStateFunctionInfo { |
87 public: | 87 public: |
88 FrameStateFunctionInfo(FrameStateType type, int parameter_count, | 88 FrameStateFunctionInfo(FrameStateType type, int parameter_count, |
89 int local_count, | 89 int local_count, |
90 Handle<SharedFunctionInfo> shared_info) | 90 Handle<SharedFunctionInfo> shared_info) |
91 : type_(type), | 91 : type_(type), |
92 parameter_count_(parameter_count), | 92 parameter_count_(parameter_count), |
93 local_count_(local_count), | 93 local_count_(local_count), |
94 shared_info_(shared_info) {} | 94 shared_info_(shared_info) {} |
95 | 95 |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
156 static const int kFrameStateContextInput = 3; | 156 static const int kFrameStateContextInput = 3; |
157 static const int kFrameStateFunctionInput = 4; | 157 static const int kFrameStateFunctionInput = 4; |
158 static const int kFrameStateOuterStateInput = 5; | 158 static const int kFrameStateOuterStateInput = 5; |
159 static const int kFrameStateInputCount = kFrameStateOuterStateInput + 1; | 159 static const int kFrameStateInputCount = kFrameStateOuterStateInput + 1; |
160 | 160 |
161 } // namespace compiler | 161 } // namespace compiler |
162 } // namespace internal | 162 } // namespace internal |
163 } // namespace v8 | 163 } // namespace v8 |
164 | 164 |
165 #endif // V8_COMPILER_FRAME_STATES_H_ | 165 #endif // V8_COMPILER_FRAME_STATES_H_ |
OLD | NEW |