| 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/unique.h" | 10 #include "src/unique.h" |
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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_ |
| OLD | NEW |