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

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

Issue 1314473007: [turbofan] Remove usage of Unique<T> from graph. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebased and fixed. Created 5 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
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"
11 11
12 namespace v8 { 12 namespace v8 {
13 namespace internal { 13 namespace internal {
14 14
15 // Forward declarations. 15 // Forward declarations.
16 class ExternalReference; 16 class ExternalReference;
17 template <typename T>
18 class Handle;
17 class HeapObject; 19 class HeapObject;
18 template <class T>
19 class Unique;
20 template <class> 20 template <class>
21 class TypeImpl; 21 class TypeImpl;
22 struct ZoneTypeConfig; 22 struct ZoneTypeConfig;
23 typedef TypeImpl<ZoneTypeConfig> Type; 23 typedef TypeImpl<ZoneTypeConfig> Type;
24 24
25 namespace compiler { 25 namespace compiler {
26 26
27 // Forward declarations. 27 // Forward declarations.
28 class BufferAccess; 28 class BufferAccess;
29 class CallDescriptor; 29 class CallDescriptor;
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 Matcher<Node*> IsValueEffect(const Matcher<Node*>& value_matcher); 66 Matcher<Node*> IsValueEffect(const Matcher<Node*>& value_matcher);
67 Matcher<Node*> IsFinish(const Matcher<Node*>& value_matcher, 67 Matcher<Node*> IsFinish(const Matcher<Node*>& value_matcher,
68 const Matcher<Node*>& effect_matcher); 68 const Matcher<Node*>& effect_matcher);
69 Matcher<Node*> IsReturn(const Matcher<Node*>& value_matcher, 69 Matcher<Node*> IsReturn(const Matcher<Node*>& value_matcher,
70 const Matcher<Node*>& effect_matcher, 70 const Matcher<Node*>& effect_matcher,
71 const Matcher<Node*>& control_matcher); 71 const Matcher<Node*>& control_matcher);
72 Matcher<Node*> IsTerminate(const Matcher<Node*>& effect_matcher, 72 Matcher<Node*> IsTerminate(const Matcher<Node*>& effect_matcher,
73 const Matcher<Node*>& control_matcher); 73 const Matcher<Node*>& control_matcher);
74 Matcher<Node*> IsExternalConstant( 74 Matcher<Node*> IsExternalConstant(
75 const Matcher<ExternalReference>& value_matcher); 75 const Matcher<ExternalReference>& value_matcher);
76 Matcher<Node*> IsHeapConstant( 76 Matcher<Node*> IsHeapConstant(Handle<HeapObject> value);
77 const Matcher<Unique<HeapObject> >& value_matcher);
78 Matcher<Node*> IsFloat32Constant(const Matcher<float>& value_matcher); 77 Matcher<Node*> IsFloat32Constant(const Matcher<float>& value_matcher);
79 Matcher<Node*> IsFloat64Constant(const Matcher<double>& value_matcher); 78 Matcher<Node*> IsFloat64Constant(const Matcher<double>& value_matcher);
80 Matcher<Node*> IsInt32Constant(const Matcher<int32_t>& value_matcher); 79 Matcher<Node*> IsInt32Constant(const Matcher<int32_t>& value_matcher);
81 Matcher<Node*> IsInt64Constant(const Matcher<int64_t>& value_matcher); 80 Matcher<Node*> IsInt64Constant(const Matcher<int64_t>& value_matcher);
82 Matcher<Node*> IsNumberConstant(const Matcher<double>& value_matcher); 81 Matcher<Node*> IsNumberConstant(const Matcher<double>& value_matcher);
83 Matcher<Node*> IsSelect(const Matcher<MachineType>& type_matcher, 82 Matcher<Node*> IsSelect(const Matcher<MachineType>& type_matcher,
84 const Matcher<Node*>& value0_matcher, 83 const Matcher<Node*>& value0_matcher,
85 const Matcher<Node*>& value1_matcher, 84 const Matcher<Node*>& value1_matcher,
86 const Matcher<Node*>& value2_matcher); 85 const Matcher<Node*>& value2_matcher);
87 Matcher<Node*> IsPhi(const Matcher<MachineType>& type_matcher, 86 Matcher<Node*> IsPhi(const Matcher<MachineType>& type_matcher,
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after
343 Matcher<Node*> IsNumberToInt32(const Matcher<Node*>& input_matcher); 342 Matcher<Node*> IsNumberToInt32(const Matcher<Node*>& input_matcher);
344 Matcher<Node*> IsNumberToUint32(const Matcher<Node*>& input_matcher); 343 Matcher<Node*> IsNumberToUint32(const Matcher<Node*>& input_matcher);
345 Matcher<Node*> IsParameter(const Matcher<int> index_matcher); 344 Matcher<Node*> IsParameter(const Matcher<int> index_matcher);
346 Matcher<Node*> IsLoadFramePointer(); 345 Matcher<Node*> IsLoadFramePointer();
347 346
348 } // namespace compiler 347 } // namespace compiler
349 } // namespace internal 348 } // namespace internal
350 } // namespace v8 349 } // namespace v8
351 350
352 #endif // V8_UNITTESTS_COMPILER_NODE_TEST_UTILS_H_ 351 #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