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