Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(184)

Side by Side Diff: src/compiler/js-graph.h

Issue 1155313008: [turbofan] First steps towards optimizing for-in loops. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/compiler/js-generic-lowering.cc ('k') | src/compiler/js-graph.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/compiler/js-generic-lowering.cc ('k') | src/compiler/js-graph.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698