| 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/compiler/machine-type.h" | 9 #include "src/compiler/machine-type.h" |
| 10 #include "src/zone-containers.h" | 10 #include "src/zone-containers.h" |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 const Operator* BeginRegion(); | 148 const Operator* BeginRegion(); |
| 149 const Operator* FinishRegion(); | 149 const Operator* FinishRegion(); |
| 150 const Operator* StateValues(int arguments); | 150 const Operator* StateValues(int arguments); |
| 151 const Operator* TypedStateValues(const ZoneVector<MachineType>* types); | 151 const Operator* TypedStateValues(const ZoneVector<MachineType>* types); |
| 152 const Operator* FrameState(BailoutId bailout_id, | 152 const Operator* FrameState(BailoutId bailout_id, |
| 153 OutputFrameStateCombine state_combine, | 153 OutputFrameStateCombine state_combine, |
| 154 const FrameStateFunctionInfo* function_info); | 154 const FrameStateFunctionInfo* function_info); |
| 155 const Operator* Call(const CallDescriptor* descriptor); | 155 const Operator* Call(const CallDescriptor* descriptor); |
| 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 const Operator* LazyBailout(); |
| 158 | 159 |
| 159 // Constructs a new merge or phi operator with the same opcode as {op}, but | 160 // Constructs a new merge or phi operator with the same opcode as {op}, but |
| 160 // with {size} inputs. | 161 // with {size} inputs. |
| 161 const Operator* ResizeMergeOrPhi(const Operator* op, int size); | 162 const Operator* ResizeMergeOrPhi(const Operator* op, int size); |
| 162 | 163 |
| 163 // Constructs function info for frame state construction. | 164 // Constructs function info for frame state construction. |
| 164 const FrameStateFunctionInfo* CreateFrameStateFunctionInfo( | 165 const FrameStateFunctionInfo* CreateFrameStateFunctionInfo( |
| 165 FrameStateType type, int parameter_count, int local_count, | 166 FrameStateType type, int parameter_count, int local_count, |
| 166 Handle<SharedFunctionInfo> shared_info, | 167 Handle<SharedFunctionInfo> shared_info, |
| 167 ContextCallingMode context_calling_mode); | 168 ContextCallingMode context_calling_mode); |
| 168 | 169 |
| 169 private: | 170 private: |
| 170 Zone* zone() const { return zone_; } | 171 Zone* zone() const { return zone_; } |
| 171 | 172 |
| 172 const CommonOperatorGlobalCache& cache_; | 173 const CommonOperatorGlobalCache& cache_; |
| 173 Zone* const zone_; | 174 Zone* const zone_; |
| 174 | 175 |
| 175 DISALLOW_COPY_AND_ASSIGN(CommonOperatorBuilder); | 176 DISALLOW_COPY_AND_ASSIGN(CommonOperatorBuilder); |
| 176 }; | 177 }; |
| 177 | 178 |
| 178 } // namespace compiler | 179 } // namespace compiler |
| 179 } // namespace internal | 180 } // namespace internal |
| 180 } // namespace v8 | 181 } // namespace v8 |
| 181 | 182 |
| 182 #endif // V8_COMPILER_COMMON_OPERATOR_H_ | 183 #endif // V8_COMPILER_COMMON_OPERATOR_H_ |
| OLD | NEW |