| 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/compiler/frame-states.h" |    9 #include "src/compiler/frame-states.h" | 
|   10 #include "src/machine-type.h" |   10 #include "src/machine-type.h" | 
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  127  private: |  127  private: | 
|  128   intptr_t value_; |  128   intptr_t value_; | 
|  129   RelocInfo::Mode rmode_; |  129   RelocInfo::Mode rmode_; | 
|  130   Type type_; |  130   Type type_; | 
|  131 }; |  131 }; | 
|  132  |  132  | 
|  133 bool operator==(RelocatablePtrConstantInfo const& lhs, |  133 bool operator==(RelocatablePtrConstantInfo const& lhs, | 
|  134                 RelocatablePtrConstantInfo const& rhs); |  134                 RelocatablePtrConstantInfo const& rhs); | 
|  135 bool operator!=(RelocatablePtrConstantInfo const& lhs, |  135 bool operator!=(RelocatablePtrConstantInfo const& lhs, | 
|  136                 RelocatablePtrConstantInfo const& rhs); |  136                 RelocatablePtrConstantInfo const& rhs); | 
 |  137  | 
|  137 std::ostream& operator<<(std::ostream&, RelocatablePtrConstantInfo const&); |  138 std::ostream& operator<<(std::ostream&, RelocatablePtrConstantInfo const&); | 
 |  139  | 
|  138 size_t hash_value(RelocatablePtrConstantInfo const& p); |  140 size_t hash_value(RelocatablePtrConstantInfo const& p); | 
 |  141  | 
 |  142 // Used to mark a region (as identified by BeginRegion/FinishRegion) as either | 
 |  143 // JavaScript-observable or not (i.e. allocations are not JavaScript observable | 
 |  144 // themselves, but transitioning stores are). | 
 |  145 enum class RegionObservability : uint8_t { kObservable, kNotObservable }; | 
 |  146  | 
 |  147 size_t hash_value(RegionObservability); | 
 |  148  | 
 |  149 std::ostream& operator<<(std::ostream&, RegionObservability); | 
 |  150  | 
 |  151 RegionObservability RegionObservabilityOf(Operator const*) WARN_UNUSED_RESULT; | 
 |  152  | 
|  139 std::ostream& operator<<(std::ostream& os, |  153 std::ostream& operator<<(std::ostream& os, | 
|  140                          const ZoneVector<MachineType>* types); |  154                          const ZoneVector<MachineType>* types); | 
|  141  |  155  | 
|  142 // Interface for building common operators that can be used at any level of IR, |  156 // Interface for building common operators that can be used at any level of IR, | 
|  143 // including JavaScript, mid-level, and low-level. |  157 // including JavaScript, mid-level, and low-level. | 
|  144 class CommonOperatorBuilder final : public ZoneObject { |  158 class CommonOperatorBuilder final : public ZoneObject { | 
|  145  public: |  159  public: | 
|  146   explicit CommonOperatorBuilder(Zone* zone); |  160   explicit CommonOperatorBuilder(Zone* zone); | 
|  147  |  161  | 
|  148   const Operator* Dead(); |  162   const Operator* Dead(); | 
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  182   const Operator* RelocatableInt32Constant(int32_t value, |  196   const Operator* RelocatableInt32Constant(int32_t value, | 
|  183                                            RelocInfo::Mode rmode); |  197                                            RelocInfo::Mode rmode); | 
|  184   const Operator* RelocatableInt64Constant(int64_t value, |  198   const Operator* RelocatableInt64Constant(int64_t value, | 
|  185                                            RelocInfo::Mode rmode); |  199                                            RelocInfo::Mode rmode); | 
|  186  |  200  | 
|  187   const Operator* Select(MachineRepresentation, BranchHint = BranchHint::kNone); |  201   const Operator* Select(MachineRepresentation, BranchHint = BranchHint::kNone); | 
|  188   const Operator* Phi(MachineRepresentation representation, |  202   const Operator* Phi(MachineRepresentation representation, | 
|  189                       int value_input_count); |  203                       int value_input_count); | 
|  190   const Operator* EffectPhi(int effect_input_count); |  204   const Operator* EffectPhi(int effect_input_count); | 
|  191   const Operator* Checkpoint(); |  205   const Operator* Checkpoint(); | 
|  192   const Operator* BeginRegion(); |  206   const Operator* BeginRegion(RegionObservability); | 
|  193   const Operator* FinishRegion(); |  207   const Operator* FinishRegion(); | 
|  194   const Operator* StateValues(int arguments); |  208   const Operator* StateValues(int arguments); | 
|  195   const Operator* ObjectState(int pointer_slots, int id); |  209   const Operator* ObjectState(int pointer_slots, int id); | 
|  196   const Operator* TypedStateValues(const ZoneVector<MachineType>* types); |  210   const Operator* TypedStateValues(const ZoneVector<MachineType>* types); | 
|  197   const Operator* FrameState(BailoutId bailout_id, |  211   const Operator* FrameState(BailoutId bailout_id, | 
|  198                              OutputFrameStateCombine state_combine, |  212                              OutputFrameStateCombine state_combine, | 
|  199                              const FrameStateFunctionInfo* function_info); |  213                              const FrameStateFunctionInfo* function_info); | 
|  200   const Operator* Call(const CallDescriptor* descriptor); |  214   const Operator* Call(const CallDescriptor* descriptor); | 
|  201   const Operator* TailCall(const CallDescriptor* descriptor); |  215   const Operator* TailCall(const CallDescriptor* descriptor); | 
|  202   const Operator* Projection(size_t index); |  216   const Operator* Projection(size_t index); | 
| (...skipping 14 matching lines...) Expand all  Loading... | 
|  217   Zone* const zone_; |  231   Zone* const zone_; | 
|  218  |  232  | 
|  219   DISALLOW_COPY_AND_ASSIGN(CommonOperatorBuilder); |  233   DISALLOW_COPY_AND_ASSIGN(CommonOperatorBuilder); | 
|  220 }; |  234 }; | 
|  221  |  235  | 
|  222 }  // namespace compiler |  236 }  // namespace compiler | 
|  223 }  // namespace internal |  237 }  // namespace internal | 
|  224 }  // namespace v8 |  238 }  // namespace v8 | 
|  225  |  239  | 
|  226 #endif  // V8_COMPILER_COMMON_OPERATOR_H_ |  240 #endif  // V8_COMPILER_COMMON_OPERATOR_H_ | 
| OLD | NEW |