| Index: src/compiler/js-graph.cc
|
| diff --git a/src/compiler/js-graph.cc b/src/compiler/js-graph.cc
|
| index cafd047e74781f9a2b5e72c4c7f4e1aed65ea5bb..8626cd1821473a58283789368de722030a8ff06d 100644
|
| --- a/src/compiler/js-graph.cc
|
| +++ b/src/compiler/js-graph.cc
|
| @@ -242,6 +242,13 @@ Node* JSGraph::Float64Constant(double value) {
|
| return *loc;
|
| }
|
|
|
| +Node* JSGraph::PointerConstant(intptr_t value) {
|
| + Node** loc = cache_.FindPointerConstant(value);
|
| + if (*loc == nullptr) {
|
| + *loc = graph()->NewNode(common()->PointerConstant(value));
|
| + }
|
| + return *loc;
|
| +}
|
|
|
| Node* JSGraph::ExternalConstant(ExternalReference reference) {
|
| Node** loc = cache_.FindExternalConstant(reference);
|
|
|