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_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/machine-type.h" | 9 #include "src/machine-type.h" |
10 #include "src/zone-containers.h" | 10 #include "src/zone-containers.h" |
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
171 const Operator* TailCall(const CallDescriptor* descriptor); | 171 const Operator* TailCall(const CallDescriptor* descriptor); |
172 const Operator* Projection(size_t index); | 172 const Operator* Projection(size_t index); |
173 | 173 |
174 // Constructs a new merge or phi operator with the same opcode as {op}, but | 174 // Constructs a new merge or phi operator with the same opcode as {op}, but |
175 // with {size} inputs. | 175 // with {size} inputs. |
176 const Operator* ResizeMergeOrPhi(const Operator* op, int size); | 176 const Operator* ResizeMergeOrPhi(const Operator* op, int size); |
177 | 177 |
178 // Constructs function info for frame state construction. | 178 // Constructs function info for frame state construction. |
179 const FrameStateFunctionInfo* CreateFrameStateFunctionInfo( | 179 const FrameStateFunctionInfo* CreateFrameStateFunctionInfo( |
180 FrameStateType type, int parameter_count, int local_count, | 180 FrameStateType type, int parameter_count, int local_count, |
181 Handle<SharedFunctionInfo> shared_info, | 181 Handle<SharedFunctionInfo> shared_info); |
182 ContextCallingMode context_calling_mode); | |
183 | 182 |
184 private: | 183 private: |
185 Zone* zone() const { return zone_; } | 184 Zone* zone() const { return zone_; } |
186 | 185 |
187 const CommonOperatorGlobalCache& cache_; | 186 const CommonOperatorGlobalCache& cache_; |
188 Zone* const zone_; | 187 Zone* const zone_; |
189 | 188 |
190 DISALLOW_COPY_AND_ASSIGN(CommonOperatorBuilder); | 189 DISALLOW_COPY_AND_ASSIGN(CommonOperatorBuilder); |
191 }; | 190 }; |
192 | 191 |
193 } // namespace compiler | 192 } // namespace compiler |
194 } // namespace internal | 193 } // namespace internal |
195 } // namespace v8 | 194 } // namespace v8 |
196 | 195 |
197 #endif // V8_COMPILER_COMMON_OPERATOR_H_ | 196 #endif // V8_COMPILER_COMMON_OPERATOR_H_ |
OLD | NEW |