| 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 // Creates a Int32Constant node, usually canonicalized. | 61 // Creates a Int32Constant node, usually canonicalized. |
| 62 Node* Int32Constant(int32_t value); | 62 Node* Int32Constant(int32_t value); |
| 63 | 63 |
| 64 // Creates a Float64Constant node, usually canonicalized. | 64 // Creates a Float64Constant node, usually canonicalized. |
| 65 Node* Float64Constant(double value); | 65 Node* Float64Constant(double value); |
| 66 | 66 |
| 67 // Creates an ExternalConstant node, usually canonicalized. | 67 // Creates an ExternalConstant node, usually canonicalized. |
| 68 Node* ExternalConstant(ExternalReference ref); | 68 Node* ExternalConstant(ExternalReference ref); |
| 69 | 69 |
| 70 Node* SmiConstant(int32_t immediate) { | 70 Node* SmiConstant(int32_t immediate) { |
| 71 ASSERT(Smi::IsValid(immediate)); | 71 DCHECK(Smi::IsValid(immediate)); |
| 72 return Constant(immediate); | 72 return Constant(immediate); |
| 73 } | 73 } |
| 74 | 74 |
| 75 JSOperatorBuilder* javascript() { return &javascript_; } | 75 JSOperatorBuilder* javascript() { return &javascript_; } |
| 76 CommonOperatorBuilder* common() { return common_; } | 76 CommonOperatorBuilder* common() { return common_; } |
| 77 Graph* graph() { return graph_; } | 77 Graph* graph() { return graph_; } |
| 78 Zone* zone() { return graph()->zone(); } | 78 Zone* zone() { return graph()->zone(); } |
| 79 | 79 |
| 80 private: | 80 private: |
| 81 Graph* graph_; | 81 Graph* graph_; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 98 Node* NumberConstant(double value); | 98 Node* NumberConstant(double value); |
| 99 Node* NewNode(Operator* op); | 99 Node* NewNode(Operator* op); |
| 100 | 100 |
| 101 Factory* factory() { return zone()->isolate()->factory(); } | 101 Factory* factory() { return zone()->isolate()->factory(); } |
| 102 }; | 102 }; |
| 103 } // namespace compiler | 103 } // namespace compiler |
| 104 } // namespace internal | 104 } // namespace internal |
| 105 } // namespace v8 | 105 } // namespace v8 |
| 106 | 106 |
| 107 #endif | 107 #endif |
| OLD | NEW |