| 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/simplified-operator.h" | 5 #include "src/compiler/simplified-operator.h" |
| 6 | 6 |
| 7 #include "src/compiler/operator-properties-inl.h" | 7 #include "src/compiler/operator-properties-inl.h" |
| 8 #include "src/test/test-utils.h" | 8 #include "src/test/test-utils.h" |
| 9 | 9 |
| 10 namespace v8 { | 10 namespace v8 { |
| 11 namespace internal { | 11 namespace internal { |
| 12 namespace compiler { | 12 namespace compiler { |
| 13 | 13 |
| 14 // TODO(bmeurer): Drop once we use std::ostream instead of our OStream. | |
| 15 inline std::ostream& operator<<(std::ostream& os, const ElementAccess& access) { | |
| 16 OStringStream ost; | |
| 17 ost << access; | |
| 18 return os << ost.c_str(); | |
| 19 } | |
| 20 | |
| 21 | |
| 22 // ----------------------------------------------------------------------------- | 14 // ----------------------------------------------------------------------------- |
| 23 // Pure operators. | 15 // Pure operators. |
| 24 | 16 |
| 25 | 17 |
| 26 namespace { | 18 namespace { |
| 27 | 19 |
| 28 struct PureOperator { | 20 struct PureOperator { |
| 29 const Operator* (SimplifiedOperatorBuilder::*constructor)(); | 21 const Operator* (SimplifiedOperatorBuilder::*constructor)(); |
| 30 IrOpcode::Value opcode; | 22 IrOpcode::Value opcode; |
| 31 Operator::Properties properties; | 23 Operator::Properties properties; |
| (...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 213 } | 205 } |
| 214 | 206 |
| 215 | 207 |
| 216 INSTANTIATE_TEST_CASE_P(SimplifiedOperatorTest, | 208 INSTANTIATE_TEST_CASE_P(SimplifiedOperatorTest, |
| 217 SimplifiedElementAccessOperatorTest, | 209 SimplifiedElementAccessOperatorTest, |
| 218 ::testing::ValuesIn(kElementAccesses)); | 210 ::testing::ValuesIn(kElementAccesses)); |
| 219 | 211 |
| 220 } // namespace compiler | 212 } // namespace compiler |
| 221 } // namespace internal | 213 } // namespace internal |
| 222 } // namespace v8 | 214 } // namespace v8 |
| OLD | NEW |