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 24 matching lines...) Expand all Loading... |
35 Node* TheHoleConstant(); | 35 Node* TheHoleConstant(); |
36 Node* TrueConstant(); | 36 Node* TrueConstant(); |
37 Node* FalseConstant(); | 37 Node* FalseConstant(); |
38 Node* NullConstant(); | 38 Node* NullConstant(); |
39 Node* ZeroConstant(); | 39 Node* ZeroConstant(); |
40 Node* OneConstant(); | 40 Node* OneConstant(); |
41 Node* NaNConstant(); | 41 Node* NaNConstant(); |
42 | 42 |
43 // Creates a HeapConstant node, possibly canonicalized, without inspecting the | 43 // Creates a HeapConstant node, possibly canonicalized, without inspecting the |
44 // object. | 44 // object. |
45 Node* HeapConstant(PrintableUnique<Object> value); | 45 Node* HeapConstant(Unique<Object> value); |
46 | 46 |
47 // Creates a HeapConstant node, possibly canonicalized, and may access the | 47 // Creates a HeapConstant node, possibly canonicalized, and may access the |
48 // heap to inspect the object. | 48 // heap to inspect the object. |
49 Node* HeapConstant(Handle<Object> value); | 49 Node* HeapConstant(Handle<Object> value); |
50 | 50 |
51 // Creates a Constant node of the appropriate type for the given object. | 51 // Creates a Constant node of the appropriate type for the given object. |
52 // Accesses the heap to inspect the object and determine whether one of the | 52 // Accesses the heap to inspect the object and determine whether one of the |
53 // canonicalized globals or a number constant should be returned. | 53 // canonicalized globals or a number constant should be returned. |
54 Node* Constant(Handle<Object> value); | 54 Node* Constant(Handle<Object> value); |
55 | 55 |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 Node* NumberConstant(double value); | 101 Node* NumberConstant(double value); |
102 Node* NewNode(Operator* op); | 102 Node* NewNode(Operator* op); |
103 | 103 |
104 Factory* factory() { return isolate()->factory(); } | 104 Factory* factory() { return isolate()->factory(); } |
105 }; | 105 }; |
106 } // namespace compiler | 106 } // namespace compiler |
107 } // namespace internal | 107 } // namespace internal |
108 } // namespace v8 | 108 } // namespace v8 |
109 | 109 |
110 #endif | 110 #endif |
OLD | NEW |