OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 V(CmpMapAndBranch) \ | 77 V(CmpMapAndBranch) \ |
78 V(CmpObjectEqAndBranch) \ | 78 V(CmpObjectEqAndBranch) \ |
79 V(CmpT) \ | 79 V(CmpT) \ |
80 V(CompareMinusZeroAndBranch) \ | 80 V(CompareMinusZeroAndBranch) \ |
81 V(CompareNumericAndBranch) \ | 81 V(CompareNumericAndBranch) \ |
82 V(ConstantD) \ | 82 V(ConstantD) \ |
83 V(ConstantE) \ | 83 V(ConstantE) \ |
84 V(ConstantI) \ | 84 V(ConstantI) \ |
85 V(ConstantS) \ | 85 V(ConstantS) \ |
86 V(ConstantT) \ | 86 V(ConstantT) \ |
| 87 V(ConstructDouble) \ |
87 V(Context) \ | 88 V(Context) \ |
88 V(DateField) \ | 89 V(DateField) \ |
89 V(DebugBreak) \ | 90 V(DebugBreak) \ |
90 V(DeclareGlobals) \ | 91 V(DeclareGlobals) \ |
91 V(Deoptimize) \ | 92 V(Deoptimize) \ |
92 V(DivByConstI) \ | 93 V(DivByConstI) \ |
93 V(DivByPowerOf2I) \ | 94 V(DivByPowerOf2I) \ |
94 V(DivI) \ | 95 V(DivI) \ |
| 96 V(DoubleBits) \ |
95 V(DoubleToIntOrSmi) \ | 97 V(DoubleToIntOrSmi) \ |
96 V(Drop) \ | 98 V(Drop) \ |
97 V(Dummy) \ | 99 V(Dummy) \ |
98 V(DummyUse) \ | 100 V(DummyUse) \ |
99 V(FlooringDivByConstI) \ | 101 V(FlooringDivByConstI) \ |
100 V(FlooringDivByPowerOf2I) \ | 102 V(FlooringDivByPowerOf2I) \ |
101 V(FlooringDivI) \ | 103 V(FlooringDivI) \ |
102 V(ForInCacheArray) \ | 104 V(ForInCacheArray) \ |
103 V(ForInPrepareMap) \ | 105 V(ForInPrepareMap) \ |
104 V(FunctionLiteral) \ | 106 V(FunctionLiteral) \ |
(...skipping 905 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1010 } | 1012 } |
1011 | 1013 |
1012 LOperand* unclamped() { return inputs_[0]; } | 1014 LOperand* unclamped() { return inputs_[0]; } |
1013 LOperand* temp1() { return temps_[0]; } | 1015 LOperand* temp1() { return temps_[0]; } |
1014 LOperand* temp2() { return temps_[1]; } | 1016 LOperand* temp2() { return temps_[1]; } |
1015 | 1017 |
1016 DECLARE_CONCRETE_INSTRUCTION(ClampTToUint8, "clamp-t-to-uint8") | 1018 DECLARE_CONCRETE_INSTRUCTION(ClampTToUint8, "clamp-t-to-uint8") |
1017 }; | 1019 }; |
1018 | 1020 |
1019 | 1021 |
| 1022 class LDoubleBits V8_FINAL : public LTemplateInstruction<1, 1, 0> { |
| 1023 public: |
| 1024 explicit LDoubleBits(LOperand* value) { |
| 1025 inputs_[0] = value; |
| 1026 } |
| 1027 |
| 1028 LOperand* value() { return inputs_[0]; } |
| 1029 |
| 1030 DECLARE_CONCRETE_INSTRUCTION(DoubleBits, "double-bits") |
| 1031 DECLARE_HYDROGEN_ACCESSOR(DoubleBits) |
| 1032 }; |
| 1033 |
| 1034 |
| 1035 class LConstructDouble V8_FINAL : public LTemplateInstruction<1, 2, 1> { |
| 1036 public: |
| 1037 LConstructDouble(LOperand* hi, LOperand* lo, LOperand* temp) { |
| 1038 inputs_[0] = hi; |
| 1039 inputs_[1] = lo; |
| 1040 temps_[0] = temp; |
| 1041 } |
| 1042 |
| 1043 LOperand* hi() { return inputs_[0]; } |
| 1044 LOperand* lo() { return inputs_[1]; } |
| 1045 LOperand* temp() { return temps_[0]; } |
| 1046 |
| 1047 DECLARE_CONCRETE_INSTRUCTION(ConstructDouble, "construct-double") |
| 1048 }; |
| 1049 |
| 1050 |
1020 class LClassOfTestAndBranch V8_FINAL : public LControlInstruction<1, 2> { | 1051 class LClassOfTestAndBranch V8_FINAL : public LControlInstruction<1, 2> { |
1021 public: | 1052 public: |
1022 LClassOfTestAndBranch(LOperand* value, LOperand* temp1, LOperand* temp2) { | 1053 LClassOfTestAndBranch(LOperand* value, LOperand* temp1, LOperand* temp2) { |
1023 inputs_[0] = value; | 1054 inputs_[0] = value; |
1024 temps_[0] = temp1; | 1055 temps_[0] = temp1; |
1025 temps_[1] = temp2; | 1056 temps_[1] = temp2; |
1026 } | 1057 } |
1027 | 1058 |
1028 LOperand* value() { return inputs_[0]; } | 1059 LOperand* value() { return inputs_[0]; } |
1029 LOperand* temp1() { return temps_[0]; } | 1060 LOperand* temp1() { return temps_[0]; } |
(...skipping 2061 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3091 | 3122 |
3092 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 3123 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
3093 }; | 3124 }; |
3094 | 3125 |
3095 #undef DECLARE_HYDROGEN_ACCESSOR | 3126 #undef DECLARE_HYDROGEN_ACCESSOR |
3096 #undef DECLARE_CONCRETE_INSTRUCTION | 3127 #undef DECLARE_CONCRETE_INSTRUCTION |
3097 | 3128 |
3098 } } // namespace v8::internal | 3129 } } // namespace v8::internal |
3099 | 3130 |
3100 #endif // V8_A64_LITHIUM_A64_H_ | 3131 #endif // V8_A64_LITHIUM_A64_H_ |
OLD | NEW |