| 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_TYPER_H_ | 5 #ifndef V8_COMPILER_TYPER_H_ |
| 6 #define V8_COMPILER_TYPER_H_ | 6 #define V8_COMPILER_TYPER_H_ |
| 7 | 7 |
| 8 #include "src/compiler/graph.h" | 8 #include "src/compiler/graph.h" |
| 9 #include "src/compiler/operation-typer.h" | 9 #include "src/compiler/operation-typer.h" |
| 10 #include "src/types.h" | |
| 11 | 10 |
| 12 namespace v8 { | 11 namespace v8 { |
| 13 namespace internal { | 12 namespace internal { |
| 13 namespace compiler { |
| 14 | 14 |
| 15 // Forward declarations. | 15 // Forward declarations. |
| 16 class TypeCache; | |
| 17 | |
| 18 namespace compiler { | |
| 19 | |
| 20 class LoopVariableOptimizer; | 16 class LoopVariableOptimizer; |
| 21 class OperationTyper; | |
| 22 | 17 |
| 23 class Typer { | 18 class Typer { |
| 24 public: | 19 public: |
| 25 Typer(Isolate* isolate, Graph* graph); | 20 Typer(Isolate* isolate, Graph* graph); |
| 26 ~Typer(); | 21 ~Typer(); |
| 27 | 22 |
| 28 void Run(); | 23 void Run(); |
| 29 // TODO(bmeurer,jarin): Remove this once we have a notion of "roots" on Graph. | 24 // TODO(bmeurer,jarin): Remove this once we have a notion of "roots" on Graph. |
| 30 void Run(const ZoneVector<Node*>& roots, | 25 void Run(const ZoneVector<Node*>& roots, |
| 31 LoopVariableOptimizer* induction_vars); | 26 LoopVariableOptimizer* induction_vars); |
| (...skipping 20 matching lines...) Expand all Loading... |
| 52 Type* truish_; | 47 Type* truish_; |
| 53 | 48 |
| 54 DISALLOW_COPY_AND_ASSIGN(Typer); | 49 DISALLOW_COPY_AND_ASSIGN(Typer); |
| 55 }; | 50 }; |
| 56 | 51 |
| 57 } // namespace compiler | 52 } // namespace compiler |
| 58 } // namespace internal | 53 } // namespace internal |
| 59 } // namespace v8 | 54 } // namespace v8 |
| 60 | 55 |
| 61 #endif // V8_COMPILER_TYPER_H_ | 56 #endif // V8_COMPILER_TYPER_H_ |
| OLD | NEW |