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/compiler/common-node-cache.h" | 8 #include "src/compiler/common-node-cache.h" |
9 #include "src/compiler/common-operator.h" | 9 #include "src/compiler/common-operator.h" |
10 #include "src/compiler/graph.h" | 10 #include "src/compiler/graph.h" |
(...skipping 14 matching lines...) Loading... |
25 public: | 25 public: |
26 JSGraph(Graph* graph, CommonOperatorBuilder* common, | 26 JSGraph(Graph* graph, CommonOperatorBuilder* common, |
27 JSOperatorBuilder* javascript, MachineOperatorBuilder* machine) | 27 JSOperatorBuilder* javascript, MachineOperatorBuilder* machine) |
28 : graph_(graph), | 28 : graph_(graph), |
29 common_(common), | 29 common_(common), |
30 javascript_(javascript), | 30 javascript_(javascript), |
31 machine_(machine), | 31 machine_(machine), |
32 cache_(zone()) {} | 32 cache_(zone()) {} |
33 | 33 |
34 // Canonicalized global constants. | 34 // Canonicalized global constants. |
35 Node* CEntryStubConstant(); | 35 Node* CEntryStubConstant(int result_size); |
36 Node* UndefinedConstant(); | 36 Node* UndefinedConstant(); |
37 Node* TheHoleConstant(); | 37 Node* TheHoleConstant(); |
38 Node* TrueConstant(); | 38 Node* TrueConstant(); |
39 Node* FalseConstant(); | 39 Node* FalseConstant(); |
40 Node* NullConstant(); | 40 Node* NullConstant(); |
41 Node* ZeroConstant(); | 41 Node* ZeroConstant(); |
42 Node* OneConstant(); | 42 Node* OneConstant(); |
43 Node* NaNConstant(); | 43 Node* NaNConstant(); |
44 | 44 |
45 // Creates a HeapConstant node, possibly canonicalized, without inspecting the | 45 // Creates a HeapConstant node, possibly canonicalized, without inspecting the |
(...skipping 89 matching lines...) Loading... |
135 Factory* factory() { return isolate()->factory(); } | 135 Factory* factory() { return isolate()->factory(); } |
136 | 136 |
137 DISALLOW_COPY_AND_ASSIGN(JSGraph); | 137 DISALLOW_COPY_AND_ASSIGN(JSGraph); |
138 }; | 138 }; |
139 | 139 |
140 } // namespace compiler | 140 } // namespace compiler |
141 } // namespace internal | 141 } // namespace internal |
142 } // namespace v8 | 142 } // namespace v8 |
143 | 143 |
144 #endif | 144 #endif |
OLD | NEW |