| 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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 V(CheckSmi) \ | 70 V(CheckSmi) \ |
| 71 V(CheckValue) \ | 71 V(CheckValue) \ |
| 72 V(ClampToUint8) \ | 72 V(ClampToUint8) \ |
| 73 V(ClassOfTestAndBranch) \ | 73 V(ClassOfTestAndBranch) \ |
| 74 V(CompareNumericAndBranch) \ | 74 V(CompareNumericAndBranch) \ |
| 75 V(CompareHoleAndBranch) \ | 75 V(CompareHoleAndBranch) \ |
| 76 V(CompareGeneric) \ | 76 V(CompareGeneric) \ |
| 77 V(CompareObjectEqAndBranch) \ | 77 V(CompareObjectEqAndBranch) \ |
| 78 V(CompareMap) \ | 78 V(CompareMap) \ |
| 79 V(Constant) \ | 79 V(Constant) \ |
| 80 V(ConstructDouble) \ | |
| 81 V(Context) \ | 80 V(Context) \ |
| 82 V(DebugBreak) \ | 81 V(DebugBreak) \ |
| 83 V(DeclareGlobals) \ | 82 V(DeclareGlobals) \ |
| 84 V(Deoptimize) \ | 83 V(Deoptimize) \ |
| 85 V(Div) \ | 84 V(Div) \ |
| 86 V(DoubleBits) \ | 85 V(DoubleBits) \ |
| 87 V(DummyUse) \ | 86 V(DummyUse) \ |
| 88 V(EnterInlined) \ | 87 V(EnterInlined) \ |
| 89 V(EnvironmentMarker) \ | 88 V(EnvironmentMarker) \ |
| 90 V(ForceRepresentation) \ | 89 V(ForceRepresentation) \ |
| (...skipping 1593 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1684 set_representation(Representation::Integer32()); | 1683 set_representation(Representation::Integer32()); |
| 1685 SetFlag(kUseGVN); | 1684 SetFlag(kUseGVN); |
| 1686 } | 1685 } |
| 1687 | 1686 |
| 1688 bool IsDeletable() const override { return true; } | 1687 bool IsDeletable() const override { return true; } |
| 1689 | 1688 |
| 1690 Bits bits_; | 1689 Bits bits_; |
| 1691 }; | 1690 }; |
| 1692 | 1691 |
| 1693 | 1692 |
| 1694 class HConstructDouble final : public HTemplateInstruction<2> { | |
| 1695 public: | |
| 1696 DECLARE_INSTRUCTION_FACTORY_P2(HConstructDouble, HValue*, HValue*); | |
| 1697 | |
| 1698 Representation RequiredInputRepresentation(int index) override { | |
| 1699 return Representation::Integer32(); | |
| 1700 } | |
| 1701 | |
| 1702 DECLARE_CONCRETE_INSTRUCTION(ConstructDouble) | |
| 1703 | |
| 1704 HValue* hi() { return OperandAt(0); } | |
| 1705 HValue* lo() { return OperandAt(1); } | |
| 1706 | |
| 1707 protected: | |
| 1708 bool DataEquals(HValue* other) override { return true; } | |
| 1709 | |
| 1710 private: | |
| 1711 explicit HConstructDouble(HValue* hi, HValue* lo) { | |
| 1712 set_representation(Representation::Double()); | |
| 1713 SetFlag(kUseGVN); | |
| 1714 SetOperandAt(0, hi); | |
| 1715 SetOperandAt(1, lo); | |
| 1716 } | |
| 1717 | |
| 1718 bool IsDeletable() const override { return true; } | |
| 1719 }; | |
| 1720 | |
| 1721 | |
| 1722 enum RemovableSimulate { | 1693 enum RemovableSimulate { |
| 1723 REMOVABLE_SIMULATE, | 1694 REMOVABLE_SIMULATE, |
| 1724 FIXED_SIMULATE | 1695 FIXED_SIMULATE |
| 1725 }; | 1696 }; |
| 1726 | 1697 |
| 1727 | 1698 |
| 1728 class HSimulate final : public HInstruction { | 1699 class HSimulate final : public HInstruction { |
| 1729 public: | 1700 public: |
| 1730 HSimulate(BailoutId ast_id, int pop_count, Zone* zone, | 1701 HSimulate(BailoutId ast_id, int pop_count, Zone* zone, |
| 1731 RemovableSimulate removable) | 1702 RemovableSimulate removable) |
| (...skipping 5453 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7185 bool IsDeletable() const override { return true; } | 7156 bool IsDeletable() const override { return true; } |
| 7186 }; | 7157 }; |
| 7187 | 7158 |
| 7188 #undef DECLARE_INSTRUCTION | 7159 #undef DECLARE_INSTRUCTION |
| 7189 #undef DECLARE_CONCRETE_INSTRUCTION | 7160 #undef DECLARE_CONCRETE_INSTRUCTION |
| 7190 | 7161 |
| 7191 } // namespace internal | 7162 } // namespace internal |
| 7192 } // namespace v8 | 7163 } // namespace v8 |
| 7193 | 7164 |
| 7194 #endif // V8_CRANKSHAFT_HYDROGEN_INSTRUCTIONS_H_ | 7165 #endif // V8_CRANKSHAFT_HYDROGEN_INSTRUCTIONS_H_ |
| OLD | NEW |