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.h" | 9 #include "src/types.h" |
10 #include "test/unittests/test-utils.h" | 10 #include "test/unittests/test-utils.h" |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 PURE(ChangeTaggedSignedToInt32, Operator::kNoProperties, 1), | 57 PURE(ChangeTaggedSignedToInt32, Operator::kNoProperties, 1), |
58 PURE(ChangeTaggedToInt32, Operator::kNoProperties, 1), | 58 PURE(ChangeTaggedToInt32, Operator::kNoProperties, 1), |
59 PURE(ChangeTaggedToUint32, Operator::kNoProperties, 1), | 59 PURE(ChangeTaggedToUint32, Operator::kNoProperties, 1), |
60 PURE(ChangeTaggedToFloat64, Operator::kNoProperties, 1), | 60 PURE(ChangeTaggedToFloat64, Operator::kNoProperties, 1), |
61 PURE(ChangeInt32ToTagged, Operator::kNoProperties, 1), | 61 PURE(ChangeInt32ToTagged, Operator::kNoProperties, 1), |
62 PURE(ChangeUint32ToTagged, Operator::kNoProperties, 1), | 62 PURE(ChangeUint32ToTagged, Operator::kNoProperties, 1), |
63 PURE(ChangeFloat64ToTagged, Operator::kNoProperties, 1), | 63 PURE(ChangeFloat64ToTagged, Operator::kNoProperties, 1), |
64 PURE(ChangeTaggedToBit, Operator::kNoProperties, 1), | 64 PURE(ChangeTaggedToBit, Operator::kNoProperties, 1), |
65 PURE(ChangeBitToTagged, Operator::kNoProperties, 1), | 65 PURE(ChangeBitToTagged, Operator::kNoProperties, 1), |
66 PURE(TruncateTaggedToWord32, Operator::kNoProperties, 1), | 66 PURE(TruncateTaggedToWord32, Operator::kNoProperties, 1), |
67 PURE(TruncateTaggedToFloat64, Operator::kNoProperties, 1), | |
68 PURE(TruncateTaggedToBit, Operator::kNoProperties, 1), | |
69 PURE(ObjectIsNumber, Operator::kNoProperties, 1), | 67 PURE(ObjectIsNumber, Operator::kNoProperties, 1), |
70 PURE(ObjectIsReceiver, Operator::kNoProperties, 1), | 68 PURE(ObjectIsReceiver, Operator::kNoProperties, 1), |
71 PURE(ObjectIsSmi, Operator::kNoProperties, 1) | 69 PURE(ObjectIsSmi, Operator::kNoProperties, 1) |
72 #undef PURE | 70 #undef PURE |
73 }; | 71 }; |
74 | 72 |
75 } // namespace | 73 } // namespace |
76 | 74 |
77 | 75 |
78 class SimplifiedPureOperatorTest | 76 class SimplifiedPureOperatorTest |
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
297 } | 295 } |
298 | 296 |
299 | 297 |
300 INSTANTIATE_TEST_CASE_P(SimplifiedOperatorTest, | 298 INSTANTIATE_TEST_CASE_P(SimplifiedOperatorTest, |
301 SimplifiedElementAccessOperatorTest, | 299 SimplifiedElementAccessOperatorTest, |
302 ::testing::ValuesIn(kElementAccesses)); | 300 ::testing::ValuesIn(kElementAccesses)); |
303 | 301 |
304 } // namespace compiler | 302 } // namespace compiler |
305 } // namespace internal | 303 } // namespace internal |
306 } // namespace v8 | 304 } // namespace v8 |
OLD | NEW |