| Index: test/cctest/compiler/test-simplified-lowering.cc
|
| diff --git a/test/cctest/compiler/test-simplified-lowering.cc b/test/cctest/compiler/test-simplified-lowering.cc
|
| index ab0e76f9fbbb58128b0adf5e07c079998f96d48e..27db0a50a4686a1a1f4a7c181406758626c0d595 100644
|
| --- a/test/cctest/compiler/test-simplified-lowering.cc
|
| +++ b/test/cctest/compiler/test-simplified-lowering.cc
|
| @@ -649,14 +649,14 @@ class TestingGraph : public HandleAndZoneScope, public GraphAndBuilders {
|
| NodeProperties::SetBounds(p1, Bounds(p1_type));
|
| }
|
|
|
| - void CheckLoweringBinop(IrOpcode::Value expected, Operator* op) {
|
| + void CheckLoweringBinop(IrOpcode::Value expected, const Operator* op) {
|
| Node* node = Return(graph()->NewNode(op, p0, p1));
|
| Lower();
|
| CHECK_EQ(expected, node->opcode());
|
| }
|
|
|
| - void CheckLoweringTruncatedBinop(IrOpcode::Value expected, Operator* op,
|
| - Operator* trunc) {
|
| + void CheckLoweringTruncatedBinop(IrOpcode::Value expected, const Operator* op,
|
| + const Operator* trunc) {
|
| Node* node = graph()->NewNode(op, p0, p1);
|
| Return(graph()->NewNode(trunc, node));
|
| Lower();
|
| @@ -1108,7 +1108,7 @@ TEST(InsertBasicChanges) {
|
| }
|
|
|
|
|
| -static void CheckChangesAroundBinop(TestingGraph* t, Operator* op,
|
| +static void CheckChangesAroundBinop(TestingGraph* t, const Operator* op,
|
| IrOpcode::Value input_change,
|
| IrOpcode::Value output_change) {
|
| Node* binop = t->graph()->NewNode(op, t->p0, t->p1);
|
| @@ -1126,11 +1126,11 @@ static void CheckChangesAroundBinop(TestingGraph* t, Operator* op,
|
| TEST(InsertChangesAroundInt32Binops) {
|
| TestingGraph t(Type::Signed32(), Type::Signed32());
|
|
|
| - Operator* ops[] = {t.machine()->Int32Add(), t.machine()->Int32Sub(),
|
| - t.machine()->Int32Mul(), t.machine()->Int32Div(),
|
| - t.machine()->Int32Mod(), t.machine()->Word32And(),
|
| - t.machine()->Word32Or(), t.machine()->Word32Xor(),
|
| - t.machine()->Word32Shl(), t.machine()->Word32Sar()};
|
| + const Operator* ops[] = {t.machine()->Int32Add(), t.machine()->Int32Sub(),
|
| + t.machine()->Int32Mul(), t.machine()->Int32Div(),
|
| + t.machine()->Int32Mod(), t.machine()->Word32And(),
|
| + t.machine()->Word32Or(), t.machine()->Word32Xor(),
|
| + t.machine()->Word32Shl(), t.machine()->Word32Sar()};
|
|
|
| for (size_t i = 0; i < arraysize(ops); i++) {
|
| CheckChangesAroundBinop(&t, ops[i], IrOpcode::kChangeTaggedToInt32,
|
| @@ -1142,8 +1142,8 @@ TEST(InsertChangesAroundInt32Binops) {
|
| TEST(InsertChangesAroundInt32Cmp) {
|
| TestingGraph t(Type::Signed32(), Type::Signed32());
|
|
|
| - Operator* ops[] = {t.machine()->Int32LessThan(),
|
| - t.machine()->Int32LessThanOrEqual()};
|
| + const Operator* ops[] = {t.machine()->Int32LessThan(),
|
| + t.machine()->Int32LessThanOrEqual()};
|
|
|
| for (size_t i = 0; i < arraysize(ops); i++) {
|
| CheckChangesAroundBinop(&t, ops[i], IrOpcode::kChangeTaggedToInt32,
|
| @@ -1155,8 +1155,8 @@ TEST(InsertChangesAroundInt32Cmp) {
|
| TEST(InsertChangesAroundUint32Cmp) {
|
| TestingGraph t(Type::Unsigned32(), Type::Unsigned32());
|
|
|
| - Operator* ops[] = {t.machine()->Uint32LessThan(),
|
| - t.machine()->Uint32LessThanOrEqual()};
|
| + const Operator* ops[] = {t.machine()->Uint32LessThan(),
|
| + t.machine()->Uint32LessThanOrEqual()};
|
|
|
| for (size_t i = 0; i < arraysize(ops); i++) {
|
| CheckChangesAroundBinop(&t, ops[i], IrOpcode::kChangeTaggedToUint32,
|
| @@ -1168,7 +1168,7 @@ TEST(InsertChangesAroundUint32Cmp) {
|
| TEST(InsertChangesAroundFloat64Binops) {
|
| TestingGraph t(Type::Number(), Type::Number());
|
|
|
| - Operator* ops[] = {
|
| + const Operator* ops[] = {
|
| t.machine()->Float64Add(), t.machine()->Float64Sub(),
|
| t.machine()->Float64Mul(), t.machine()->Float64Div(),
|
| t.machine()->Float64Mod(),
|
| @@ -1184,9 +1184,9 @@ TEST(InsertChangesAroundFloat64Binops) {
|
| TEST(InsertChangesAroundFloat64Cmp) {
|
| TestingGraph t(Type::Number(), Type::Number());
|
|
|
| - Operator* ops[] = {t.machine()->Float64Equal(),
|
| - t.machine()->Float64LessThan(),
|
| - t.machine()->Float64LessThanOrEqual()};
|
| + const Operator* ops[] = {t.machine()->Float64Equal(),
|
| + t.machine()->Float64LessThan(),
|
| + t.machine()->Float64LessThanOrEqual()};
|
|
|
| for (size_t i = 0; i < arraysize(ops); i++) {
|
| CheckChangesAroundBinop(&t, ops[i], IrOpcode::kChangeTaggedToFloat64,
|
|
|