Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(73)

Side by Side Diff: test/unittests/compiler/simplified-operator-unittest.cc

Issue 2167593002: [turbofan] Introduce TruncateTaggedToBit operator for ToBoolean truncation. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix remaining bugs. Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « test/cctest/compiler/test-representation-change.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/simplified-operator.h" 5 #include "src/compiler/simplified-operator.h"
6 #include "src/compiler/opcodes.h" 6 #include "src/compiler/opcodes.h"
7 #include "src/compiler/operator-properties.h" 7 #include "src/compiler/operator-properties.h"
8 #include "src/compiler/operator.h" 8 #include "src/compiler/operator.h"
9 #include "src/compiler/types.h" 9 #include "src/compiler/types.h"
10 #include "test/unittests/test-utils.h" 10 #include "test/unittests/test-utils.h"
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 PURE(NumberToUint32, Operator::kNoProperties, 1), 56 PURE(NumberToUint32, Operator::kNoProperties, 1),
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(ChangeTaggedToBit, Operator::kNoProperties, 1), 63 PURE(ChangeTaggedToBit, Operator::kNoProperties, 1),
64 PURE(ChangeBitToTagged, Operator::kNoProperties, 1), 64 PURE(ChangeBitToTagged, Operator::kNoProperties, 1),
65 PURE(TruncateTaggedToWord32, Operator::kNoProperties, 1), 65 PURE(TruncateTaggedToWord32, Operator::kNoProperties, 1),
66 PURE(TruncateTaggedToFloat64, Operator::kNoProperties, 1),
67 PURE(TruncateTaggedToBit, Operator::kNoProperties, 1),
66 PURE(ObjectIsNumber, Operator::kNoProperties, 1), 68 PURE(ObjectIsNumber, Operator::kNoProperties, 1),
67 PURE(ObjectIsReceiver, Operator::kNoProperties, 1), 69 PURE(ObjectIsReceiver, Operator::kNoProperties, 1),
68 PURE(ObjectIsSmi, Operator::kNoProperties, 1) 70 PURE(ObjectIsSmi, Operator::kNoProperties, 1)
69 #undef PURE 71 #undef PURE
70 }; 72 };
71 73
72 } // namespace 74 } // namespace
73 75
74 76
75 class SimplifiedPureOperatorTest 77 class SimplifiedPureOperatorTest
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
294 } 296 }
295 297
296 298
297 INSTANTIATE_TEST_CASE_P(SimplifiedOperatorTest, 299 INSTANTIATE_TEST_CASE_P(SimplifiedOperatorTest,
298 SimplifiedElementAccessOperatorTest, 300 SimplifiedElementAccessOperatorTest,
299 ::testing::ValuesIn(kElementAccesses)); 301 ::testing::ValuesIn(kElementAccesses));
300 302
301 } // namespace compiler 303 } // namespace compiler
302 } // namespace internal 304 } // namespace internal
303 } // namespace v8 305 } // namespace v8
OLDNEW
« no previous file with comments | « test/cctest/compiler/test-representation-change.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698