| 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/types.h" | 9 #include "src/types.h" |
| 10 | 10 |
| 11 namespace v8 { | 11 namespace v8 { |
| 12 namespace internal { | 12 namespace internal { |
| 13 namespace compiler { | 13 namespace compiler { |
| 14 | 14 |
| 15 // Forward declarations. | 15 // Forward declarations. |
| 16 class LazyTypeCache; | 16 class LazyTypeCache; |
| 17 | 17 |
| 18 | 18 |
| 19 struct IntType { |
| 20 int32_t min; |
| 21 int32_t max; |
| 22 IntType(int32_t min, int32_t max) : min(min), max(max) {} |
| 23 }; |
| 24 |
| 25 IntType JSShiftRightIntType(IntType lhs, IntType rhs); |
| 26 |
| 27 |
| 19 class Typer { | 28 class Typer { |
| 20 public: | 29 public: |
| 21 Typer(Isolate* isolate, Graph* graph, MaybeHandle<Context> context); | 30 Typer(Isolate* isolate, Graph* graph, MaybeHandle<Context> context); |
| 22 ~Typer(); | 31 ~Typer(); |
| 23 | 32 |
| 24 void Run(); | 33 void Run(); |
| 25 | 34 |
| 26 Graph* graph() { return graph_; } | 35 Graph* graph() { return graph_; } |
| 27 MaybeHandle<Context> context() { return context_; } | 36 MaybeHandle<Context> context() { return context_; } |
| 28 Zone* zone() { return graph_->zone(); } | 37 Zone* zone() { return graph_->zone(); } |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 LazyTypeCache* cache_; | 72 LazyTypeCache* cache_; |
| 64 | 73 |
| 65 DISALLOW_COPY_AND_ASSIGN(Typer); | 74 DISALLOW_COPY_AND_ASSIGN(Typer); |
| 66 }; | 75 }; |
| 67 | 76 |
| 68 } // namespace compiler | 77 } // namespace compiler |
| 69 } // namespace internal | 78 } // namespace internal |
| 70 } // namespace v8 | 79 } // namespace v8 |
| 71 | 80 |
| 72 #endif // V8_COMPILER_TYPER_H_ | 81 #endif // V8_COMPILER_TYPER_H_ |
| OLD | NEW |