| 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 | 6 |
| 7 #include <limits> | 7 #include <limits> |
| 8 | 8 |
| 9 #include "src/compiler/operator-properties-inl.h" | 9 #include "src/compiler/operator-properties-inl.h" |
| 10 #include "test/unittests/test-utils.h" | 10 #include "test/unittests/test-utils.h" |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 | 110 |
| 111 // ----------------------------------------------------------------------------- | 111 // ----------------------------------------------------------------------------- |
| 112 // Other operators. | 112 // Other operators. |
| 113 | 113 |
| 114 | 114 |
| 115 namespace { | 115 namespace { |
| 116 | 116 |
| 117 class CommonOperatorTest : public TestWithZone { | 117 class CommonOperatorTest : public TestWithZone { |
| 118 public: | 118 public: |
| 119 CommonOperatorTest() : common_(zone()) {} | 119 CommonOperatorTest() : common_(zone()) {} |
| 120 virtual ~CommonOperatorTest() {} | 120 ~CommonOperatorTest() OVERRIDE {} |
| 121 | 121 |
| 122 CommonOperatorBuilder* common() { return &common_; } | 122 CommonOperatorBuilder* common() { return &common_; } |
| 123 | 123 |
| 124 private: | 124 private: |
| 125 CommonOperatorBuilder common_; | 125 CommonOperatorBuilder common_; |
| 126 }; | 126 }; |
| 127 | 127 |
| 128 | 128 |
| 129 const int kArguments[] = {1, 5, 6, 42, 100, 10000, 65000}; | 129 const int kArguments[] = {1, 5, 6, 42, 100, 10000, 65000}; |
| 130 | 130 |
| (...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 283 EXPECT_EQ(arguments + 1, OperatorProperties::GetTotalInputCount(op)); | 283 EXPECT_EQ(arguments + 1, OperatorProperties::GetTotalInputCount(op)); |
| 284 EXPECT_EQ(0, op->ControlOutputCount()); | 284 EXPECT_EQ(0, op->ControlOutputCount()); |
| 285 EXPECT_EQ(0, op->EffectOutputCount()); | 285 EXPECT_EQ(0, op->EffectOutputCount()); |
| 286 EXPECT_EQ(1, op->ValueOutputCount()); | 286 EXPECT_EQ(1, op->ValueOutputCount()); |
| 287 } | 287 } |
| 288 } | 288 } |
| 289 | 289 |
| 290 } // namespace compiler | 290 } // namespace compiler |
| 291 } // namespace internal | 291 } // namespace internal |
| 292 } // namespace v8 | 292 } // namespace v8 |
| OLD | NEW |