| 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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 SHARED(StrictNotEqual, Operator::kNoThrow, 2, 0, 1, 1, 1, 1, 0), | 73 SHARED(StrictNotEqual, Operator::kNoThrow, 2, 0, 1, 1, 1, 1, 0), |
| 74 SHARED(ToNumber, Operator::kNoProperties, 1, 1, 1, 1, 1, 1, 2), | 74 SHARED(ToNumber, Operator::kNoProperties, 1, 1, 1, 1, 1, 1, 2), |
| 75 SHARED(ToString, Operator::kNoProperties, 1, 1, 1, 1, 1, 1, 2), | 75 SHARED(ToString, Operator::kNoProperties, 1, 1, 1, 1, 1, 1, 2), |
| 76 SHARED(ToName, Operator::kNoProperties, 1, 1, 1, 1, 1, 1, 2), | 76 SHARED(ToName, Operator::kNoProperties, 1, 1, 1, 1, 1, 1, 2), |
| 77 SHARED(ToObject, Operator::kNoProperties, 1, 1, 1, 1, 1, 1, 2), | 77 SHARED(ToObject, Operator::kNoProperties, 1, 1, 1, 1, 1, 1, 2), |
| 78 SHARED(Yield, Operator::kNoProperties, 1, 0, 1, 1, 1, 1, 2), | 78 SHARED(Yield, Operator::kNoProperties, 1, 0, 1, 1, 1, 1, 2), |
| 79 SHARED(Create, Operator::kEliminatable, 2, 1, 1, 0, 1, 1, 0), | 79 SHARED(Create, Operator::kEliminatable, 2, 1, 1, 0, 1, 1, 0), |
| 80 SHARED(HasProperty, Operator::kNoProperties, 2, 1, 1, 1, 1, 1, 2), | 80 SHARED(HasProperty, Operator::kNoProperties, 2, 1, 1, 1, 1, 1, 2), |
| 81 SHARED(TypeOf, Operator::kEliminatable, 1, 0, 1, 0, 1, 1, 0), | 81 SHARED(TypeOf, Operator::kEliminatable, 1, 0, 1, 0, 1, 1, 0), |
| 82 SHARED(InstanceOf, Operator::kNoProperties, 2, 1, 1, 1, 1, 1, 2), | 82 SHARED(InstanceOf, Operator::kNoProperties, 2, 1, 1, 1, 1, 1, 2), |
| 83 SHARED(CreateWithContext, Operator::kNoProperties, 2, 1, 1, 1, 1, 1, 2), | 83 SHARED(CreateWithContext, Operator::kNoProperties, 2, 0, 1, 1, 1, 1, 2), |
| 84 SHARED(CreateModuleContext, Operator::kNoProperties, 2, 0, 1, 1, 1, 1, 2), | 84 SHARED(CreateModuleContext, Operator::kNoProperties, 2, 0, 1, 1, 1, 1, 2), |
| 85 #undef SHARED | 85 #undef SHARED |
| 86 }; | 86 }; |
| 87 | 87 |
| 88 | 88 |
| 89 std::ostream& operator<<(std::ostream& os, const SharedOperator& sop) { | 89 std::ostream& operator<<(std::ostream& os, const SharedOperator& sop) { |
| 90 return os << IrOpcode::Mnemonic(sop.opcode); | 90 return os << IrOpcode::Mnemonic(sop.opcode); |
| 91 } | 91 } |
| 92 | 92 |
| 93 } // namespace | 93 } // namespace |
| (...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 261 INSTANTIATE_TEST_CASE_P( | 261 INSTANTIATE_TEST_CASE_P( |
| 262 JSOperatorTest, JSSharedOperatorWithLanguageModeTest, | 262 JSOperatorTest, JSSharedOperatorWithLanguageModeTest, |
| 263 ::testing::Combine(::testing::ValuesIn(kLanguageModes), | 263 ::testing::Combine(::testing::ValuesIn(kLanguageModes), |
| 264 ::testing::ValuesIn(kSharedOperatorsWithLanguageMode))); | 264 ::testing::ValuesIn(kSharedOperatorsWithLanguageMode))); |
| 265 | 265 |
| 266 #endif // GTEST_HAS_COMBINE | 266 #endif // GTEST_HAS_COMBINE |
| 267 | 267 |
| 268 } // namespace compiler | 268 } // namespace compiler |
| 269 } // namespace internal | 269 } // namespace internal |
| 270 } // namespace v8 | 270 } // namespace v8 |
| OLD | NEW |