Index: src/compiler/js-graph.h |
diff --git a/src/compiler/js-graph.h b/src/compiler/js-graph.h |
index 040a745e3cfd553a7796f36846197084c46db7f2..2d8d035504efbbbc2687ecbe06cc142d4bd9a5e8 100644 |
--- a/src/compiler/js-graph.h |
+++ b/src/compiler/js-graph.h |
@@ -16,6 +16,7 @@ namespace v8 { |
namespace internal { |
namespace compiler { |
+// Forward declarations. |
class Typer; |
// Implements a facade on a Graph, enhancing the graph with JS-specific |
@@ -109,6 +110,9 @@ class JSGraph : public ZoneObject { |
// stubs and runtime functions that do not require a context. |
Node* NoContextConstant() { return ZeroConstant(); } |
+ // Cached common types. |
+ Type* ZeroOneRangeType(); |
+ |
JSOperatorBuilder* javascript() { return javascript_; } |
CommonOperatorBuilder* common() { return common_; } |
MachineOperatorBuilder* machine() { return machine_; } |
@@ -136,6 +140,8 @@ class JSGraph : public ZoneObject { |
SetOncePointer<Node> one_constant_; |
SetOncePointer<Node> nan_constant_; |
+ SetOncePointer<Type> zero_one_range_type_; |
+ |
CommonNodeCache cache_; |
Node* ImmovableHeapConstant(Handle<HeapObject> value); |