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

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

Issue 547233003: [turbofan] Machine operators are globally shared singletons. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Next windows fix. Created 6 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 | Annotate | Revision Log
« no previous file with comments | « src/unique.h ('k') | test/cctest/compiler/test-changes-lowering.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 Graph* graph_; 54 Graph* graph_;
55 MaybeHandle<Code> code_; 55 MaybeHandle<Code> code_;
56 }; 56 };
57 57
58 58
59 class GraphAndBuilders { 59 class GraphAndBuilders {
60 public: 60 public:
61 explicit GraphAndBuilders(Zone* zone) 61 explicit GraphAndBuilders(Zone* zone)
62 : main_graph_(new (zone) Graph(zone)), 62 : main_graph_(new (zone) Graph(zone)),
63 main_common_(zone), 63 main_common_(zone),
64 main_machine_(zone),
65 main_simplified_(zone) {} 64 main_simplified_(zone) {}
66 65
67 protected: 66 protected:
68 // Prefixed with main_ to avoid naiming conflicts. 67 // Prefixed with main_ to avoid naiming conflicts.
69 Graph* main_graph_; 68 Graph* main_graph_;
70 CommonOperatorBuilder main_common_; 69 CommonOperatorBuilder main_common_;
71 MachineOperatorBuilder main_machine_; 70 MachineOperatorBuilder main_machine_;
72 SimplifiedOperatorBuilder main_simplified_; 71 SimplifiedOperatorBuilder main_simplified_;
73 }; 72 };
74 73
(...skipping 24 matching lines...) Expand all
99 } 98 }
100 virtual ~GraphBuilderTester() {} 99 virtual ~GraphBuilderTester() {}
101 100
102 Factory* factory() const { return isolate()->factory(); } 101 Factory* factory() const { return isolate()->factory(); }
103 }; 102 };
104 } // namespace compiler 103 } // namespace compiler
105 } // namespace internal 104 } // namespace internal
106 } // namespace v8 105 } // namespace v8
107 106
108 #endif // V8_CCTEST_COMPILER_GRAPH_BUILDER_TESTER_H_ 107 #endif // V8_CCTEST_COMPILER_GRAPH_BUILDER_TESTER_H_
OLDNEW
« no previous file with comments | « src/unique.h ('k') | test/cctest/compiler/test-changes-lowering.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698