Chromium Code Reviews

Side by Side Diff: test/cctest/compiler/graph-builder-tester.h

Issue 470593002: Unify MachineType and RepType. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Forgot a RepresentationOf() in arm64. Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | | Annotate | Revision Log
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_CCTEST_COMPILER_GRAPH_BUILDER_TESTER_H_ 5 #ifndef V8_CCTEST_COMPILER_GRAPH_BUILDER_TESTER_H_
6 #define V8_CCTEST_COMPILER_GRAPH_BUILDER_TESTER_H_ 6 #define V8_CCTEST_COMPILER_GRAPH_BUILDER_TESTER_H_
7 7
8 #include "src/v8.h" 8 #include "src/v8.h"
9 #include "test/cctest/cctest.h" 9 #include "test/cctest/cctest.h"
10 10
(...skipping 69 matching lines...)
80 80
81 81
82 template <typename ReturnType> 82 template <typename ReturnType>
83 class GraphBuilderTester 83 class GraphBuilderTester
84 : public HandleAndZoneScope, 84 : public HandleAndZoneScope,
85 private GraphAndBuilders, 85 private GraphAndBuilders,
86 public MachineCallHelper, 86 public MachineCallHelper,
87 public SimplifiedGraphBuilder, 87 public SimplifiedGraphBuilder,
88 public CallHelper2<ReturnType, GraphBuilderTester<ReturnType> > { 88 public CallHelper2<ReturnType, GraphBuilderTester<ReturnType> > {
89 public: 89 public:
90 explicit GraphBuilderTester(MachineType p0 = kMachineLast, 90 explicit GraphBuilderTester(MachineType p0 = mNone, MachineType p1 = mNone,
91 MachineType p1 = kMachineLast, 91 MachineType p2 = mNone, MachineType p3 = mNone,
92 MachineType p2 = kMachineLast, 92 MachineType p4 = mNone)
93 MachineType p3 = kMachineLast,
94 MachineType p4 = kMachineLast)
95 : GraphAndBuilders(main_zone()), 93 : GraphAndBuilders(main_zone()),
96 MachineCallHelper( 94 MachineCallHelper(
97 main_zone(), 95 main_zone(),
98 ToCallDescriptorBuilder( 96 ToCallDescriptorBuilder(
99 main_zone(), ReturnValueTraits<ReturnType>::Representation(), 97 main_zone(), ReturnValueTraits<ReturnType>::Representation(),
100 p0, p1, p2, p3, p4)), 98 p0, p1, p2, p3, p4)),
101 SimplifiedGraphBuilder(main_graph_, &main_common_, &main_machine_, 99 SimplifiedGraphBuilder(main_graph_, &main_common_, &main_machine_,
102 &main_simplified_) { 100 &main_simplified_) {
103 Begin(parameter_count()); 101 Begin(parameter_count());
104 InitParameters(this, &main_common_); 102 InitParameters(this, &main_common_);
105 } 103 }
106 virtual ~GraphBuilderTester() {} 104 virtual ~GraphBuilderTester() {}
107 105
108 Factory* factory() const { return isolate()->factory(); } 106 Factory* factory() const { return isolate()->factory(); }
109 }; 107 };
110 } // namespace compiler 108 } // namespace compiler
111 } // namespace internal 109 } // namespace internal
112 } // namespace v8 110 } // namespace v8
113 111
114 #endif // V8_CCTEST_COMPILER_GRAPH_BUILDER_TESTER_H_ 112 #endif // V8_CCTEST_COMPILER_GRAPH_BUILDER_TESTER_H_
OLDNEW

Powered by Google App Engine