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/operator-properties-inl.h" | 6 #include "src/compiler/operator-properties-inl.h" |
7 #include "test/unittests/test-utils.h" | 7 #include "test/unittests/test-utils.h" |
8 | 8 |
9 namespace v8 { | 9 namespace v8 { |
10 namespace internal { | 10 namespace internal { |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 SHARED(Add, Operator::kNoProperties, 2, 1, 1, 1, 1, 1), | 59 SHARED(Add, Operator::kNoProperties, 2, 1, 1, 1, 1, 1), |
60 SHARED(Subtract, Operator::kNoProperties, 2, 1, 1, 1, 1, 1), | 60 SHARED(Subtract, Operator::kNoProperties, 2, 1, 1, 1, 1, 1), |
61 SHARED(Multiply, Operator::kNoProperties, 2, 1, 1, 1, 1, 1), | 61 SHARED(Multiply, Operator::kNoProperties, 2, 1, 1, 1, 1, 1), |
62 SHARED(Divide, Operator::kNoProperties, 2, 1, 1, 1, 1, 1), | 62 SHARED(Divide, Operator::kNoProperties, 2, 1, 1, 1, 1, 1), |
63 SHARED(Modulus, Operator::kNoProperties, 2, 1, 1, 1, 1, 1), | 63 SHARED(Modulus, Operator::kNoProperties, 2, 1, 1, 1, 1, 1), |
64 SHARED(UnaryNot, Operator::kNoProperties, 1, 0, 1, 1, 1, 1), | 64 SHARED(UnaryNot, Operator::kNoProperties, 1, 0, 1, 1, 1, 1), |
65 SHARED(ToBoolean, Operator::kNoProperties, 1, 0, 1, 1, 1, 1), | 65 SHARED(ToBoolean, Operator::kNoProperties, 1, 0, 1, 1, 1, 1), |
66 SHARED(ToNumber, Operator::kNoProperties, 1, 0, 1, 1, 1, 1), | 66 SHARED(ToNumber, Operator::kNoProperties, 1, 0, 1, 1, 1, 1), |
67 SHARED(ToString, Operator::kNoProperties, 1, 0, 1, 1, 1, 1), | 67 SHARED(ToString, Operator::kNoProperties, 1, 0, 1, 1, 1, 1), |
68 SHARED(ToName, Operator::kNoProperties, 1, 0, 1, 1, 1, 1), | 68 SHARED(ToName, Operator::kNoProperties, 1, 0, 1, 1, 1, 1), |
69 SHARED(ToObject, Operator::kNoProperties, 1, 0, 1, 1, 1, 1), | 69 SHARED(ToObject, Operator::kNoProperties, 1, 1, 1, 1, 1, 1), |
70 SHARED(Yield, Operator::kNoProperties, 1, 0, 1, 1, 1, 1), | 70 SHARED(Yield, Operator::kNoProperties, 1, 0, 1, 1, 1, 1), |
71 SHARED(Create, Operator::kEliminatable, 0, 0, 1, 0, 1, 1), | 71 SHARED(Create, Operator::kEliminatable, 0, 0, 1, 0, 1, 1), |
72 SHARED(HasProperty, Operator::kNoProperties, 2, 0, 1, 1, 1, 1), | 72 SHARED(HasProperty, Operator::kNoProperties, 2, 1, 1, 1, 1, 1), |
73 SHARED(TypeOf, Operator::kPure, 1, 0, 0, 0, 1, 0), | 73 SHARED(TypeOf, Operator::kPure, 1, 0, 0, 0, 1, 0), |
74 SHARED(InstanceOf, Operator::kNoProperties, 2, 0, 1, 1, 1, 1), | 74 SHARED(InstanceOf, Operator::kNoProperties, 2, 1, 1, 1, 1, 1), |
75 SHARED(Debugger, Operator::kNoProperties, 0, 0, 1, 1, 0, 1), | 75 SHARED(Debugger, Operator::kNoProperties, 0, 0, 1, 1, 0, 1), |
76 SHARED(CreateFunctionContext, Operator::kNoProperties, 1, 0, 1, 1, 1, 1), | 76 SHARED(CreateFunctionContext, Operator::kNoProperties, 1, 0, 1, 1, 1, 1), |
77 SHARED(CreateWithContext, Operator::kNoProperties, 2, 0, 1, 1, 1, 1), | 77 SHARED(CreateWithContext, Operator::kNoProperties, 2, 0, 1, 1, 1, 1), |
78 SHARED(CreateBlockContext, Operator::kNoProperties, 2, 0, 1, 1, 1, 1), | 78 SHARED(CreateBlockContext, Operator::kNoProperties, 2, 0, 1, 1, 1, 1), |
79 SHARED(CreateModuleContext, Operator::kNoProperties, 2, 0, 1, 1, 1, 1), | 79 SHARED(CreateModuleContext, Operator::kNoProperties, 2, 0, 1, 1, 1, 1), |
80 SHARED(CreateGlobalContext, Operator::kNoProperties, 2, 0, 1, 1, 1, 1) | 80 SHARED(CreateGlobalContext, Operator::kNoProperties, 2, 0, 1, 1, 1, 1) |
81 #undef SHARED | 81 #undef SHARED |
82 }; | 82 }; |
83 | 83 |
84 } // namespace | 84 } // namespace |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 EXPECT_EQ(sop.properties, op->properties()); | 142 EXPECT_EQ(sop.properties, op->properties()); |
143 } | 143 } |
144 | 144 |
145 | 145 |
146 INSTANTIATE_TEST_CASE_P(JSOperatorTest, JSSharedOperatorTest, | 146 INSTANTIATE_TEST_CASE_P(JSOperatorTest, JSSharedOperatorTest, |
147 ::testing::ValuesIn(kSharedOperators)); | 147 ::testing::ValuesIn(kSharedOperators)); |
148 | 148 |
149 } // namespace compiler | 149 } // namespace compiler |
150 } // namespace internal | 150 } // namespace internal |
151 } // namespace v8 | 151 } // namespace v8 |
OLD | NEW |