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(DivI) \ | 93 V(DivI) \ |
| 94 V(DoubleBits) \ |
93 V(DoubleToIntOrSmi) \ | 95 V(DoubleToIntOrSmi) \ |
94 V(Drop) \ | 96 V(Drop) \ |
95 V(Dummy) \ | 97 V(Dummy) \ |
96 V(DummyUse) \ | 98 V(DummyUse) \ |
97 V(ForInCacheArray) \ | 99 V(ForInCacheArray) \ |
98 V(ForInPrepareMap) \ | 100 V(ForInPrepareMap) \ |
99 V(FunctionLiteral) \ | 101 V(FunctionLiteral) \ |
100 V(GetCachedArrayIndex) \ | 102 V(GetCachedArrayIndex) \ |
101 V(Goto) \ | 103 V(Goto) \ |
102 V(HasCachedArrayIndexAndBranch) \ | 104 V(HasCachedArrayIndexAndBranch) \ |
(...skipping 901 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1004 } | 1006 } |
1005 | 1007 |
1006 LOperand* unclamped() { return inputs_[0]; } | 1008 LOperand* unclamped() { return inputs_[0]; } |
1007 LOperand* temp1() { return temps_[0]; } | 1009 LOperand* temp1() { return temps_[0]; } |
1008 LOperand* temp2() { return temps_[1]; } | 1010 LOperand* temp2() { return temps_[1]; } |
1009 | 1011 |
1010 DECLARE_CONCRETE_INSTRUCTION(ClampTToUint8, "clamp-t-to-uint8") | 1012 DECLARE_CONCRETE_INSTRUCTION(ClampTToUint8, "clamp-t-to-uint8") |
1011 }; | 1013 }; |
1012 | 1014 |
1013 | 1015 |
| 1016 class LDoubleBits V8_FINAL : public LTemplateInstruction<1, 1, 0> { |
| 1017 public: |
| 1018 explicit LDoubleBits(LOperand* value) { |
| 1019 inputs_[0] = value; |
| 1020 } |
| 1021 |
| 1022 LOperand* value() { return inputs_[0]; } |
| 1023 |
| 1024 DECLARE_CONCRETE_INSTRUCTION(DoubleBits, "double-bits") |
| 1025 DECLARE_HYDROGEN_ACCESSOR(DoubleBits) |
| 1026 }; |
| 1027 |
| 1028 |
| 1029 class LConstructDouble V8_FINAL : public LTemplateInstruction<1, 2, 1> { |
| 1030 public: |
| 1031 LConstructDouble(LOperand* hi, LOperand* lo, LOperand* temp) { |
| 1032 inputs_[0] = hi; |
| 1033 inputs_[1] = lo; |
| 1034 temps_[0] = temp; |
| 1035 } |
| 1036 |
| 1037 LOperand* hi() { return inputs_[0]; } |
| 1038 LOperand* lo() { return inputs_[1]; } |
| 1039 LOperand* temp() { return temps_[0]; } |
| 1040 |
| 1041 DECLARE_CONCRETE_INSTRUCTION(ConstructDouble, "construct-double") |
| 1042 }; |
| 1043 |
| 1044 |
1014 class LClassOfTestAndBranch V8_FINAL : public LControlInstruction<1, 2> { | 1045 class LClassOfTestAndBranch V8_FINAL : public LControlInstruction<1, 2> { |
1015 public: | 1046 public: |
1016 LClassOfTestAndBranch(LOperand* value, LOperand* temp1, LOperand* temp2) { | 1047 LClassOfTestAndBranch(LOperand* value, LOperand* temp1, LOperand* temp2) { |
1017 inputs_[0] = value; | 1048 inputs_[0] = value; |
1018 temps_[0] = temp1; | 1049 temps_[0] = temp1; |
1019 temps_[1] = temp2; | 1050 temps_[1] = temp2; |
1020 } | 1051 } |
1021 | 1052 |
1022 LOperand* value() { return inputs_[0]; } | 1053 LOperand* value() { return inputs_[0]; } |
1023 LOperand* temp1() { return temps_[0]; } | 1054 LOperand* temp1() { return temps_[0]; } |
(...skipping 1939 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2963 | 2994 |
2964 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2995 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2965 }; | 2996 }; |
2966 | 2997 |
2967 #undef DECLARE_HYDROGEN_ACCESSOR | 2998 #undef DECLARE_HYDROGEN_ACCESSOR |
2968 #undef DECLARE_CONCRETE_INSTRUCTION | 2999 #undef DECLARE_CONCRETE_INSTRUCTION |
2969 | 3000 |
2970 } } // namespace v8::internal | 3001 } } // namespace v8::internal |
2971 | 3002 |
2972 #endif // V8_A64_LITHIUM_A64_H_ | 3003 #endif // V8_A64_LITHIUM_A64_H_ |
OLD | NEW |