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

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: Created 6 years, 4 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 | 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...) Expand 10 before | Expand all | Expand 10 after
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 = kMachNone,
91 MachineType p1 = kMachineLast, 91 MachineType p1 = kMachNone,
92 MachineType p2 = kMachineLast, 92 MachineType p2 = kMachNone,
93 MachineType p3 = kMachineLast, 93 MachineType p3 = kMachNone,
94 MachineType p4 = kMachineLast) 94 MachineType p4 = kMachNone)
95 : GraphAndBuilders(main_zone()), 95 : GraphAndBuilders(main_zone()),
96 MachineCallHelper( 96 MachineCallHelper(
97 main_zone(), 97 main_zone(),
98 ToCallDescriptorBuilder( 98 ToCallDescriptorBuilder(
99 main_zone(), ReturnValueTraits<ReturnType>::Representation(), 99 main_zone(), ReturnValueTraits<ReturnType>::Representation(),
100 p0, p1, p2, p3, p4)), 100 p0, p1, p2, p3, p4)),
101 SimplifiedGraphBuilder(main_graph_, &main_common_, &main_machine_, 101 SimplifiedGraphBuilder(main_graph_, &main_common_, &main_machine_,
102 &main_simplified_) { 102 &main_simplified_) {
103 Begin(parameter_count()); 103 Begin(parameter_count());
104 InitParameters(this, &main_common_); 104 InitParameters(this, &main_common_);
105 } 105 }
106 virtual ~GraphBuilderTester() {} 106 virtual ~GraphBuilderTester() {}
107 107
108 Factory* factory() const { return isolate()->factory(); } 108 Factory* factory() const { return isolate()->factory(); }
109 }; 109 };
110 } // namespace compiler 110 } // namespace compiler
111 } // namespace internal 111 } // namespace internal
112 } // namespace v8 112 } // namespace v8
113 113
114 #endif // V8_CCTEST_COMPILER_GRAPH_BUILDER_TESTER_H_ 114 #endif // V8_CCTEST_COMPILER_GRAPH_BUILDER_TESTER_H_
OLDNEW
« no previous file with comments | « test/cctest/compiler/codegen-tester.cc ('k') | test/cctest/compiler/instruction-selector-tester.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698