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/globals.h" | 10 #include "src/globals.h" |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 Isolate* isolate() const { return isolate_; } | 43 Isolate* isolate() const { return isolate_; } |
44 OperationTyper* operation_typer() { return &operation_typer_; } | 44 OperationTyper* operation_typer() { return &operation_typer_; } |
45 | 45 |
46 Isolate* const isolate_; | 46 Isolate* const isolate_; |
47 Flags const flags_; | 47 Flags const flags_; |
48 Graph* const graph_; | 48 Graph* const graph_; |
49 Decorator* decorator_; | 49 Decorator* decorator_; |
50 TypeCache const& cache_; | 50 TypeCache const& cache_; |
51 OperationTyper operation_typer_; | 51 OperationTyper operation_typer_; |
52 | 52 |
| 53 Type* singleton_empty_string_; |
53 Type* singleton_false_; | 54 Type* singleton_false_; |
54 Type* singleton_true_; | 55 Type* singleton_true_; |
55 Type* singleton_the_hole_; | |
56 Type* falsish_; | 56 Type* falsish_; |
57 Type* truish_; | 57 Type* truish_; |
58 | 58 |
59 DISALLOW_COPY_AND_ASSIGN(Typer); | 59 DISALLOW_COPY_AND_ASSIGN(Typer); |
60 }; | 60 }; |
61 | 61 |
62 DEFINE_OPERATORS_FOR_FLAGS(Typer::Flags); | 62 DEFINE_OPERATORS_FOR_FLAGS(Typer::Flags); |
63 | 63 |
64 } // namespace compiler | 64 } // namespace compiler |
65 } // namespace internal | 65 } // namespace internal |
66 } // namespace v8 | 66 } // namespace v8 |
67 | 67 |
68 #endif // V8_COMPILER_TYPER_H_ | 68 #endif // V8_COMPILER_TYPER_H_ |
OLD | NEW |