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

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

Issue 437583002: TF: Lowering representation changes to machine operators (WIP: need inline allocation for some). Mo… (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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 77
78 78
79 template <typename ReturnType> 79 template <typename ReturnType>
80 class GraphBuilderTester 80 class GraphBuilderTester
81 : public HandleAndZoneScope, 81 : public HandleAndZoneScope,
82 private GraphAndBuilders, 82 private GraphAndBuilders,
83 public MachineCallHelper, 83 public MachineCallHelper,
84 public SimplifiedGraphBuilder, 84 public SimplifiedGraphBuilder,
85 public CallHelper2<ReturnType, GraphBuilderTester<ReturnType> > { 85 public CallHelper2<ReturnType, GraphBuilderTester<ReturnType> > {
86 public: 86 public:
87 explicit GraphBuilderTester(MachineRepresentation p0, 87 explicit GraphBuilderTester(MachineRepresentation p0 = kMachineLast,
88 MachineRepresentation p1, 88 MachineRepresentation p1 = kMachineLast,
89 MachineRepresentation p2, 89 MachineRepresentation p2 = kMachineLast,
90 MachineRepresentation p3, 90 MachineRepresentation p3 = kMachineLast,
91 MachineRepresentation p4) 91 MachineRepresentation p4 = kMachineLast)
92 : GraphAndBuilders(main_zone()), 92 : GraphAndBuilders(main_zone()),
93 MachineCallHelper( 93 MachineCallHelper(
94 main_zone(), 94 main_zone(),
95 ToCallDescriptorBuilder( 95 ToCallDescriptorBuilder(
96 main_zone(), ReturnValueTraits<ReturnType>::Representation(), 96 main_zone(), ReturnValueTraits<ReturnType>::Representation(),
97 p0, p1, p2, p3, p4)), 97 p0, p1, p2, p3, p4)),
98 SimplifiedGraphBuilder(main_graph_, &main_common_, &main_machine_, 98 SimplifiedGraphBuilder(main_graph_, &main_common_, &main_machine_,
99 &main_simplified_) { 99 &main_simplified_) {
100 Begin(); 100 Begin();
101 InitParameters(this, &main_common_); 101 InitParameters(this, &main_common_);
102 } 102 }
103 virtual ~GraphBuilderTester() {} 103 virtual ~GraphBuilderTester() {}
104 104
105 Factory* factory() const { return isolate()->factory(); } 105 Factory* factory() const { return isolate()->factory(); }
106 }; 106 };
107 } // namespace compiler 107 } // namespace compiler
108 } // namespace internal 108 } // namespace internal
109 } // namespace v8 109 } // namespace v8
110 110
111 #endif // V8_CCTEST_COMPILER_GRAPH_BUILDER_TESTER_H_ 111 #endif // V8_CCTEST_COMPILER_GRAPH_BUILDER_TESTER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698