| 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_X64_LITHIUM_X64_H_ | 5 #ifndef V8_CRANKSHAFT_X64_LITHIUM_X64_H_ |
| 6 #define V8_CRANKSHAFT_X64_LITHIUM_X64_H_ | 6 #define V8_CRANKSHAFT_X64_LITHIUM_X64_H_ |
| 7 | 7 |
| 8 #include "src/crankshaft/hydrogen.h" | 8 #include "src/crankshaft/hydrogen.h" |
| 9 #include "src/crankshaft/lithium.h" | 9 #include "src/crankshaft/lithium.h" |
| 10 #include "src/crankshaft/lithium-allocator.h" | 10 #include "src/crankshaft/lithium-allocator.h" |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 V(CheckInstanceType) \ | 40 V(CheckInstanceType) \ |
| 41 V(CheckMaps) \ | 41 V(CheckMaps) \ |
| 42 V(CheckMapValue) \ | 42 V(CheckMapValue) \ |
| 43 V(CheckNonSmi) \ | 43 V(CheckNonSmi) \ |
| 44 V(CheckSmi) \ | 44 V(CheckSmi) \ |
| 45 V(CheckValue) \ | 45 V(CheckValue) \ |
| 46 V(ClampDToUint8) \ | 46 V(ClampDToUint8) \ |
| 47 V(ClampIToUint8) \ | 47 V(ClampIToUint8) \ |
| 48 V(ClampTToUint8) \ | 48 V(ClampTToUint8) \ |
| 49 V(ClassOfTestAndBranch) \ | 49 V(ClassOfTestAndBranch) \ |
| 50 V(CompareMinusZeroAndBranch) \ | |
| 51 V(CompareNumericAndBranch) \ | 50 V(CompareNumericAndBranch) \ |
| 52 V(CmpObjectEqAndBranch) \ | 51 V(CmpObjectEqAndBranch) \ |
| 53 V(CmpHoleAndBranch) \ | 52 V(CmpHoleAndBranch) \ |
| 54 V(CmpMapAndBranch) \ | 53 V(CmpMapAndBranch) \ |
| 55 V(CmpT) \ | 54 V(CmpT) \ |
| 56 V(ConstantD) \ | 55 V(ConstantD) \ |
| 57 V(ConstantE) \ | 56 V(ConstantE) \ |
| 58 V(ConstantI) \ | 57 V(ConstantI) \ |
| 59 V(ConstantS) \ | 58 V(ConstantS) \ |
| 60 V(ConstantT) \ | 59 V(ConstantT) \ |
| (...skipping 899 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 960 inputs_[0] = object; | 959 inputs_[0] = object; |
| 961 } | 960 } |
| 962 | 961 |
| 963 LOperand* object() { return inputs_[0]; } | 962 LOperand* object() { return inputs_[0]; } |
| 964 | 963 |
| 965 DECLARE_CONCRETE_INSTRUCTION(CmpHoleAndBranch, "cmp-hole-and-branch") | 964 DECLARE_CONCRETE_INSTRUCTION(CmpHoleAndBranch, "cmp-hole-and-branch") |
| 966 DECLARE_HYDROGEN_ACCESSOR(CompareHoleAndBranch) | 965 DECLARE_HYDROGEN_ACCESSOR(CompareHoleAndBranch) |
| 967 }; | 966 }; |
| 968 | 967 |
| 969 | 968 |
| 970 class LCompareMinusZeroAndBranch final : public LControlInstruction<1, 0> { | |
| 971 public: | |
| 972 explicit LCompareMinusZeroAndBranch(LOperand* value) { | |
| 973 inputs_[0] = value; | |
| 974 } | |
| 975 | |
| 976 LOperand* value() { return inputs_[0]; } | |
| 977 | |
| 978 DECLARE_CONCRETE_INSTRUCTION(CompareMinusZeroAndBranch, | |
| 979 "cmp-minus-zero-and-branch") | |
| 980 DECLARE_HYDROGEN_ACCESSOR(CompareMinusZeroAndBranch) | |
| 981 }; | |
| 982 | |
| 983 | |
| 984 class LIsStringAndBranch final : public LControlInstruction<1, 1> { | 969 class LIsStringAndBranch final : public LControlInstruction<1, 1> { |
| 985 public: | 970 public: |
| 986 explicit LIsStringAndBranch(LOperand* value, LOperand* temp) { | 971 explicit LIsStringAndBranch(LOperand* value, LOperand* temp) { |
| 987 inputs_[0] = value; | 972 inputs_[0] = value; |
| 988 temps_[0] = temp; | 973 temps_[0] = temp; |
| 989 } | 974 } |
| 990 | 975 |
| 991 LOperand* value() { return inputs_[0]; } | 976 LOperand* value() { return inputs_[0]; } |
| 992 LOperand* temp() { return temps_[0]; } | 977 LOperand* temp() { return temps_[0]; } |
| 993 | 978 |
| (...skipping 1752 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2746 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2731 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 2747 }; | 2732 }; |
| 2748 | 2733 |
| 2749 #undef DECLARE_HYDROGEN_ACCESSOR | 2734 #undef DECLARE_HYDROGEN_ACCESSOR |
| 2750 #undef DECLARE_CONCRETE_INSTRUCTION | 2735 #undef DECLARE_CONCRETE_INSTRUCTION |
| 2751 | 2736 |
| 2752 } // namespace internal | 2737 } // namespace internal |
| 2753 } // namespace v8 | 2738 } // namespace v8 |
| 2754 | 2739 |
| 2755 #endif // V8_CRANKSHAFT_X64_LITHIUM_X64_H_ | 2740 #endif // V8_CRANKSHAFT_X64_LITHIUM_X64_H_ |
| OLD | NEW |