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

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

Issue 448113002: Minor simplification and cleanup of graph builder. (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
« no previous file with comments | « src/compiler/pipeline.cc ('k') | test/mjsunit/mjsunit.status » ('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_SIMPLIFIED_GRAPH_BUILDER_H_ 5 #ifndef V8_CCTEST_COMPILER_SIMPLIFIED_GRAPH_BUILDER_H_
6 #define V8_CCTEST_COMPILER_SIMPLIFIED_GRAPH_BUILDER_H_ 6 #define V8_CCTEST_COMPILER_SIMPLIFIED_GRAPH_BUILDER_H_
7 7
8 #include "src/compiler/common-operator.h" 8 #include "src/compiler/common-operator.h"
9 #include "src/compiler/graph-builder.h" 9 #include "src/compiler/graph-builder.h"
10 #include "src/compiler/machine-node-factory.h" 10 #include "src/compiler/machine-node-factory.h"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 }; 42 };
43 43
44 Isolate* isolate() const { return zone()->isolate(); } 44 Isolate* isolate() const { return zone()->isolate(); }
45 Zone* zone() const { return StructuredGraphBuilder::zone(); } 45 Zone* zone() const { return StructuredGraphBuilder::zone(); }
46 CommonOperatorBuilder* common() const { 46 CommonOperatorBuilder* common() const {
47 return StructuredGraphBuilder::common(); 47 return StructuredGraphBuilder::common();
48 } 48 }
49 MachineOperatorBuilder* machine() const { return machine_; } 49 MachineOperatorBuilder* machine() const { return machine_; }
50 SimplifiedOperatorBuilder* simplified() const { return simplified_; } 50 SimplifiedOperatorBuilder* simplified() const { return simplified_; }
51 Environment* environment() { 51 Environment* environment() {
52 return reinterpret_cast<Environment*>(environment_internal()); 52 return reinterpret_cast<Environment*>(
53 StructuredGraphBuilder::environment());
53 } 54 }
54 55
55 // Initialize graph and builder. 56 // Initialize graph and builder.
56 void Begin(int num_parameters); 57 void Begin(int num_parameters);
57 58
58 void Return(Node* value); 59 void Return(Node* value);
59 60
60 // Close the graph. 61 // Close the graph.
61 void End(); 62 void End();
62 63
63 private: 64 private:
64 MachineOperatorBuilder* machine_; 65 MachineOperatorBuilder* machine_;
65 SimplifiedOperatorBuilder* simplified_; 66 SimplifiedOperatorBuilder* simplified_;
66 }; 67 };
67 68
68 } // namespace compiler 69 } // namespace compiler
69 } // namespace internal 70 } // namespace internal
70 } // namespace v8 71 } // namespace v8
71 72
72 #endif // V8_CCTEST_COMPILER_SIMPLIFIED_GRAPH_BUILDER_H_ 73 #endif // V8_CCTEST_COMPILER_SIMPLIFIED_GRAPH_BUILDER_H_
OLDNEW
« no previous file with comments | « src/compiler/pipeline.cc ('k') | test/mjsunit/mjsunit.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698