| OLD | NEW |
| 1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "src/compiler/common-operator.h" | 5 #include "src/compiler/common-operator.h" |
| 6 #include "src/compiler/compiler-unittests.h" | |
| 7 #include "src/compiler/operator-properties-inl.h" | 6 #include "src/compiler/operator-properties-inl.h" |
| 7 #include "src/test/test-utils.h" |
| 8 | 8 |
| 9 namespace v8 { | 9 namespace v8 { |
| 10 namespace internal { | 10 namespace internal { |
| 11 namespace compiler { | 11 namespace compiler { |
| 12 | 12 |
| 13 namespace { | 13 namespace { |
| 14 | 14 |
| 15 class CommonOperatorTest : public CompilerTest { | 15 class CommonOperatorTest : public TestWithZone { |
| 16 public: | 16 public: |
| 17 CommonOperatorTest() : common_(zone()) {} | 17 CommonOperatorTest() : common_(zone()) {} |
| 18 virtual ~CommonOperatorTest() {} | 18 virtual ~CommonOperatorTest() {} |
| 19 | 19 |
| 20 CommonOperatorBuilder* common() { return &common_; } | 20 CommonOperatorBuilder* common() { return &common_; } |
| 21 | 21 |
| 22 private: | 22 private: |
| 23 CommonOperatorBuilder common_; | 23 CommonOperatorBuilder common_; |
| 24 }; | 24 }; |
| 25 | 25 |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 EXPECT_EQ(arguments + 1, OperatorProperties::GetTotalInputCount(op)); | 59 EXPECT_EQ(arguments + 1, OperatorProperties::GetTotalInputCount(op)); |
| 60 EXPECT_EQ(0, OperatorProperties::GetControlOutputCount(op)); | 60 EXPECT_EQ(0, OperatorProperties::GetControlOutputCount(op)); |
| 61 EXPECT_EQ(0, OperatorProperties::GetEffectOutputCount(op)); | 61 EXPECT_EQ(0, OperatorProperties::GetEffectOutputCount(op)); |
| 62 EXPECT_EQ(1, OperatorProperties::GetValueOutputCount(op)); | 62 EXPECT_EQ(1, OperatorProperties::GetValueOutputCount(op)); |
| 63 } | 63 } |
| 64 } | 64 } |
| 65 | 65 |
| 66 } // namespace compiler | 66 } // namespace compiler |
| 67 } // namespace internal | 67 } // namespace internal |
| 68 } // namespace v8 | 68 } // namespace v8 |
| OLD | NEW |