Index: src/compiler/raw-machine-assembler.cc |
diff --git a/src/compiler/raw-machine-assembler.cc b/src/compiler/raw-machine-assembler.cc |
index 728d79af5b36c297471ce6be6d51f058cc237c6a..c8d9f4f4e513b7618865224b4f26a8ffe138a0d5 100644 |
--- a/src/compiler/raw-machine-assembler.cc |
+++ b/src/compiler/raw-machine-assembler.cc |
@@ -35,6 +35,12 @@ RawMachineAssembler::RawMachineAssembler(Isolate* isolate, Graph* graph, |
graph->SetEnd(graph->NewNode(common_.End(0))); |
} |
+Node* RawMachineAssembler::RelocatableIntPtrConstant(intptr_t value, |
+ RelocInfo::Mode rmode) { |
+ return kPointerSize == 8 |
+ ? RelocatableInt64Constant(value, rmode) |
+ : RelocatableInt32Constant(static_cast<int>(value), rmode); |
+} |
Schedule* RawMachineAssembler::Export() { |
// Compute the correct codegen order. |