| Index: src/compiler/js-graph.cc
|
| diff --git a/src/compiler/js-graph.cc b/src/compiler/js-graph.cc
|
| index 1309531bbce924120545974f10333a56ea887605..c403721cf0187db35199eab7633766c825af5638 100644
|
| --- a/src/compiler/js-graph.cc
|
| +++ b/src/compiler/js-graph.cc
|
| @@ -165,6 +165,12 @@ Node* JSGraph::NumberConstant(double value) {
|
| }
|
|
|
|
|
| +Node* JSGraph::Float32Constant(float value) {
|
| + // TODO(turbofan): cache float32 constants.
|
| + return NewNode(common()->Float32Constant(value));
|
| +}
|
| +
|
| +
|
| Node* JSGraph::Float64Constant(double value) {
|
| Node** loc = cache_.FindFloat64Constant(value);
|
| if (*loc == NULL) {
|
|
|