| 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/assembler.h" | 8 #include "src/assembler.h" |
| 9 #include "src/base/compiler-specific.h" | 9 #include "src/base/compiler-specific.h" |
| 10 #include "src/compiler/frame-states.h" | 10 #include "src/compiler/frame-states.h" |
| (...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 174 | 174 |
| 175 Type* TypeGuardTypeOf(Operator const*) WARN_UNUSED_RESULT; | 175 Type* TypeGuardTypeOf(Operator const*) WARN_UNUSED_RESULT; |
| 176 | 176 |
| 177 int OsrValueIndexOf(Operator const*); | 177 int OsrValueIndexOf(Operator const*); |
| 178 | 178 |
| 179 enum class OsrGuardType { kUninitialized, kSignedSmall, kAny }; | 179 enum class OsrGuardType { kUninitialized, kSignedSmall, kAny }; |
| 180 size_t hash_value(OsrGuardType type); | 180 size_t hash_value(OsrGuardType type); |
| 181 std::ostream& operator<<(std::ostream&, OsrGuardType); | 181 std::ostream& operator<<(std::ostream&, OsrGuardType); |
| 182 OsrGuardType OsrGuardTypeOf(Operator const*); | 182 OsrGuardType OsrGuardTypeOf(Operator const*); |
| 183 | 183 |
| 184 ZoneVector<MachineType> const* MachineTypesOf(Operator const*) |
| 185 WARN_UNUSED_RESULT; |
| 186 |
| 184 // Interface for building common operators that can be used at any level of IR, | 187 // Interface for building common operators that can be used at any level of IR, |
| 185 // including JavaScript, mid-level, and low-level. | 188 // including JavaScript, mid-level, and low-level. |
| 186 class V8_EXPORT_PRIVATE CommonOperatorBuilder final | 189 class V8_EXPORT_PRIVATE CommonOperatorBuilder final |
| 187 : public NON_EXPORTED_BASE(ZoneObject) { | 190 : public NON_EXPORTED_BASE(ZoneObject) { |
| 188 public: | 191 public: |
| 189 explicit CommonOperatorBuilder(Zone* zone); | 192 explicit CommonOperatorBuilder(Zone* zone); |
| 190 | 193 |
| 191 const Operator* Dead(); | 194 const Operator* Dead(); |
| 192 const Operator* End(size_t control_input_count); | 195 const Operator* End(size_t control_input_count); |
| 193 const Operator* Branch(BranchHint = BranchHint::kNone); | 196 const Operator* Branch(BranchHint = BranchHint::kNone); |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 233 int value_input_count); | 236 int value_input_count); |
| 234 const Operator* EffectPhi(int effect_input_count); | 237 const Operator* EffectPhi(int effect_input_count); |
| 235 const Operator* InductionVariablePhi(int value_input_count); | 238 const Operator* InductionVariablePhi(int value_input_count); |
| 236 const Operator* LoopExit(); | 239 const Operator* LoopExit(); |
| 237 const Operator* LoopExitValue(); | 240 const Operator* LoopExitValue(); |
| 238 const Operator* LoopExitEffect(); | 241 const Operator* LoopExitEffect(); |
| 239 const Operator* Checkpoint(); | 242 const Operator* Checkpoint(); |
| 240 const Operator* BeginRegion(RegionObservability); | 243 const Operator* BeginRegion(RegionObservability); |
| 241 const Operator* FinishRegion(); | 244 const Operator* FinishRegion(); |
| 242 const Operator* StateValues(int arguments); | 245 const Operator* StateValues(int arguments); |
| 243 const Operator* ObjectState(int pointer_slots, int id); | |
| 244 const Operator* TypedStateValues(const ZoneVector<MachineType>* types); | 246 const Operator* TypedStateValues(const ZoneVector<MachineType>* types); |
| 247 const Operator* ObjectState(int pointer_slots); |
| 248 const Operator* TypedObjectState(const ZoneVector<MachineType>* types); |
| 245 const Operator* FrameState(BailoutId bailout_id, | 249 const Operator* FrameState(BailoutId bailout_id, |
| 246 OutputFrameStateCombine state_combine, | 250 OutputFrameStateCombine state_combine, |
| 247 const FrameStateFunctionInfo* function_info); | 251 const FrameStateFunctionInfo* function_info); |
| 248 const Operator* Call(const CallDescriptor* descriptor); | 252 const Operator* Call(const CallDescriptor* descriptor); |
| 249 const Operator* TailCall(const CallDescriptor* descriptor); | 253 const Operator* TailCall(const CallDescriptor* descriptor); |
| 250 const Operator* Projection(size_t index); | 254 const Operator* Projection(size_t index); |
| 251 const Operator* Retain(); | 255 const Operator* Retain(); |
| 252 const Operator* TypeGuard(Type* type); | 256 const Operator* TypeGuard(Type* type); |
| 253 | 257 |
| 254 // Constructs a new merge or phi operator with the same opcode as {op}, but | 258 // Constructs a new merge or phi operator with the same opcode as {op}, but |
| (...skipping 12 matching lines...) Expand all Loading... |
| 267 Zone* const zone_; | 271 Zone* const zone_; |
| 268 | 272 |
| 269 DISALLOW_COPY_AND_ASSIGN(CommonOperatorBuilder); | 273 DISALLOW_COPY_AND_ASSIGN(CommonOperatorBuilder); |
| 270 }; | 274 }; |
| 271 | 275 |
| 272 } // namespace compiler | 276 } // namespace compiler |
| 273 } // namespace internal | 277 } // namespace internal |
| 274 } // namespace v8 | 278 } // namespace v8 |
| 275 | 279 |
| 276 #endif // V8_COMPILER_COMMON_OPERATOR_H_ | 280 #endif // V8_COMPILER_COMMON_OPERATOR_H_ |
| OLD | NEW |