Index: src/compiler/js-graph.h |
diff --git a/src/compiler/js-graph.h b/src/compiler/js-graph.h |
index 31e9c48a65383440c09f58ad0c3b4c595e365b9f..37f16ee50706ce487a5c0e60a2e1ec02cb01b3b1 100644 |
--- a/src/compiler/js-graph.h |
+++ b/src/compiler/js-graph.h |
@@ -69,6 +69,19 @@ class JSGraph : public ZoneObject { |
return Int32Constant(bit_cast<int32_t>(value)); |
} |
+ // Creates a Int64Constant node, usually canonicalized. |
+ Node* Int64Constant(int64_t value); |
+ Node* Uint64Constant(uint64_t value) { |
+ return Int64Constant(bit_cast<int64_t>(value)); |
+ } |
+ |
+ // Creates a Int32Constant/Int64Constant node, depending on the word size of |
dcarney
2014/10/13 09:11:48
can you add a todo that the generated code in unse
|
+ // the target machine. |
+ Node* IntPtrConstant(intptr_t value) { |
+ return machine()->Is32() ? Int32Constant(static_cast<int32_t>(value)) |
+ : Int64Constant(static_cast<int64_t>(value)); |
+ } |
+ |
// Creates a Float32Constant node, usually canonicalized. |
Node* Float32Constant(float value); |