Index: test/cctest/compiler/test-machine-operator-reducer.cc |
diff --git a/test/cctest/compiler/test-machine-operator-reducer.cc b/test/cctest/compiler/test-machine-operator-reducer.cc |
index bcd68356e84db18c0f841d730592b7de77450293..45b63b15843f5bdc33a9b1cb2bda30a83a1fbcad 100644 |
--- a/test/cctest/compiler/test-machine-operator-reducer.cc |
+++ b/test/cctest/compiler/test-machine-operator-reducer.cc |
@@ -15,17 +15,18 @@ using namespace v8::internal; |
using namespace v8::internal::compiler; |
template <typename T> |
-Operator* NewConstantOperator(CommonOperatorBuilder* common, volatile T value); |
+const Operator* NewConstantOperator(CommonOperatorBuilder* common, |
+ volatile T value); |
template <> |
-Operator* NewConstantOperator<int32_t>(CommonOperatorBuilder* common, |
- volatile int32_t value) { |
+const Operator* NewConstantOperator<int32_t>(CommonOperatorBuilder* common, |
+ volatile int32_t value) { |
return common->Int32Constant(value); |
} |
template <> |
-Operator* NewConstantOperator<double>(CommonOperatorBuilder* common, |
- volatile double value) { |
+const Operator* NewConstantOperator<double>(CommonOperatorBuilder* common, |
+ volatile double value) { |
return common->Float64Constant(value); |
} |
@@ -63,8 +64,8 @@ class ReducerTester : public HandleAndZoneScope { |
} |
Isolate* isolate; |
- Operator* binop; |
- Operator* unop; |
+ const Operator* binop; |
+ const Operator* unop; |
MachineOperatorBuilder machine; |
CommonOperatorBuilder common; |
Graph graph; |
@@ -130,7 +131,7 @@ class ReducerTester : public HandleAndZoneScope { |
// Check that the reduction of this binop applied to {left} and {right} yields |
// the {op_expect} applied to {left_expect} and {right_expect}. |
template <typename T> |
- void CheckFoldBinop(volatile T left_expect, Operator* op_expect, |
+ void CheckFoldBinop(volatile T left_expect, const Operator* op_expect, |
Node* right_expect, Node* left, Node* right) { |
CHECK_NE(NULL, binop); |
Node* n = graph.NewNode(binop, left, right); |
@@ -145,7 +146,7 @@ class ReducerTester : public HandleAndZoneScope { |
// Check that the reduction of this binop applied to {left} and {right} yields |
// the {op_expect} applied to {left_expect} and {right_expect}. |
template <typename T> |
- void CheckFoldBinop(Node* left_expect, Operator* op_expect, |
+ void CheckFoldBinop(Node* left_expect, const Operator* op_expect, |
volatile T right_expect, Node* left, Node* right) { |
CHECK_NE(NULL, binop); |
Node* n = graph.NewNode(binop, left, right); |