Index: src/compiler/js-graph.cc |
diff --git a/src/compiler/js-graph.cc b/src/compiler/js-graph.cc |
index 6105dfe7050962c50328fbc423ecd1e0c94d4f26..fef6a074f0e4e7c65f904c844d1521c581f0bc1e 100644 |
--- a/src/compiler/js-graph.cc |
+++ b/src/compiler/js-graph.cc |
@@ -157,6 +157,15 @@ Node* JSGraph::Int32Constant(int32_t value) { |
} |
+Node* JSGraph::Int64Constant(int64_t value) { |
+ Node** loc = cache_.FindInt64Constant(value); |
+ if (*loc == NULL) { |
+ *loc = NewNode(common()->Int64Constant(value)); |
+ } |
+ return *loc; |
+} |
+ |
+ |
Node* JSGraph::NumberConstant(double value) { |
Node** loc = cache_.FindNumberConstant(value); |
if (*loc == NULL) { |
@@ -188,6 +197,7 @@ Node* JSGraph::ExternalConstant(ExternalReference reference) { |
} |
return *loc; |
} |
+ |
} // namespace compiler |
} // namespace internal |
} // namespace v8 |