| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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/machine-type.h" | 8 #include "src/compiler/machine-type.h" |
| 9 #include "src/unique.h" | 9 #include "src/unique.h" |
| 10 | 10 |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 | 49 |
| 50 bool operator==(SelectParameters const&, SelectParameters const&); | 50 bool operator==(SelectParameters const&, SelectParameters const&); |
| 51 bool operator!=(SelectParameters const&, SelectParameters const&); | 51 bool operator!=(SelectParameters const&, SelectParameters const&); |
| 52 | 52 |
| 53 size_t hash_value(SelectParameters const& p); | 53 size_t hash_value(SelectParameters const& p); |
| 54 | 54 |
| 55 std::ostream& operator<<(std::ostream&, SelectParameters const& p); | 55 std::ostream& operator<<(std::ostream&, SelectParameters const& p); |
| 56 | 56 |
| 57 SelectParameters const& SelectParametersOf(const Operator* const); | 57 SelectParameters const& SelectParametersOf(const Operator* const); |
| 58 | 58 |
| 59 const Operator* ResizeMergeOperator(const Operator* const); |
| 60 |
| 59 | 61 |
| 60 // Flag that describes how to combine the current environment with | 62 // Flag that describes how to combine the current environment with |
| 61 // the output of a node to obtain a framestate for lazy bailout. | 63 // the output of a node to obtain a framestate for lazy bailout. |
| 62 class OutputFrameStateCombine { | 64 class OutputFrameStateCombine { |
| 63 public: | 65 public: |
| 64 enum Kind { | 66 enum Kind { |
| 65 kPushOutput, // Push the output on the expression stack. | 67 kPushOutput, // Push the output on the expression stack. |
| 66 kPokeAt // Poke at the given environment location, | 68 kPokeAt // Poke at the given environment location, |
| 67 // counting from the top of the stack. | 69 // counting from the top of the stack. |
| 68 }; | 70 }; |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 191 const Operator* ValueEffect(int arguments); | 193 const Operator* ValueEffect(int arguments); |
| 192 const Operator* Finish(int arguments); | 194 const Operator* Finish(int arguments); |
| 193 const Operator* StateValues(int arguments); | 195 const Operator* StateValues(int arguments); |
| 194 const Operator* FrameState( | 196 const Operator* FrameState( |
| 195 FrameStateType type, BailoutId bailout_id, | 197 FrameStateType type, BailoutId bailout_id, |
| 196 OutputFrameStateCombine state_combine, | 198 OutputFrameStateCombine state_combine, |
| 197 MaybeHandle<JSFunction> jsfunction = MaybeHandle<JSFunction>()); | 199 MaybeHandle<JSFunction> jsfunction = MaybeHandle<JSFunction>()); |
| 198 const Operator* Call(const CallDescriptor* descriptor); | 200 const Operator* Call(const CallDescriptor* descriptor); |
| 199 const Operator* Projection(size_t index); | 201 const Operator* Projection(size_t index); |
| 200 | 202 |
| 203 const Operator* ResizeMergeOrPhi(const Operator* op, int size); |
| 204 |
| 201 private: | 205 private: |
| 202 Zone* zone() const { return zone_; } | 206 Zone* zone() const { return zone_; } |
| 203 | 207 |
| 204 const CommonOperatorGlobalCache& cache_; | 208 const CommonOperatorGlobalCache& cache_; |
| 205 Zone* const zone_; | 209 Zone* const zone_; |
| 206 | 210 |
| 207 DISALLOW_COPY_AND_ASSIGN(CommonOperatorBuilder); | 211 DISALLOW_COPY_AND_ASSIGN(CommonOperatorBuilder); |
| 208 }; | 212 }; |
| 209 | 213 |
| 210 } // namespace compiler | 214 } // namespace compiler |
| 211 } // namespace internal | 215 } // namespace internal |
| 212 } // namespace v8 | 216 } // namespace v8 |
| 213 | 217 |
| 214 #endif // V8_COMPILER_COMMON_OPERATOR_H_ | 218 #endif // V8_COMPILER_COMMON_OPERATOR_H_ |
| OLD | NEW |