| 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 28 matching lines...) Expand all Loading... |
| 39 Node* TheHoleConstant(); | 39 Node* TheHoleConstant(); |
| 40 Node* TrueConstant(); | 40 Node* TrueConstant(); |
| 41 Node* FalseConstant(); | 41 Node* FalseConstant(); |
| 42 Node* NullConstant(); | 42 Node* NullConstant(); |
| 43 Node* ZeroConstant(); | 43 Node* ZeroConstant(); |
| 44 Node* OneConstant(); | 44 Node* OneConstant(); |
| 45 Node* NaNConstant(); | 45 Node* NaNConstant(); |
| 46 | 46 |
| 47 // Creates a HeapConstant node, possibly canonicalized, without inspecting the | 47 // Creates a HeapConstant node, possibly canonicalized, without inspecting the |
| 48 // object. | 48 // object. |
| 49 Node* HeapConstant(Unique<Object> value); | 49 Node* HeapConstant(Unique<HeapObject> value); |
| 50 | 50 |
| 51 // Creates a HeapConstant node, possibly canonicalized, and may access the | 51 // Creates a HeapConstant node, possibly canonicalized, and may access the |
| 52 // heap to inspect the object. | 52 // heap to inspect the object. |
| 53 Node* HeapConstant(Handle<Object> value); | 53 Node* HeapConstant(Handle<HeapObject> value); |
| 54 | 54 |
| 55 // Creates a Constant node of the appropriate type for the given object. | 55 // Creates a Constant node of the appropriate type for the given object. |
| 56 // Accesses the heap to inspect the object and determine whether one of the | 56 // Accesses the heap to inspect the object and determine whether one of the |
| 57 // canonicalized globals or a number constant should be returned. | 57 // canonicalized globals or a number constant should be returned. |
| 58 Node* Constant(Handle<Object> value); | 58 Node* Constant(Handle<Object> value); |
| 59 | 59 |
| 60 // Creates a NumberConstant node, usually canonicalized. | 60 // Creates a NumberConstant node, usually canonicalized. |
| 61 Node* Constant(double value); | 61 Node* Constant(double value); |
| 62 | 62 |
| 63 // Creates a NumberConstant node, usually canonicalized. | 63 // Creates a NumberConstant node, usually canonicalized. |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 SetOncePointer<Node> the_hole_constant_; | 102 SetOncePointer<Node> the_hole_constant_; |
| 103 SetOncePointer<Node> true_constant_; | 103 SetOncePointer<Node> true_constant_; |
| 104 SetOncePointer<Node> false_constant_; | 104 SetOncePointer<Node> false_constant_; |
| 105 SetOncePointer<Node> null_constant_; | 105 SetOncePointer<Node> null_constant_; |
| 106 SetOncePointer<Node> zero_constant_; | 106 SetOncePointer<Node> zero_constant_; |
| 107 SetOncePointer<Node> one_constant_; | 107 SetOncePointer<Node> one_constant_; |
| 108 SetOncePointer<Node> nan_constant_; | 108 SetOncePointer<Node> nan_constant_; |
| 109 | 109 |
| 110 CommonNodeCache cache_; | 110 CommonNodeCache cache_; |
| 111 | 111 |
| 112 Node* ImmovableHeapConstant(Handle<Object> value); | 112 Node* ImmovableHeapConstant(Handle<HeapObject> value); |
| 113 Node* NumberConstant(double value); | 113 Node* NumberConstant(double value); |
| 114 Node* NewNode(const Operator* op); | 114 Node* NewNode(const Operator* op); |
| 115 | 115 |
| 116 Factory* factory() { return isolate()->factory(); } | 116 Factory* factory() { return isolate()->factory(); } |
| 117 }; | 117 }; |
| 118 | 118 |
| 119 } // namespace compiler | 119 } // namespace compiler |
| 120 } // namespace internal | 120 } // namespace internal |
| 121 } // namespace v8 | 121 } // namespace v8 |
| 122 | 122 |
| 123 #endif | 123 #endif |
| OLD | NEW |