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

Side by Side Diff: test/unittests/compiler/node-test-utils.h

Issue 800833003: [turbofan] Correctify JSToBoolean lowering. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Improve simplified lowering. Created 5 years, 11 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 #ifndef V8_UNITTESTS_COMPILER_NODE_TEST_UTILS_H_ 5 #ifndef V8_UNITTESTS_COMPILER_NODE_TEST_UTILS_H_
6 #define V8_UNITTESTS_COMPILER_NODE_TEST_UTILS_H_ 6 #define V8_UNITTESTS_COMPILER_NODE_TEST_UTILS_H_
7 7
8 #include "src/compiler/machine-operator.h" 8 #include "src/compiler/machine-operator.h"
9 #include "src/compiler/machine-type.h" 9 #include "src/compiler/machine-type.h"
10 #include "testing/gmock/include/gmock/gmock.h" 10 #include "testing/gmock/include/gmock/gmock.h"
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 const Matcher<Node*>& effect_matcher, 68 const Matcher<Node*>& effect_matcher,
69 const Matcher<Node*>& control_matcher); 69 const Matcher<Node*>& control_matcher);
70 Matcher<Node*> IsCall(const Matcher<CallDescriptor*>& descriptor_matcher, 70 Matcher<Node*> IsCall(const Matcher<CallDescriptor*>& descriptor_matcher,
71 const Matcher<Node*>& value0_matcher, 71 const Matcher<Node*>& value0_matcher,
72 const Matcher<Node*>& value1_matcher, 72 const Matcher<Node*>& value1_matcher,
73 const Matcher<Node*>& value2_matcher, 73 const Matcher<Node*>& value2_matcher,
74 const Matcher<Node*>& value3_matcher, 74 const Matcher<Node*>& value3_matcher,
75 const Matcher<Node*>& effect_matcher, 75 const Matcher<Node*>& effect_matcher,
76 const Matcher<Node*>& control_matcher); 76 const Matcher<Node*>& control_matcher);
77 77
78 Matcher<Node*> IsAnyToBoolean(const Matcher<Node*>& value_matcher);
78 Matcher<Node*> IsBooleanNot(const Matcher<Node*>& value_matcher); 79 Matcher<Node*> IsBooleanNot(const Matcher<Node*>& value_matcher);
79 Matcher<Node*> IsNumberEqual(const Matcher<Node*>& lhs_matcher, 80 Matcher<Node*> IsNumberEqual(const Matcher<Node*>& lhs_matcher,
80 const Matcher<Node*>& rhs_matcher); 81 const Matcher<Node*>& rhs_matcher);
81 Matcher<Node*> IsNumberLessThan(const Matcher<Node*>& lhs_matcher, 82 Matcher<Node*> IsNumberLessThan(const Matcher<Node*>& lhs_matcher,
82 const Matcher<Node*>& rhs_matcher); 83 const Matcher<Node*>& rhs_matcher);
83 Matcher<Node*> IsNumberSubtract(const Matcher<Node*>& lhs_matcher, 84 Matcher<Node*> IsNumberSubtract(const Matcher<Node*>& lhs_matcher,
84 const Matcher<Node*>& rhs_matcher); 85 const Matcher<Node*>& rhs_matcher);
85 Matcher<Node*> IsNumberMultiply(const Matcher<Node*>& lhs_matcher, 86 Matcher<Node*> IsNumberMultiply(const Matcher<Node*>& lhs_matcher,
86 const Matcher<Node*>& rhs_matcher); 87 const Matcher<Node*>& rhs_matcher);
87 Matcher<Node*> IsLoadField(const Matcher<FieldAccess>& access_matcher, 88 Matcher<Node*> IsLoadField(const Matcher<FieldAccess>& access_matcher,
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 const Matcher<Node*>& effect_matcher, 187 const Matcher<Node*>& effect_matcher,
187 const Matcher<Node*>& control_matcher); 188 const Matcher<Node*>& control_matcher);
188 Matcher<Node*> IsNumberToInt32(const Matcher<Node*>& input_matcher); 189 Matcher<Node*> IsNumberToInt32(const Matcher<Node*>& input_matcher);
189 Matcher<Node*> IsNumberToUint32(const Matcher<Node*>& input_matcher); 190 Matcher<Node*> IsNumberToUint32(const Matcher<Node*>& input_matcher);
190 191
191 } // namespace compiler 192 } // namespace compiler
192 } // namespace internal 193 } // namespace internal
193 } // namespace v8 194 } // namespace v8
194 195
195 #endif // V8_UNITTESTS_COMPILER_NODE_TEST_UTILS_H_ 196 #endif // V8_UNITTESTS_COMPILER_NODE_TEST_UTILS_H_
OLDNEW
« no previous file with comments | « test/unittests/compiler/js-typed-lowering-unittest.cc ('k') | test/unittests/compiler/node-test-utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698