Index: src/compiler/instruction-selector-impl.h |
diff --git a/src/compiler/instruction-selector-impl.h b/src/compiler/instruction-selector-impl.h |
index 2a96ba08a7edc158c4d9fdebbd46cd33547a1cb1..6f3a6df19737df71df9bd683c638b9173cbe931a 100644 |
--- a/src/compiler/instruction-selector-impl.h |
+++ b/src/compiler/instruction-selector-impl.h |
@@ -143,16 +143,16 @@ class OperandGenerator { |
static Constant ToConstant(const Node* node) { |
switch (node->opcode()) { |
case IrOpcode::kInt32Constant: |
- return Constant(ValueOf<int32_t>(node->op())); |
+ return Constant(OpParameter<int32_t>(node)); |
case IrOpcode::kInt64Constant: |
- return Constant(ValueOf<int64_t>(node->op())); |
+ return Constant(OpParameter<int64_t>(node)); |
case IrOpcode::kNumberConstant: |
case IrOpcode::kFloat64Constant: |
- return Constant(ValueOf<double>(node->op())); |
+ return Constant(OpParameter<double>(node)); |
case IrOpcode::kExternalConstant: |
- return Constant(ValueOf<ExternalReference>(node->op())); |
+ return Constant(OpParameter<ExternalReference>(node)); |
case IrOpcode::kHeapConstant: |
- return Constant(ValueOf<Handle<HeapObject> >(node->op())); |
+ return Constant(OpParameter<Unique<HeapObject> >(node).handle()); |
default: |
break; |
} |