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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 SHARED(StrictEqual, Operator::kPure, 2, 0, 0, 0, 1, 0, 0), | 45 SHARED(StrictEqual, Operator::kPure, 2, 0, 0, 0, 1, 0, 0), |
46 SHARED(StrictNotEqual, Operator::kPure, 2, 0, 0, 0, 1, 0, 0), | 46 SHARED(StrictNotEqual, Operator::kPure, 2, 0, 0, 0, 1, 0, 0), |
47 SHARED(LessThan, Operator::kNoProperties, 2, 2, 1, 1, 1, 1, 2), | 47 SHARED(LessThan, Operator::kNoProperties, 2, 2, 1, 1, 1, 1, 2), |
48 SHARED(GreaterThan, Operator::kNoProperties, 2, 2, 1, 1, 1, 1, 2), | 48 SHARED(GreaterThan, Operator::kNoProperties, 2, 2, 1, 1, 1, 1, 2), |
49 SHARED(LessThanOrEqual, Operator::kNoProperties, 2, 2, 1, 1, 1, 1, 2), | 49 SHARED(LessThanOrEqual, Operator::kNoProperties, 2, 2, 1, 1, 1, 1, 2), |
50 SHARED(GreaterThanOrEqual, Operator::kNoProperties, 2, 2, 1, 1, 1, 1, 2), | 50 SHARED(GreaterThanOrEqual, Operator::kNoProperties, 2, 2, 1, 1, 1, 1, 2), |
51 SHARED(ToNumber, Operator::kNoProperties, 1, 1, 1, 1, 1, 1, 2), | 51 SHARED(ToNumber, Operator::kNoProperties, 1, 1, 1, 1, 1, 1, 2), |
52 SHARED(ToString, Operator::kNoProperties, 1, 1, 1, 1, 1, 1, 2), | 52 SHARED(ToString, Operator::kNoProperties, 1, 1, 1, 1, 1, 1, 2), |
53 SHARED(ToName, Operator::kNoProperties, 1, 1, 1, 1, 1, 1, 2), | 53 SHARED(ToName, Operator::kNoProperties, 1, 1, 1, 1, 1, 1, 2), |
54 SHARED(ToObject, Operator::kFoldable, 1, 1, 1, 1, 1, 1, 2), | 54 SHARED(ToObject, Operator::kFoldable, 1, 1, 1, 1, 1, 1, 2), |
55 SHARED(Yield, Operator::kNoProperties, 1, 0, 1, 1, 1, 1, 2), | |
56 SHARED(Create, Operator::kEliminatable, 2, 1, 1, 0, 1, 1, 0), | 55 SHARED(Create, Operator::kEliminatable, 2, 1, 1, 0, 1, 1, 0), |
57 SHARED(HasProperty, Operator::kNoProperties, 2, 1, 1, 1, 1, 1, 2), | 56 SHARED(HasProperty, Operator::kNoProperties, 2, 1, 1, 1, 1, 1, 2), |
58 SHARED(TypeOf, Operator::kPure, 1, 0, 0, 0, 1, 0, 0), | 57 SHARED(TypeOf, Operator::kPure, 1, 0, 0, 0, 1, 0, 0), |
59 SHARED(InstanceOf, Operator::kNoProperties, 2, 1, 1, 1, 1, 1, 2), | 58 SHARED(InstanceOf, Operator::kNoProperties, 2, 1, 1, 1, 1, 1, 2), |
60 SHARED(CreateWithContext, Operator::kNoProperties, 2, 0, 1, 1, 1, 1, 2), | 59 SHARED(CreateWithContext, Operator::kNoProperties, 2, 0, 1, 1, 1, 1, 2), |
61 SHARED(CreateModuleContext, Operator::kNoProperties, 2, 0, 1, 1, 1, 1, 2), | 60 SHARED(CreateModuleContext, Operator::kNoProperties, 2, 0, 1, 1, 1, 1, 2), |
62 #undef SHARED | 61 #undef SHARED |
63 }; | 62 }; |
64 | 63 |
65 | 64 |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 EXPECT_EQ(sop.properties, op->properties()); | 120 EXPECT_EQ(sop.properties, op->properties()); |
122 } | 121 } |
123 | 122 |
124 | 123 |
125 INSTANTIATE_TEST_CASE_P(JSOperatorTest, JSSharedOperatorTest, | 124 INSTANTIATE_TEST_CASE_P(JSOperatorTest, JSSharedOperatorTest, |
126 ::testing::ValuesIn(kSharedOperators)); | 125 ::testing::ValuesIn(kSharedOperators)); |
127 | 126 |
128 } // namespace compiler | 127 } // namespace compiler |
129 } // namespace internal | 128 } // namespace internal |
130 } // namespace v8 | 129 } // namespace v8 |
OLD | NEW |