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

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

Issue 792463003: [turbofan] Turn JSToBoolean and JSUnaryNot into pure operators. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 6 years 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
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/js-operator.h" 5 #include "src/compiler/js-operator.h"
6 #include "src/compiler/operator-properties-inl.h" 6 #include "src/compiler/operator-properties-inl.h"
7 #include "test/unittests/test-utils.h" 7 #include "test/unittests/test-utils.h"
8 8
9 namespace v8 { 9 namespace v8 {
10 namespace internal { 10 namespace internal {
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 SHARED(BitwiseXor, Operator::kNoProperties, 2, 1, 1, 1, 1, 1), 55 SHARED(BitwiseXor, Operator::kNoProperties, 2, 1, 1, 1, 1, 1),
56 SHARED(BitwiseAnd, Operator::kNoProperties, 2, 1, 1, 1, 1, 1), 56 SHARED(BitwiseAnd, Operator::kNoProperties, 2, 1, 1, 1, 1, 1),
57 SHARED(ShiftLeft, Operator::kNoProperties, 2, 1, 1, 1, 1, 1), 57 SHARED(ShiftLeft, Operator::kNoProperties, 2, 1, 1, 1, 1, 1),
58 SHARED(ShiftRight, Operator::kNoProperties, 2, 1, 1, 1, 1, 1), 58 SHARED(ShiftRight, Operator::kNoProperties, 2, 1, 1, 1, 1, 1),
59 SHARED(ShiftRightLogical, Operator::kNoProperties, 2, 1, 1, 1, 1, 1), 59 SHARED(ShiftRightLogical, Operator::kNoProperties, 2, 1, 1, 1, 1, 1),
60 SHARED(Add, Operator::kNoProperties, 2, 1, 1, 1, 1, 1), 60 SHARED(Add, Operator::kNoProperties, 2, 1, 1, 1, 1, 1),
61 SHARED(Subtract, Operator::kNoProperties, 2, 1, 1, 1, 1, 1), 61 SHARED(Subtract, Operator::kNoProperties, 2, 1, 1, 1, 1, 1),
62 SHARED(Multiply, Operator::kNoProperties, 2, 1, 1, 1, 1, 1), 62 SHARED(Multiply, Operator::kNoProperties, 2, 1, 1, 1, 1, 1),
63 SHARED(Divide, Operator::kNoProperties, 2, 1, 1, 1, 1, 1), 63 SHARED(Divide, Operator::kNoProperties, 2, 1, 1, 1, 1, 1),
64 SHARED(Modulus, Operator::kNoProperties, 2, 1, 1, 1, 1, 1), 64 SHARED(Modulus, Operator::kNoProperties, 2, 1, 1, 1, 1, 1),
65 SHARED(UnaryNot, Operator::kNoProperties, 1, 0, 1, 1, 1, 1), 65 SHARED(UnaryNot, Operator::kPure, 1, 0, 0, 0, 1, 0),
66 SHARED(ToBoolean, Operator::kNoProperties, 1, 0, 1, 1, 1, 1), 66 SHARED(ToBoolean, Operator::kPure, 1, 0, 0, 0, 1, 0),
67 SHARED(ToNumber, Operator::kNoProperties, 1, 0, 1, 1, 1, 1), 67 SHARED(ToNumber, Operator::kNoProperties, 1, 0, 1, 1, 1, 1),
68 SHARED(ToString, Operator::kNoProperties, 1, 0, 1, 1, 1, 1), 68 SHARED(ToString, Operator::kNoProperties, 1, 0, 1, 1, 1, 1),
69 SHARED(ToName, Operator::kNoProperties, 1, 0, 1, 1, 1, 1), 69 SHARED(ToName, Operator::kNoProperties, 1, 0, 1, 1, 1, 1),
70 SHARED(ToObject, Operator::kNoProperties, 1, 1, 1, 1, 1, 1), 70 SHARED(ToObject, Operator::kNoProperties, 1, 1, 1, 1, 1, 1),
71 SHARED(Yield, Operator::kNoProperties, 1, 0, 1, 1, 1, 1), 71 SHARED(Yield, Operator::kNoProperties, 1, 0, 1, 1, 1, 1),
72 SHARED(Create, Operator::kEliminatable, 0, 0, 1, 1, 1, 1), 72 SHARED(Create, Operator::kEliminatable, 0, 0, 1, 1, 1, 1),
73 SHARED(HasProperty, Operator::kNoProperties, 2, 1, 1, 1, 1, 1), 73 SHARED(HasProperty, Operator::kNoProperties, 2, 1, 1, 1, 1, 1),
74 SHARED(TypeOf, Operator::kPure, 1, 0, 0, 0, 1, 0), 74 SHARED(TypeOf, Operator::kPure, 1, 0, 0, 0, 1, 0),
75 SHARED(InstanceOf, Operator::kNoProperties, 2, 1, 1, 1, 1, 1), 75 SHARED(InstanceOf, Operator::kNoProperties, 2, 1, 1, 1, 1, 1),
76 SHARED(Debugger, Operator::kNoProperties, 0, 0, 1, 1, 0, 1), 76 SHARED(Debugger, Operator::kNoProperties, 0, 0, 1, 1, 0, 1),
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 EXPECT_EQ(Operator::kNoProperties, op->properties()); 206 EXPECT_EQ(Operator::kNoProperties, op->properties());
207 } 207 }
208 208
209 209
210 INSTANTIATE_TEST_CASE_P(JSOperatorTest, JSStorePropertyOperatorTest, 210 INSTANTIATE_TEST_CASE_P(JSOperatorTest, JSStorePropertyOperatorTest,
211 ::testing::Values(SLOPPY, STRICT)); 211 ::testing::Values(SLOPPY, STRICT));
212 212
213 } // namespace compiler 213 } // namespace compiler
214 } // namespace internal 214 } // namespace internal
215 } // namespace v8 215 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698