| OLD | NEW |
| 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_COMPILER_JS_GRAPH_H_ | 5 #ifndef V8_COMPILER_JS_GRAPH_H_ |
| 6 #define V8_COMPILER_JS_GRAPH_H_ | 6 #define V8_COMPILER_JS_GRAPH_H_ |
| 7 | 7 |
| 8 #include "src/base/compiler-specific.h" |
| 8 #include "src/compiler/common-node-cache.h" | 9 #include "src/compiler/common-node-cache.h" |
| 9 #include "src/compiler/common-operator.h" | 10 #include "src/compiler/common-operator.h" |
| 10 #include "src/compiler/graph.h" | 11 #include "src/compiler/graph.h" |
| 11 #include "src/compiler/js-operator.h" | 12 #include "src/compiler/js-operator.h" |
| 12 #include "src/compiler/machine-operator.h" | 13 #include "src/compiler/machine-operator.h" |
| 13 #include "src/compiler/node-properties.h" | 14 #include "src/compiler/node-properties.h" |
| 15 #include "src/globals.h" |
| 14 #include "src/isolate.h" | 16 #include "src/isolate.h" |
| 15 | 17 |
| 16 namespace v8 { | 18 namespace v8 { |
| 17 namespace internal { | 19 namespace internal { |
| 18 namespace compiler { | 20 namespace compiler { |
| 19 | 21 |
| 20 class SimplifiedOperatorBuilder; | 22 class SimplifiedOperatorBuilder; |
| 21 class Typer; | 23 class Typer; |
| 22 | 24 |
| 23 // Implements a facade on a Graph, enhancing the graph with JS-specific | 25 // Implements a facade on a Graph, enhancing the graph with JS-specific |
| 24 // notions, including various builders for operators, canonicalized global | 26 // notions, including various builders for operators, canonicalized global |
| 25 // constants, and various helper methods. | 27 // constants, and various helper methods. |
| 26 class JSGraph : public ZoneObject { | 28 class V8_EXPORT_PRIVATE JSGraph : public NON_EXPORTED_BASE(ZoneObject) { |
| 27 public: | 29 public: |
| 28 JSGraph(Isolate* isolate, Graph* graph, CommonOperatorBuilder* common, | 30 JSGraph(Isolate* isolate, Graph* graph, CommonOperatorBuilder* common, |
| 29 JSOperatorBuilder* javascript, SimplifiedOperatorBuilder* simplified, | 31 JSOperatorBuilder* javascript, SimplifiedOperatorBuilder* simplified, |
| 30 MachineOperatorBuilder* machine) | 32 MachineOperatorBuilder* machine) |
| 31 : isolate_(isolate), | 33 : isolate_(isolate), |
| 32 graph_(graph), | 34 graph_(graph), |
| 33 common_(common), | 35 common_(common), |
| 34 javascript_(javascript), | 36 javascript_(javascript), |
| 35 simplified_(simplified), | 37 simplified_(simplified), |
| 36 machine_(machine), | 38 machine_(machine), |
| (...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 192 Node* NumberConstant(double value); | 194 Node* NumberConstant(double value); |
| 193 | 195 |
| 194 DISALLOW_COPY_AND_ASSIGN(JSGraph); | 196 DISALLOW_COPY_AND_ASSIGN(JSGraph); |
| 195 }; | 197 }; |
| 196 | 198 |
| 197 } // namespace compiler | 199 } // namespace compiler |
| 198 } // namespace internal | 200 } // namespace internal |
| 199 } // namespace v8 | 201 } // namespace v8 |
| 200 | 202 |
| 201 #endif | 203 #endif |
| OLD | NEW |