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

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

Issue 644083003: [turbofan] Reduce memory consumption of graph building (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Add missing arraysize Created 6 years, 2 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
11 #include "src/compiler/common-operator.h" 11 #include "src/compiler/common-operator.h"
12 #include "src/compiler/graph-builder.h" 12 #include "src/compiler/graph-builder.h"
13 #include "src/compiler/machine-operator.h" 13 #include "src/compiler/machine-operator.h"
14 #include "src/compiler/simplified-operator.h" 14 #include "src/compiler/simplified-operator.h"
15 #include "test/cctest/compiler/call-tester.h" 15 #include "test/cctest/compiler/call-tester.h"
16 #include "test/cctest/compiler/simplified-graph-builder.h" 16 #include "test/cctest/compiler/simplified-graph-builder.h"
17 17
18 namespace v8 { 18 namespace v8 {
19 namespace internal { 19 namespace internal {
20 namespace compiler { 20 namespace compiler {
21 21
22 // A class that just passes node creation on to the Graph. 22 // A class that just passes node creation on to the Graph.
23 class DirectGraphBuilder : public GraphBuilder { 23 class DirectGraphBuilder : public GraphBuilder {
24 public: 24 public:
25 explicit DirectGraphBuilder(Graph* graph) : GraphBuilder(graph) {} 25 explicit DirectGraphBuilder(Graph* graph) : GraphBuilder(graph) {}
26 virtual ~DirectGraphBuilder() {} 26 virtual ~DirectGraphBuilder() {}
27 27
28 protected: 28 protected:
29 virtual Node* MakeNode(const Operator* op, int value_input_count, 29 virtual Node* MakeNode(const Operator* op, int value_input_count,
30 Node** value_inputs) FINAL { 30 Node** value_inputs, bool incomplete) FINAL {
31 return graph()->NewNode(op, value_input_count, value_inputs); 31 return graph()->NewNode(op, value_input_count, value_inputs, incomplete);
32 } 32 }
33 }; 33 };
34 34
35 35
36 class MachineCallHelper : public CallHelper { 36 class MachineCallHelper : public CallHelper {
37 public: 37 public:
38 MachineCallHelper(Zone* zone, MachineSignature* machine_sig); 38 MachineCallHelper(Zone* zone, MachineSignature* machine_sig);
39 39
40 Node* Parameter(size_t index); 40 Node* Parameter(size_t index);
41 41
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 } 98 }
99 virtual ~GraphBuilderTester() {} 99 virtual ~GraphBuilderTester() {}
100 100
101 Factory* factory() const { return isolate()->factory(); } 101 Factory* factory() const { return isolate()->factory(); }
102 }; 102 };
103 } // namespace compiler 103 } // namespace compiler
104 } // namespace internal 104 } // namespace internal
105 } // namespace v8 105 } // namespace v8
106 106
107 #endif // V8_CCTEST_COMPILER_GRAPH_BUILDER_TESTER_H_ 107 #endif // V8_CCTEST_COMPILER_GRAPH_BUILDER_TESTER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698