| 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/js-operator.h" | 5 #include "src/compiler/js-operator.h" |
| 6 #include "src/compiler/opcodes.h" | 6 #include "src/compiler/opcodes.h" |
| 7 #include "src/compiler/operator.h" | 7 #include "src/compiler/operator.h" |
| 8 #include "src/compiler/operator-properties.h" | 8 #include "src/compiler/operator-properties.h" |
| 9 #include "test/unittests/test-utils.h" | 9 #include "test/unittests/test-utils.h" |
| 10 | 10 |
| (...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 194 SHARED(BitwiseXor, Operator::kNoProperties, 2, 2, 1, 1, 1, 1, 2), | 194 SHARED(BitwiseXor, Operator::kNoProperties, 2, 2, 1, 1, 1, 1, 2), |
| 195 SHARED(BitwiseAnd, Operator::kNoProperties, 2, 2, 1, 1, 1, 1, 2), | 195 SHARED(BitwiseAnd, Operator::kNoProperties, 2, 2, 1, 1, 1, 1, 2), |
| 196 SHARED(ShiftLeft, Operator::kNoProperties, 2, 2, 1, 1, 1, 1, 2), | 196 SHARED(ShiftLeft, Operator::kNoProperties, 2, 2, 1, 1, 1, 1, 2), |
| 197 SHARED(ShiftRight, Operator::kNoProperties, 2, 2, 1, 1, 1, 1, 2), | 197 SHARED(ShiftRight, Operator::kNoProperties, 2, 2, 1, 1, 1, 1, 2), |
| 198 SHARED(ShiftRightLogical, Operator::kNoProperties, 2, 2, 1, 1, 1, 1, 2), | 198 SHARED(ShiftRightLogical, Operator::kNoProperties, 2, 2, 1, 1, 1, 1, 2), |
| 199 SHARED(Add, Operator::kNoProperties, 2, 2, 1, 1, 1, 1, 2), | 199 SHARED(Add, Operator::kNoProperties, 2, 2, 1, 1, 1, 1, 2), |
| 200 SHARED(Subtract, Operator::kNoProperties, 2, 2, 1, 1, 1, 1, 2), | 200 SHARED(Subtract, Operator::kNoProperties, 2, 2, 1, 1, 1, 1, 2), |
| 201 SHARED(Multiply, Operator::kNoProperties, 2, 2, 1, 1, 1, 1, 2), | 201 SHARED(Multiply, Operator::kNoProperties, 2, 2, 1, 1, 1, 1, 2), |
| 202 SHARED(Divide, Operator::kNoProperties, 2, 2, 1, 1, 1, 1, 2), | 202 SHARED(Divide, Operator::kNoProperties, 2, 2, 1, 1, 1, 1, 2), |
| 203 SHARED(Modulus, Operator::kNoProperties, 2, 2, 1, 1, 1, 1, 2), | 203 SHARED(Modulus, Operator::kNoProperties, 2, 2, 1, 1, 1, 1, 2), |
| 204 SHARED(StoreProperty, Operator::kNoProperties, 3, 2, 1, 1, 0, 1, 2), | |
| 205 #undef SHARED | 204 #undef SHARED |
| 206 }; | 205 }; |
| 207 | 206 |
| 208 | 207 |
| 209 std::ostream& operator<<(std::ostream& os, | 208 std::ostream& operator<<(std::ostream& os, |
| 210 const SharedOperatorWithLanguageMode& sop) { | 209 const SharedOperatorWithLanguageMode& sop) { |
| 211 return os << IrOpcode::Mnemonic(sop.opcode); | 210 return os << IrOpcode::Mnemonic(sop.opcode); |
| 212 } | 211 } |
| 213 | 212 |
| 214 } // namespace | 213 } // namespace |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 278 INSTANTIATE_TEST_CASE_P( | 277 INSTANTIATE_TEST_CASE_P( |
| 279 JSOperatorTest, JSSharedOperatorWithLanguageModeTest, | 278 JSOperatorTest, JSSharedOperatorWithLanguageModeTest, |
| 280 ::testing::Combine(::testing::ValuesIn(kLanguageModes), | 279 ::testing::Combine(::testing::ValuesIn(kLanguageModes), |
| 281 ::testing::ValuesIn(kSharedOperatorsWithLanguageMode))); | 280 ::testing::ValuesIn(kSharedOperatorsWithLanguageMode))); |
| 282 | 281 |
| 283 #endif // GTEST_HAS_COMBINE | 282 #endif // GTEST_HAS_COMBINE |
| 284 | 283 |
| 285 } // namespace compiler | 284 } // namespace compiler |
| 286 } // namespace internal | 285 } // namespace internal |
| 287 } // namespace v8 | 286 } // namespace v8 |
| OLD | NEW |