| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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_CRANKSHAFT_HYDROGEN_INSTRUCTIONS_H_ | 5 #ifndef V8_CRANKSHAFT_HYDROGEN_INSTRUCTIONS_H_ |
| 6 #define V8_CRANKSHAFT_HYDROGEN_INSTRUCTIONS_H_ | 6 #define V8_CRANKSHAFT_HYDROGEN_INSTRUCTIONS_H_ |
| 7 | 7 |
| 8 #include <cstring> | 8 #include <cstring> |
| 9 #include <iosfwd> | 9 #include <iosfwd> |
| 10 | 10 |
| (...skipping 4917 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4928 | 4928 |
| 4929 void MakeDoubleAligned() { | 4929 void MakeDoubleAligned() { |
| 4930 flags_ = static_cast<HAllocate::Flags>(flags_ | ALLOCATE_DOUBLE_ALIGNED); | 4930 flags_ = static_cast<HAllocate::Flags>(flags_ | ALLOCATE_DOUBLE_ALIGNED); |
| 4931 } | 4931 } |
| 4932 | 4932 |
| 4933 void MakeAllocationFoldingDominator() { | 4933 void MakeAllocationFoldingDominator() { |
| 4934 flags_ = | 4934 flags_ = |
| 4935 static_cast<HAllocate::Flags>(flags_ | ALLOCATION_FOLDING_DOMINATOR); | 4935 static_cast<HAllocate::Flags>(flags_ | ALLOCATION_FOLDING_DOMINATOR); |
| 4936 } | 4936 } |
| 4937 | 4937 |
| 4938 bool IsAllocationFoldingDominator() { | 4938 bool IsAllocationFoldingDominator() const { |
| 4939 return (flags_ & ALLOCATION_FOLDING_DOMINATOR) != 0; | 4939 return (flags_ & ALLOCATION_FOLDING_DOMINATOR) != 0; |
| 4940 } | 4940 } |
| 4941 | 4941 |
| 4942 void MakeFoldedAllocation(HAllocate* dominator) { | 4942 void MakeFoldedAllocation(HAllocate* dominator) { |
| 4943 flags_ = static_cast<HAllocate::Flags>(flags_ | ALLOCATION_FOLDED); | 4943 flags_ = static_cast<HAllocate::Flags>(flags_ | ALLOCATION_FOLDED); |
| 4944 ClearFlag(kTrackSideEffectDominators); | 4944 ClearFlag(kTrackSideEffectDominators); |
| 4945 ClearChangesFlag(kNewSpacePromotion); | 4945 ClearChangesFlag(kNewSpacePromotion); |
| 4946 SetOperandAt(2, dominator); | 4946 SetOperandAt(2, dominator); |
| 4947 } | 4947 } |
| 4948 | 4948 |
| 4949 bool IsAllocationFolded() { return (flags_ & ALLOCATION_FOLDED) != 0; } | 4949 bool IsAllocationFolded() const { return (flags_ & ALLOCATION_FOLDED) != 0; } |
| 4950 | 4950 |
| 4951 bool HandleSideEffectDominator(GVNFlag side_effect, | 4951 bool HandleSideEffectDominator(GVNFlag side_effect, |
| 4952 HValue* dominator) override; | 4952 HValue* dominator) override; |
| 4953 | 4953 |
| 4954 std::ostream& PrintDataTo(std::ostream& os) const override; // NOLINT | 4954 std::ostream& PrintDataTo(std::ostream& os) const override; // NOLINT |
| 4955 | 4955 |
| 4956 DECLARE_CONCRETE_INSTRUCTION(Allocate) | 4956 DECLARE_CONCRETE_INSTRUCTION(Allocate) |
| 4957 | 4957 |
| 4958 private: | 4958 private: |
| 4959 enum Flags { | 4959 enum Flags { |
| (...skipping 2166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7126 bool IsDeletable() const override { return true; } | 7126 bool IsDeletable() const override { return true; } |
| 7127 }; | 7127 }; |
| 7128 | 7128 |
| 7129 #undef DECLARE_INSTRUCTION | 7129 #undef DECLARE_INSTRUCTION |
| 7130 #undef DECLARE_CONCRETE_INSTRUCTION | 7130 #undef DECLARE_CONCRETE_INSTRUCTION |
| 7131 | 7131 |
| 7132 } // namespace internal | 7132 } // namespace internal |
| 7133 } // namespace v8 | 7133 } // namespace v8 |
| 7134 | 7134 |
| 7135 #endif // V8_CRANKSHAFT_HYDROGEN_INSTRUCTIONS_H_ | 7135 #endif // V8_CRANKSHAFT_HYDROGEN_INSTRUCTIONS_H_ |
| OLD | NEW |