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

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

Issue 983153002: [turbofan] Add an extra frame state for deoptimization before binary op. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Tweak Created 5 years, 9 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
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/opcodes.h" 6 #include "src/compiler/opcodes.h"
7 #include "src/compiler/operator.h" 7 #include "src/compiler/operator.h"
8 #include "src/compiler/operator-properties.h" 8 #include "src/compiler/operator-properties.h"
9 #include "test/unittests/test-utils.h" 9 #include "test/unittests/test-utils.h"
10 10
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 control_output_count \ 48 control_output_count \
49 } 49 }
50 SHARED(Equal, Operator::kNoProperties, 2, 1, 1, 1, 1, 1, 2), 50 SHARED(Equal, Operator::kNoProperties, 2, 1, 1, 1, 1, 1, 2),
51 SHARED(NotEqual, Operator::kNoProperties, 2, 1, 1, 1, 1, 1, 2), 51 SHARED(NotEqual, Operator::kNoProperties, 2, 1, 1, 1, 1, 1, 2),
52 SHARED(StrictEqual, Operator::kPure, 2, 0, 0, 0, 1, 0, 0), 52 SHARED(StrictEqual, Operator::kPure, 2, 0, 0, 0, 1, 0, 0),
53 SHARED(StrictNotEqual, Operator::kPure, 2, 0, 0, 0, 1, 0, 0), 53 SHARED(StrictNotEqual, Operator::kPure, 2, 0, 0, 0, 1, 0, 0),
54 SHARED(LessThan, Operator::kNoProperties, 2, 1, 1, 1, 1, 1, 2), 54 SHARED(LessThan, Operator::kNoProperties, 2, 1, 1, 1, 1, 1, 2),
55 SHARED(GreaterThan, Operator::kNoProperties, 2, 1, 1, 1, 1, 1, 2), 55 SHARED(GreaterThan, Operator::kNoProperties, 2, 1, 1, 1, 1, 1, 2),
56 SHARED(LessThanOrEqual, Operator::kNoProperties, 2, 1, 1, 1, 1, 1, 2), 56 SHARED(LessThanOrEqual, Operator::kNoProperties, 2, 1, 1, 1, 1, 1, 2),
57 SHARED(GreaterThanOrEqual, Operator::kNoProperties, 2, 1, 1, 1, 1, 1, 2), 57 SHARED(GreaterThanOrEqual, Operator::kNoProperties, 2, 1, 1, 1, 1, 1, 2),
58 SHARED(BitwiseOr, Operator::kNoProperties, 2, 1, 1, 1, 1, 1, 2), 58 SHARED(BitwiseOr, Operator::kNoProperties, 2, 2, 1, 1, 1, 1, 2),
59 SHARED(BitwiseXor, Operator::kNoProperties, 2, 1, 1, 1, 1, 1, 2), 59 SHARED(BitwiseXor, Operator::kNoProperties, 2, 2, 1, 1, 1, 1, 2),
60 SHARED(BitwiseAnd, Operator::kNoProperties, 2, 1, 1, 1, 1, 1, 2), 60 SHARED(BitwiseAnd, Operator::kNoProperties, 2, 2, 1, 1, 1, 1, 2),
61 SHARED(ShiftLeft, Operator::kNoProperties, 2, 1, 1, 1, 1, 1, 2), 61 SHARED(ShiftLeft, Operator::kNoProperties, 2, 2, 1, 1, 1, 1, 2),
62 SHARED(ShiftRight, Operator::kNoProperties, 2, 1, 1, 1, 1, 1, 2), 62 SHARED(ShiftRight, Operator::kNoProperties, 2, 2, 1, 1, 1, 1, 2),
63 SHARED(ShiftRightLogical, Operator::kNoProperties, 2, 1, 1, 1, 1, 1, 2), 63 SHARED(ShiftRightLogical, Operator::kNoProperties, 2, 2, 1, 1, 1, 1, 2),
64 SHARED(Add, Operator::kNoProperties, 2, 1, 1, 1, 1, 1, 2), 64 SHARED(Add, Operator::kNoProperties, 2, 2, 1, 1, 1, 1, 2),
65 SHARED(Subtract, Operator::kNoProperties, 2, 1, 1, 1, 1, 1, 2), 65 SHARED(Subtract, Operator::kNoProperties, 2, 2, 1, 1, 1, 1, 2),
66 SHARED(Multiply, Operator::kNoProperties, 2, 1, 1, 1, 1, 1, 2), 66 SHARED(Multiply, Operator::kNoProperties, 2, 2, 1, 1, 1, 1, 2),
67 SHARED(Divide, Operator::kNoProperties, 2, 1, 1, 1, 1, 1, 2), 67 SHARED(Divide, Operator::kNoProperties, 2, 2, 1, 1, 1, 1, 2),
68 SHARED(Modulus, Operator::kNoProperties, 2, 1, 1, 1, 1, 1, 2), 68 SHARED(Modulus, Operator::kNoProperties, 2, 2, 1, 1, 1, 1, 2),
69 SHARED(UnaryNot, Operator::kPure, 1, 0, 0, 0, 1, 0, 0), 69 SHARED(UnaryNot, Operator::kPure, 1, 0, 0, 0, 1, 0, 0),
70 SHARED(ToBoolean, Operator::kPure, 1, 0, 0, 0, 1, 0, 0), 70 SHARED(ToBoolean, Operator::kPure, 1, 0, 0, 0, 1, 0, 0),
71 SHARED(ToNumber, Operator::kNoProperties, 1, 1, 1, 1, 1, 1, 2), 71 SHARED(ToNumber, Operator::kNoProperties, 1, 1, 1, 1, 1, 1, 2),
72 SHARED(ToString, Operator::kNoProperties, 1, 0, 1, 1, 1, 1, 2), 72 SHARED(ToString, Operator::kNoProperties, 1, 0, 1, 1, 1, 1, 2),
73 SHARED(ToName, Operator::kNoProperties, 1, 1, 1, 1, 1, 1, 2), 73 SHARED(ToName, Operator::kNoProperties, 1, 1, 1, 1, 1, 1, 2),
74 SHARED(ToObject, Operator::kNoProperties, 1, 1, 1, 1, 1, 1, 2), 74 SHARED(ToObject, Operator::kNoProperties, 1, 1, 1, 1, 1, 1, 2),
75 SHARED(Yield, Operator::kNoProperties, 1, 0, 1, 1, 1, 1, 2), 75 SHARED(Yield, Operator::kNoProperties, 1, 0, 1, 1, 1, 1, 2),
76 SHARED(Create, Operator::kEliminatable, 0, 0, 1, 1, 1, 1, 0), 76 SHARED(Create, Operator::kEliminatable, 0, 0, 1, 1, 1, 1, 0),
77 SHARED(HasProperty, Operator::kNoProperties, 2, 1, 1, 1, 1, 1, 2), 77 SHARED(HasProperty, Operator::kNoProperties, 2, 1, 1, 1, 1, 1, 2),
78 SHARED(TypeOf, Operator::kPure, 1, 0, 0, 0, 1, 0, 0), 78 SHARED(TypeOf, Operator::kPure, 1, 0, 0, 0, 1, 0, 0),
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 EXPECT_EQ(Operator::kNoProperties, op->properties()); 210 EXPECT_EQ(Operator::kNoProperties, op->properties());
211 } 211 }
212 212
213 213
214 INSTANTIATE_TEST_CASE_P(JSOperatorTest, JSStorePropertyOperatorTest, 214 INSTANTIATE_TEST_CASE_P(JSOperatorTest, JSStorePropertyOperatorTest,
215 ::testing::Values(SLOPPY, STRICT)); 215 ::testing::Values(SLOPPY, STRICT));
216 216
217 } // namespace compiler 217 } // namespace compiler
218 } // namespace internal 218 } // namespace internal
219 } // namespace v8 219 } // namespace v8
OLDNEW
« no previous file with comments | « test/cctest/compiler/test-js-typed-lowering.cc ('k') | test/unittests/compiler/scheduler-unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698