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 27 matching lines...) Expand all Loading... |
38 Node* CEntryStubConstant(int result_size); | 38 Node* CEntryStubConstant(int result_size); |
39 Node* UndefinedConstant(); | 39 Node* UndefinedConstant(); |
40 Node* TheHoleConstant(); | 40 Node* TheHoleConstant(); |
41 Node* TrueConstant(); | 41 Node* TrueConstant(); |
42 Node* FalseConstant(); | 42 Node* FalseConstant(); |
43 Node* NullConstant(); | 43 Node* NullConstant(); |
44 Node* ZeroConstant(); | 44 Node* ZeroConstant(); |
45 Node* OneConstant(); | 45 Node* OneConstant(); |
46 Node* NaNConstant(); | 46 Node* NaNConstant(); |
47 | 47 |
48 // Creates a HeapConstant node, possibly canonicalized, without inspecting the | |
49 // object. | |
50 Node* HeapConstant(Unique<HeapObject> value); | |
51 | |
52 // Creates a HeapConstant node, possibly canonicalized, and may access the | 48 // Creates a HeapConstant node, possibly canonicalized, and may access the |
53 // heap to inspect the object. | 49 // heap to inspect the object. |
54 Node* HeapConstant(Handle<HeapObject> value); | 50 Node* HeapConstant(Handle<HeapObject> value); |
55 | 51 |
56 // Creates a Constant node of the appropriate type for the given object. | 52 // Creates a Constant node of the appropriate type for the given object. |
57 // Accesses the heap to inspect the object and determine whether one of the | 53 // Accesses the heap to inspect the object and determine whether one of the |
58 // canonicalized globals or a number constant should be returned. | 54 // canonicalized globals or a number constant should be returned. |
59 Node* Constant(Handle<Object> value); | 55 Node* Constant(Handle<Object> value); |
60 | 56 |
61 // Creates a NumberConstant node, usually canonicalized. | 57 // Creates a NumberConstant node, usually canonicalized. |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 Node* NumberConstant(double value); | 154 Node* NumberConstant(double value); |
159 | 155 |
160 DISALLOW_COPY_AND_ASSIGN(JSGraph); | 156 DISALLOW_COPY_AND_ASSIGN(JSGraph); |
161 }; | 157 }; |
162 | 158 |
163 } // namespace compiler | 159 } // namespace compiler |
164 } // namespace internal | 160 } // namespace internal |
165 } // namespace v8 | 161 } // namespace v8 |
166 | 162 |
167 #endif | 163 #endif |
OLD | NEW |