OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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_OSR_H_ | 5 #ifndef V8_COMPILER_OSR_H_ |
6 #define V8_COMPILER_OSR_H_ | 6 #define V8_COMPILER_OSR_H_ |
7 | 7 |
8 #include "src/zone.h" | 8 #include "src/zone/zone.h" |
9 | 9 |
10 // TurboFan structures OSR graphs in a way that separates almost all phases of | 10 // TurboFan structures OSR graphs in a way that separates almost all phases of |
11 // compilation from OSR implementation details. This is accomplished with | 11 // compilation from OSR implementation details. This is accomplished with |
12 // special control nodes that are added at graph building time. In particular, | 12 // special control nodes that are added at graph building time. In particular, |
13 // the graph is built in such a way that typing still computes the best types | 13 // the graph is built in such a way that typing still computes the best types |
14 // and optimizations and lowering work unchanged. All that remains is to | 14 // and optimizations and lowering work unchanged. All that remains is to |
15 // deconstruct the OSR artifacts before scheduling and code generation. | 15 // deconstruct the OSR artifacts before scheduling and code generation. |
16 | 16 |
17 // Graphs built for OSR from the AstGraphBuilder are structured as follows: | 17 // Graphs built for OSR from the AstGraphBuilder are structured as follows: |
18 // Start | 18 // Start |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 private: | 117 private: |
118 size_t parameter_count_; | 118 size_t parameter_count_; |
119 size_t stack_slot_count_; | 119 size_t stack_slot_count_; |
120 }; | 120 }; |
121 | 121 |
122 } // namespace compiler | 122 } // namespace compiler |
123 } // namespace internal | 123 } // namespace internal |
124 } // namespace v8 | 124 } // namespace v8 |
125 | 125 |
126 #endif // V8_COMPILER_OSR_H_ | 126 #endif // V8_COMPILER_OSR_H_ |
OLD | NEW |