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