| 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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 SHARED(ToString, Operator::kNoProperties, 1, 0, 1, 1, 1, 1, 2), | 77 SHARED(ToString, Operator::kNoProperties, 1, 0, 1, 1, 1, 1, 2), |
| 78 SHARED(ToName, Operator::kNoProperties, 1, 1, 1, 1, 1, 1, 2), | 78 SHARED(ToName, Operator::kNoProperties, 1, 1, 1, 1, 1, 1, 2), |
| 79 SHARED(ToObject, Operator::kNoProperties, 1, 1, 1, 1, 1, 1, 2), | 79 SHARED(ToObject, Operator::kNoProperties, 1, 1, 1, 1, 1, 1, 2), |
| 80 SHARED(Yield, Operator::kNoProperties, 1, 0, 1, 1, 1, 1, 2), | 80 SHARED(Yield, Operator::kNoProperties, 1, 0, 1, 1, 1, 1, 2), |
| 81 SHARED(Create, Operator::kEliminatable, 0, 0, 1, 0, 1, 1, 0), | 81 SHARED(Create, Operator::kEliminatable, 0, 0, 1, 0, 1, 1, 0), |
| 82 SHARED(HasProperty, Operator::kNoProperties, 2, 1, 1, 1, 1, 1, 2), | 82 SHARED(HasProperty, Operator::kNoProperties, 2, 1, 1, 1, 1, 1, 2), |
| 83 SHARED(TypeOf, Operator::kPure, 1, 0, 0, 0, 1, 0, 0), | 83 SHARED(TypeOf, Operator::kPure, 1, 0, 0, 0, 1, 0, 0), |
| 84 SHARED(InstanceOf, Operator::kNoProperties, 2, 1, 1, 1, 1, 1, 2), | 84 SHARED(InstanceOf, Operator::kNoProperties, 2, 1, 1, 1, 1, 1, 2), |
| 85 SHARED(CreateFunctionContext, Operator::kNoProperties, 1, 0, 1, 1, 1, 1, 2), | 85 SHARED(CreateFunctionContext, Operator::kNoProperties, 1, 0, 1, 1, 1, 1, 2), |
| 86 SHARED(CreateWithContext, Operator::kNoProperties, 2, 1, 1, 1, 1, 1, 2), | 86 SHARED(CreateWithContext, Operator::kNoProperties, 2, 1, 1, 1, 1, 1, 2), |
| 87 SHARED(CreateBlockContext, Operator::kNoProperties, 2, 0, 1, 1, 1, 1, 2), | |
| 88 SHARED(CreateModuleContext, Operator::kNoProperties, 2, 0, 1, 1, 1, 1, 2), | 87 SHARED(CreateModuleContext, Operator::kNoProperties, 2, 0, 1, 1, 1, 1, 2), |
| 89 SHARED(CreateScriptContext, Operator::kNoProperties, 2, 1, 1, 1, 1, 1, 2) | |
| 90 #undef SHARED | 88 #undef SHARED |
| 91 }; | 89 }; |
| 92 | 90 |
| 93 | 91 |
| 94 std::ostream& operator<<(std::ostream& os, const SharedOperator& sop) { | 92 std::ostream& operator<<(std::ostream& os, const SharedOperator& sop) { |
| 95 return os << IrOpcode::Mnemonic(sop.opcode); | 93 return os << IrOpcode::Mnemonic(sop.opcode); |
| 96 } | 94 } |
| 97 | 95 |
| 98 } // namespace | 96 } // namespace |
| 99 | 97 |
| (...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 277 INSTANTIATE_TEST_CASE_P( | 275 INSTANTIATE_TEST_CASE_P( |
| 278 JSOperatorTest, JSSharedOperatorWithLanguageModeTest, | 276 JSOperatorTest, JSSharedOperatorWithLanguageModeTest, |
| 279 ::testing::Combine(::testing::ValuesIn(kLanguageModes), | 277 ::testing::Combine(::testing::ValuesIn(kLanguageModes), |
| 280 ::testing::ValuesIn(kSharedOperatorsWithLanguageMode))); | 278 ::testing::ValuesIn(kSharedOperatorsWithLanguageMode))); |
| 281 | 279 |
| 282 #endif // GTEST_HAS_COMBINE | 280 #endif // GTEST_HAS_COMBINE |
| 283 | 281 |
| 284 } // namespace compiler | 282 } // namespace compiler |
| 285 } // namespace internal | 283 } // namespace internal |
| 286 } // namespace v8 | 284 } // namespace v8 |
| OLD | NEW |