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/v8.h" | 8 #include "src/v8.h" |
9 | 9 |
10 #include "src/compiler/graph.h" | 10 #include "src/compiler/graph.h" |
11 #include "src/compiler/opcodes.h" | 11 #include "src/compiler/opcodes.h" |
12 #include "src/types.h" | 12 #include "src/types.h" |
13 | 13 |
14 namespace v8 { | 14 namespace v8 { |
15 namespace internal { | 15 namespace internal { |
16 namespace compiler { | 16 namespace compiler { |
17 | 17 |
18 struct LazyTypeCache; | 18 // Forward declarations. |
| 19 class LazyTypeCache; |
| 20 |
19 | 21 |
20 class Typer { | 22 class Typer { |
21 public: | 23 public: |
22 explicit Typer(Graph* graph, MaybeHandle<Context> context); | 24 explicit Typer(Graph* graph, MaybeHandle<Context> context); |
23 ~Typer(); | 25 ~Typer(); |
24 | 26 |
25 void Run(); | 27 void Run(); |
26 | 28 |
27 Graph* graph() { return graph_; } | 29 Graph* graph() { return graph_; } |
28 MaybeHandle<Context> context() { return context_; } | 30 MaybeHandle<Context> context() { return context_; } |
(...skipping 18 matching lines...) Expand all Loading... |
47 Type* singleton_true; | 49 Type* singleton_true; |
48 Type* singleton_zero; | 50 Type* singleton_zero; |
49 Type* singleton_one; | 51 Type* singleton_one; |
50 Type* zero_or_one; | 52 Type* zero_or_one; |
51 Type* zeroish; | 53 Type* zeroish; |
52 Type* signed32ish; | 54 Type* signed32ish; |
53 Type* unsigned32ish; | 55 Type* unsigned32ish; |
54 Type* falsish; | 56 Type* falsish; |
55 Type* integer; | 57 Type* integer; |
56 Type* weakint; | 58 Type* weakint; |
57 Type* signed8_; | |
58 Type* unsigned8_; | |
59 Type* signed16_; | |
60 Type* unsigned16_; | |
61 Type* number_fun0_; | 59 Type* number_fun0_; |
62 Type* number_fun1_; | 60 Type* number_fun1_; |
63 Type* number_fun2_; | 61 Type* number_fun2_; |
64 Type* weakint_fun1_; | 62 Type* weakint_fun1_; |
65 Type* random_fun_; | 63 Type* random_fun_; |
66 LazyTypeCache* cache_; | 64 LazyTypeCache* cache_; |
67 | 65 |
68 ZoneVector<Handle<Object> > weaken_min_limits_; | 66 ZoneVector<Handle<Object> > weaken_min_limits_; |
69 ZoneVector<Handle<Object> > weaken_max_limits_; | 67 ZoneVector<Handle<Object> > weaken_max_limits_; |
70 DISALLOW_COPY_AND_ASSIGN(Typer); | 68 DISALLOW_COPY_AND_ASSIGN(Typer); |
71 }; | 69 }; |
72 | 70 |
73 } // namespace compiler | 71 } // namespace compiler |
74 } // namespace internal | 72 } // namespace internal |
75 } // namespace v8 | 73 } // namespace v8 |
76 | 74 |
77 #endif // V8_COMPILER_TYPER_H_ | 75 #endif // V8_COMPILER_TYPER_H_ |
OLD | NEW |