| Index: src/compiler/js-graph.cc
|
| diff --git a/src/compiler/js-graph.cc b/src/compiler/js-graph.cc
|
| index 0af29d5475351e489592f8c0e6b889ad626a70a2..ea3ec5e6dd1ed4be43a2961a4f9b23c9d1dff96f 100644
|
| --- a/src/compiler/js-graph.cc
|
| +++ b/src/compiler/js-graph.cc
|
| @@ -150,6 +150,11 @@ Node* JSGraph::Constant(int32_t value) {
|
| return NumberConstant(value);
|
| }
|
|
|
| +Node* JSGraph::Constant(uint32_t value) {
|
| + if (value == 0) return ZeroConstant();
|
| + if (value == 1) return OneConstant();
|
| + return NumberConstant(value);
|
| +}
|
|
|
| Node* JSGraph::Int32Constant(int32_t value) {
|
| Node** loc = cache_.FindInt32Constant(value);
|
|
|