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

Side by Side Diff: src/compiler/common-operator.h

Issue 1244583003: [turbofan]: Add a context relaxer reducer (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Latest Created 5 years, 5 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
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_COMMON_OPERATOR_H_ 5 #ifndef V8_COMPILER_COMMON_OPERATOR_H_
6 #define V8_COMPILER_COMMON_OPERATOR_H_ 6 #define V8_COMPILER_COMMON_OPERATOR_H_
7 7
8 #include "src/compiler/frame-states.h" 8 #include "src/compiler/frame-states.h"
9 #include "src/compiler/machine-type.h" 9 #include "src/compiler/machine-type.h"
10 #include "src/unique.h" 10 #include "src/unique.h"
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 const Operator* TailCall(const CallDescriptor* descriptor); 156 const Operator* TailCall(const CallDescriptor* descriptor);
157 const Operator* Projection(size_t index); 157 const Operator* Projection(size_t index);
158 158
159 // Constructs a new merge or phi operator with the same opcode as {op}, but 159 // Constructs a new merge or phi operator with the same opcode as {op}, but
160 // with {size} inputs. 160 // with {size} inputs.
161 const Operator* ResizeMergeOrPhi(const Operator* op, int size); 161 const Operator* ResizeMergeOrPhi(const Operator* op, int size);
162 162
163 // Constructs function info for frame state construction. 163 // Constructs function info for frame state construction.
164 const FrameStateFunctionInfo* CreateFrameStateFunctionInfo( 164 const FrameStateFunctionInfo* CreateFrameStateFunctionInfo(
165 FrameStateType type, int parameter_count, int local_count, 165 FrameStateType type, int parameter_count, int local_count,
166 Handle<SharedFunctionInfo> shared_info); 166 Handle<SharedFunctionInfo> shared_info,
167 ContextCallingMode context_calling_mode);
167 168
168 private: 169 private:
169 Zone* zone() const { return zone_; } 170 Zone* zone() const { return zone_; }
170 171
171 const CommonOperatorGlobalCache& cache_; 172 const CommonOperatorGlobalCache& cache_;
172 Zone* const zone_; 173 Zone* const zone_;
173 174
174 DISALLOW_COPY_AND_ASSIGN(CommonOperatorBuilder); 175 DISALLOW_COPY_AND_ASSIGN(CommonOperatorBuilder);
175 }; 176 };
176 177
177 } // namespace compiler 178 } // namespace compiler
178 } // namespace internal 179 } // namespace internal
179 } // namespace v8 180 } // namespace v8
180 181
181 #endif // V8_COMPILER_COMMON_OPERATOR_H_ 182 #endif // V8_COMPILER_COMMON_OPERATOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698