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) \ | |
88 V(Context) \ | 87 V(Context) \ |
89 V(DateField) \ | 88 V(DateField) \ |
90 V(DebugBreak) \ | 89 V(DebugBreak) \ |
91 V(DeclareGlobals) \ | 90 V(DeclareGlobals) \ |
92 V(Deoptimize) \ | 91 V(Deoptimize) \ |
93 V(DivI) \ | 92 V(DivI) \ |
94 V(DoubleBits) \ | |
95 V(DoubleToIntOrSmi) \ | 93 V(DoubleToIntOrSmi) \ |
96 V(Drop) \ | 94 V(Drop) \ |
97 V(Dummy) \ | 95 V(Dummy) \ |
98 V(DummyUse) \ | 96 V(DummyUse) \ |
99 V(ForInCacheArray) \ | 97 V(ForInCacheArray) \ |
100 V(ForInPrepareMap) \ | 98 V(ForInPrepareMap) \ |
101 V(FunctionLiteral) \ | 99 V(FunctionLiteral) \ |
102 V(GetCachedArrayIndex) \ | 100 V(GetCachedArrayIndex) \ |
103 V(Goto) \ | 101 V(Goto) \ |
104 V(HasCachedArrayIndexAndBranch) \ | 102 V(HasCachedArrayIndexAndBranch) \ |
(...skipping 901 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1006 } | 1004 } |
1007 | 1005 |
1008 LOperand* unclamped() { return inputs_[0]; } | 1006 LOperand* unclamped() { return inputs_[0]; } |
1009 LOperand* temp1() { return temps_[0]; } | 1007 LOperand* temp1() { return temps_[0]; } |
1010 LOperand* temp2() { return temps_[1]; } | 1008 LOperand* temp2() { return temps_[1]; } |
1011 | 1009 |
1012 DECLARE_CONCRETE_INSTRUCTION(ClampTToUint8, "clamp-t-to-uint8") | 1010 DECLARE_CONCRETE_INSTRUCTION(ClampTToUint8, "clamp-t-to-uint8") |
1013 }; | 1011 }; |
1014 | 1012 |
1015 | 1013 |
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 | |
1045 class LClassOfTestAndBranch V8_FINAL : public LControlInstruction<1, 2> { | 1014 class LClassOfTestAndBranch V8_FINAL : public LControlInstruction<1, 2> { |
1046 public: | 1015 public: |
1047 LClassOfTestAndBranch(LOperand* value, LOperand* temp1, LOperand* temp2) { | 1016 LClassOfTestAndBranch(LOperand* value, LOperand* temp1, LOperand* temp2) { |
1048 inputs_[0] = value; | 1017 inputs_[0] = value; |
1049 temps_[0] = temp1; | 1018 temps_[0] = temp1; |
1050 temps_[1] = temp2; | 1019 temps_[1] = temp2; |
1051 } | 1020 } |
1052 | 1021 |
1053 LOperand* value() { return inputs_[0]; } | 1022 LOperand* value() { return inputs_[0]; } |
1054 LOperand* temp1() { return temps_[0]; } | 1023 LOperand* temp1() { return temps_[0]; } |
(...skipping 1939 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2994 | 2963 |
2995 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2964 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2996 }; | 2965 }; |
2997 | 2966 |
2998 #undef DECLARE_HYDROGEN_ACCESSOR | 2967 #undef DECLARE_HYDROGEN_ACCESSOR |
2999 #undef DECLARE_CONCRETE_INSTRUCTION | 2968 #undef DECLARE_CONCRETE_INSTRUCTION |
3000 | 2969 |
3001 } } // namespace v8::internal | 2970 } } // namespace v8::internal |
3002 | 2971 |
3003 #endif // V8_A64_LITHIUM_A64_H_ | 2972 #endif // V8_A64_LITHIUM_A64_H_ |
OLD | NEW |