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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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(NumberToInt32, Operator::kNoProperties, 1), | 51 PURE(NumberToInt32, Operator::kNoProperties, 1), |
52 PURE(NumberToUint32, Operator::kNoProperties, 1), | 52 PURE(NumberToUint32, Operator::kNoProperties, 1), |
53 PURE(PlainPrimitiveToNumber, Operator::kNoProperties, 1), | 53 PURE(PlainPrimitiveToNumber, Operator::kNoProperties, 1), |
54 PURE(StringEqual, Operator::kCommutative, 2), | 54 PURE(StringEqual, Operator::kCommutative, 2), |
55 PURE(StringLessThan, Operator::kNoProperties, 2), | 55 PURE(StringLessThan, Operator::kNoProperties, 2), |
56 PURE(StringLessThanOrEqual, Operator::kNoProperties, 2), | 56 PURE(StringLessThanOrEqual, Operator::kNoProperties, 2), |
57 PURE(StringAdd, Operator::kNoProperties, 2), | |
58 PURE(ChangeTaggedToInt32, Operator::kNoProperties, 1), | 57 PURE(ChangeTaggedToInt32, Operator::kNoProperties, 1), |
59 PURE(ChangeTaggedToUint32, Operator::kNoProperties, 1), | 58 PURE(ChangeTaggedToUint32, Operator::kNoProperties, 1), |
60 PURE(ChangeTaggedToFloat64, Operator::kNoProperties, 1), | 59 PURE(ChangeTaggedToFloat64, Operator::kNoProperties, 1), |
61 PURE(ChangeInt32ToTagged, Operator::kNoProperties, 1), | 60 PURE(ChangeInt32ToTagged, Operator::kNoProperties, 1), |
62 PURE(ChangeUint32ToTagged, Operator::kNoProperties, 1), | 61 PURE(ChangeUint32ToTagged, Operator::kNoProperties, 1), |
63 PURE(ChangeFloat64ToTagged, Operator::kNoProperties, 1), | 62 PURE(ChangeFloat64ToTagged, Operator::kNoProperties, 1), |
64 PURE(ChangeBoolToBit, Operator::kNoProperties, 1), | 63 PURE(ChangeBoolToBit, Operator::kNoProperties, 1), |
65 PURE(ChangeBitToBool, Operator::kNoProperties, 1), | 64 PURE(ChangeBitToBool, Operator::kNoProperties, 1), |
66 PURE(ObjectIsSmi, Operator::kNoProperties, 1), | 65 PURE(ObjectIsSmi, Operator::kNoProperties, 1), |
67 PURE(ObjectIsNonNegativeSmi, Operator::kNoProperties, 1) | 66 PURE(ObjectIsNonNegativeSmi, Operator::kNoProperties, 1) |
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
279 } | 278 } |
280 | 279 |
281 | 280 |
282 INSTANTIATE_TEST_CASE_P(SimplifiedOperatorTest, | 281 INSTANTIATE_TEST_CASE_P(SimplifiedOperatorTest, |
283 SimplifiedElementAccessOperatorTest, | 282 SimplifiedElementAccessOperatorTest, |
284 ::testing::ValuesIn(kElementAccesses)); | 283 ::testing::ValuesIn(kElementAccesses)); |
285 | 284 |
286 } // namespace compiler | 285 } // namespace compiler |
287 } // namespace internal | 286 } // namespace internal |
288 } // namespace v8 | 287 } // namespace v8 |
OLD | NEW |