| Index: src/compiler/js-graph.h
|
| diff --git a/src/compiler/js-graph.h b/src/compiler/js-graph.h
|
| index e1a7b697cb1b24c14f1655ae81568f7f18899052..9d496d53c952e6230139380e10d52ae7de97d18a 100644
|
| --- a/src/compiler/js-graph.h
|
| +++ b/src/compiler/js-graph.h
|
| @@ -86,6 +86,10 @@ class JSGraph : public ZoneObject {
|
| return machine()->Is32() ? Int32Constant(static_cast<int32_t>(value))
|
| : Int64Constant(static_cast<int64_t>(value));
|
| }
|
| + template <typename T>
|
| + Node* PointerConstant(T* value) {
|
| + return IntPtrConstant(bit_cast<intptr_t>(value));
|
| + }
|
|
|
| // Creates a Float32Constant node, usually canonicalized.
|
| Node* Float32Constant(float value);
|
|
|