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-inl.h" | 8 #include "src/handles.h" |
| 9 #include "src/utils.h" |
9 | 10 |
10 namespace v8 { | 11 namespace v8 { |
11 namespace internal { | 12 namespace internal { |
| 13 |
| 14 // Forward declarations. |
| 15 class SharedFunctionInfo; |
| 16 |
12 namespace compiler { | 17 namespace compiler { |
13 | 18 |
14 // Flag that describes how to combine the current environment with | 19 // Flag that describes how to combine the current environment with |
15 // the output of a node to obtain a framestate for lazy bailout. | 20 // the output of a node to obtain a framestate for lazy bailout. |
16 class OutputFrameStateCombine { | 21 class OutputFrameStateCombine { |
17 public: | 22 public: |
18 enum Kind { | 23 enum Kind { |
19 kPushOutput, // Push the output on the expression stack. | 24 kPushOutput, // Push the output on the expression stack. |
20 kPokeAt // Poke at the given environment location, | 25 kPokeAt // Poke at the given environment location, |
21 // counting from the top of the stack. | 26 // counting from the top of the stack. |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
156 static const int kFrameStateContextInput = 3; | 161 static const int kFrameStateContextInput = 3; |
157 static const int kFrameStateFunctionInput = 4; | 162 static const int kFrameStateFunctionInput = 4; |
158 static const int kFrameStateOuterStateInput = 5; | 163 static const int kFrameStateOuterStateInput = 5; |
159 static const int kFrameStateInputCount = kFrameStateOuterStateInput + 1; | 164 static const int kFrameStateInputCount = kFrameStateOuterStateInput + 1; |
160 | 165 |
161 } // namespace compiler | 166 } // namespace compiler |
162 } // namespace internal | 167 } // namespace internal |
163 } // namespace v8 | 168 } // namespace v8 |
164 | 169 |
165 #endif // V8_COMPILER_FRAME_STATES_H_ | 170 #endif // V8_COMPILER_FRAME_STATES_H_ |
OLD | NEW |