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
3 // found in the LICENSE file.
5 #ifndef V8_COMPILER_TYPER_H_
6 #define V8_COMPILER_TYPER_H_
8 #include "src/compiler/graph.h"
9 #include "src/compiler/opcodes.h"
10 #include "src/types.h"
16 // Forward declarations.
22 Typer(Isolate* isolate, Graph* graph, MaybeHandle<Context> context);
27 Graph* graph() { return graph_; }
28 MaybeHandle<Context> context() { return context_; }
29 Zone* zone() { return graph_->zone(); }
30 Isolate* isolate() { return isolate_; }
38 MaybeHandle<Context> context_;
39 Decorator* decorator_;
42 Type* boolean_or_number;
43 Type* undefined_or_null;
44 Type* undefined_or_number;
45 Type* negative_signed32;
46 Type* non_negative_signed32;
47 Type* singleton_false;
64 LazyTypeCache* cache_;
66 ZoneVector<double> weaken_min_limits_;
67 ZoneVector<double> weaken_max_limits_;
68 DISALLOW_COPY_AND_ASSIGN(Typer);
71 } // namespace compiler
72 } // namespace internal
75 #endif // V8_COMPILER_TYPER_H_