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

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

Issue 1369313004: [turbofan] Make string comparisons effectful. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 2 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-simplified-lowering.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/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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
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(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),
55 PURE(StringLessThan, Operator::kNoProperties, 2),
56 PURE(StringLessThanOrEqual, Operator::kNoProperties, 2),
57 PURE(ChangeTaggedToInt32, Operator::kNoProperties, 1), 54 PURE(ChangeTaggedToInt32, Operator::kNoProperties, 1),
58 PURE(ChangeTaggedToUint32, Operator::kNoProperties, 1), 55 PURE(ChangeTaggedToUint32, Operator::kNoProperties, 1),
59 PURE(ChangeTaggedToFloat64, Operator::kNoProperties, 1), 56 PURE(ChangeTaggedToFloat64, Operator::kNoProperties, 1),
60 PURE(ChangeInt32ToTagged, Operator::kNoProperties, 1), 57 PURE(ChangeInt32ToTagged, Operator::kNoProperties, 1),
61 PURE(ChangeUint32ToTagged, Operator::kNoProperties, 1), 58 PURE(ChangeUint32ToTagged, Operator::kNoProperties, 1),
62 PURE(ChangeFloat64ToTagged, Operator::kNoProperties, 1), 59 PURE(ChangeFloat64ToTagged, Operator::kNoProperties, 1),
63 PURE(ChangeBoolToBit, Operator::kNoProperties, 1), 60 PURE(ChangeBoolToBit, Operator::kNoProperties, 1),
64 PURE(ChangeBitToBool, Operator::kNoProperties, 1), 61 PURE(ChangeBitToBool, Operator::kNoProperties, 1),
65 PURE(ObjectIsSmi, Operator::kNoProperties, 1) 62 PURE(ObjectIsSmi, Operator::kNoProperties, 1)
66 #undef PURE 63 #undef PURE
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
277 } 274 }
278 275
279 276
280 INSTANTIATE_TEST_CASE_P(SimplifiedOperatorTest, 277 INSTANTIATE_TEST_CASE_P(SimplifiedOperatorTest,
281 SimplifiedElementAccessOperatorTest, 278 SimplifiedElementAccessOperatorTest,
282 ::testing::ValuesIn(kElementAccesses)); 279 ::testing::ValuesIn(kElementAccesses));
283 280
284 } // namespace compiler 281 } // namespace compiler
285 } // namespace internal 282 } // namespace internal
286 } // namespace v8 283 } // namespace v8
OLDNEW
« no previous file with comments | « test/cctest/compiler/test-simplified-lowering.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698