| 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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 } | 95 } |
| 96 | 96 |
| 97 // Creates a Float32Constant node, usually canonicalized. | 97 // Creates a Float32Constant node, usually canonicalized. |
| 98 Node* Float32Constant(float value); | 98 Node* Float32Constant(float value); |
| 99 | 99 |
| 100 // Creates a Float64Constant node, usually canonicalized. | 100 // Creates a Float64Constant node, usually canonicalized. |
| 101 Node* Float64Constant(double value); | 101 Node* Float64Constant(double value); |
| 102 | 102 |
| 103 // Creates an ExternalConstant node, usually canonicalized. | 103 // Creates an ExternalConstant node, usually canonicalized. |
| 104 Node* ExternalConstant(ExternalReference ref); | 104 Node* ExternalConstant(ExternalReference ref); |
| 105 Node* ExternalConstant(Runtime::FunctionId function_id); |
| 105 | 106 |
| 106 Node* SmiConstant(int32_t immediate) { | 107 Node* SmiConstant(int32_t immediate) { |
| 107 DCHECK(Smi::IsValid(immediate)); | 108 DCHECK(Smi::IsValid(immediate)); |
| 108 return Constant(immediate); | 109 return Constant(immediate); |
| 109 } | 110 } |
| 110 | 111 |
| 111 // Creates a dummy Constant node, used to satisfy calling conventions of | 112 // Creates a dummy Constant node, used to satisfy calling conventions of |
| 112 // stubs and runtime functions that do not require a context. | 113 // stubs and runtime functions that do not require a context. |
| 113 Node* NoContextConstant() { return ZeroConstant(); } | 114 Node* NoContextConstant() { return ZeroConstant(); } |
| 114 | 115 |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 157 Node* NumberConstant(double value); | 158 Node* NumberConstant(double value); |
| 158 | 159 |
| 159 DISALLOW_COPY_AND_ASSIGN(JSGraph); | 160 DISALLOW_COPY_AND_ASSIGN(JSGraph); |
| 160 }; | 161 }; |
| 161 | 162 |
| 162 } // namespace compiler | 163 } // namespace compiler |
| 163 } // namespace internal | 164 } // namespace internal |
| 164 } // namespace v8 | 165 } // namespace v8 |
| 165 | 166 |
| 166 #endif | 167 #endif |
| OLD | NEW |