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/opcodes.h" | 5 #include "src/compiler/opcodes.h" |
6 #include "src/compiler/operator.h" | 6 #include "src/compiler/operator.h" |
7 #include "src/compiler/operator-properties.h" | 7 #include "src/compiler/operator-properties.h" |
8 #include "src/compiler/simplified-operator.h" | 8 #include "src/compiler/simplified-operator.h" |
9 #include "src/types-inl.h" | 9 #include "src/types-inl.h" |
10 #include "test/unittests/test-utils.h" | 10 #include "test/unittests/test-utils.h" |
(...skipping 30 matching lines...) Expand all Loading... |
41 PURE(BooleanNot, Operator::kNoProperties, 1), | 41 PURE(BooleanNot, Operator::kNoProperties, 1), |
42 PURE(BooleanToNumber, Operator::kNoProperties, 1), | 42 PURE(BooleanToNumber, Operator::kNoProperties, 1), |
43 PURE(NumberEqual, Operator::kCommutative, 2), | 43 PURE(NumberEqual, Operator::kCommutative, 2), |
44 PURE(NumberLessThan, Operator::kNoProperties, 2), | 44 PURE(NumberLessThan, Operator::kNoProperties, 2), |
45 PURE(NumberLessThanOrEqual, Operator::kNoProperties, 2), | 45 PURE(NumberLessThanOrEqual, Operator::kNoProperties, 2), |
46 PURE(NumberAdd, Operator::kCommutative, 2), | 46 PURE(NumberAdd, Operator::kCommutative, 2), |
47 PURE(NumberSubtract, Operator::kNoProperties, 2), | 47 PURE(NumberSubtract, Operator::kNoProperties, 2), |
48 PURE(NumberMultiply, Operator::kCommutative, 2), | 48 PURE(NumberMultiply, Operator::kCommutative, 2), |
49 PURE(NumberDivide, Operator::kNoProperties, 2), | 49 PURE(NumberDivide, Operator::kNoProperties, 2), |
50 PURE(NumberModulus, Operator::kNoProperties, 2), | 50 PURE(NumberModulus, Operator::kNoProperties, 2), |
| 51 PURE(NumberBitwiseOr, Operator::kCommutative, 2), |
| 52 PURE(NumberBitwiseXor, Operator::kCommutative, 2), |
| 53 PURE(NumberBitwiseAnd, Operator::kCommutative, 2), |
| 54 PURE(NumberShiftLeft, Operator::kNoProperties, 2), |
| 55 PURE(NumberShiftRight, Operator::kNoProperties, 2), |
| 56 PURE(NumberShiftRightLogical, Operator::kNoProperties, 2), |
51 PURE(NumberToInt32, Operator::kNoProperties, 1), | 57 PURE(NumberToInt32, Operator::kNoProperties, 1), |
52 PURE(NumberToUint32, Operator::kNoProperties, 1), | 58 PURE(NumberToUint32, Operator::kNoProperties, 1), |
53 PURE(PlainPrimitiveToNumber, Operator::kNoProperties, 1), | 59 PURE(PlainPrimitiveToNumber, Operator::kNoProperties, 1), |
54 PURE(ChangeTaggedToInt32, Operator::kNoProperties, 1), | 60 PURE(ChangeTaggedToInt32, Operator::kNoProperties, 1), |
55 PURE(ChangeTaggedToUint32, Operator::kNoProperties, 1), | 61 PURE(ChangeTaggedToUint32, Operator::kNoProperties, 1), |
56 PURE(ChangeTaggedToFloat64, Operator::kNoProperties, 1), | 62 PURE(ChangeTaggedToFloat64, Operator::kNoProperties, 1), |
57 PURE(ChangeInt32ToTagged, Operator::kNoProperties, 1), | 63 PURE(ChangeInt32ToTagged, Operator::kNoProperties, 1), |
58 PURE(ChangeUint32ToTagged, Operator::kNoProperties, 1), | 64 PURE(ChangeUint32ToTagged, Operator::kNoProperties, 1), |
59 PURE(ChangeFloat64ToTagged, Operator::kNoProperties, 1), | 65 PURE(ChangeFloat64ToTagged, Operator::kNoProperties, 1), |
60 PURE(ChangeBoolToBit, Operator::kNoProperties, 1), | 66 PURE(ChangeBoolToBit, Operator::kNoProperties, 1), |
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
274 } | 280 } |
275 | 281 |
276 | 282 |
277 INSTANTIATE_TEST_CASE_P(SimplifiedOperatorTest, | 283 INSTANTIATE_TEST_CASE_P(SimplifiedOperatorTest, |
278 SimplifiedElementAccessOperatorTest, | 284 SimplifiedElementAccessOperatorTest, |
279 ::testing::ValuesIn(kElementAccesses)); | 285 ::testing::ValuesIn(kElementAccesses)); |
280 | 286 |
281 } // namespace compiler | 287 } // namespace compiler |
282 } // namespace internal | 288 } // namespace internal |
283 } // namespace v8 | 289 } // namespace v8 |
OLD | NEW |