OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 V(LoadFunctionPrototype) \ | 121 V(LoadFunctionPrototype) \ |
122 V(LoadGlobal) \ | 122 V(LoadGlobal) \ |
123 V(LoadKeyedFastElement) \ | 123 V(LoadKeyedFastElement) \ |
124 V(LoadKeyedGeneric) \ | 124 V(LoadKeyedGeneric) \ |
125 V(LoadNamedField) \ | 125 V(LoadNamedField) \ |
126 V(LoadNamedGeneric) \ | 126 V(LoadNamedGeneric) \ |
127 V(LoadPixelArrayElement) \ | 127 V(LoadPixelArrayElement) \ |
128 V(LoadPixelArrayExternalPointer) \ | 128 V(LoadPixelArrayExternalPointer) \ |
129 V(ModI) \ | 129 V(ModI) \ |
130 V(MulI) \ | 130 V(MulI) \ |
131 V(NegI) \ | |
132 V(NegD) \ | |
133 V(NegT) \ | |
134 V(NumberTagD) \ | 131 V(NumberTagD) \ |
135 V(NumberTagI) \ | 132 V(NumberTagI) \ |
136 V(NumberUntagD) \ | 133 V(NumberUntagD) \ |
137 V(ObjectLiteral) \ | 134 V(ObjectLiteral) \ |
138 V(OsrEntry) \ | 135 V(OsrEntry) \ |
139 V(OuterContext) \ | 136 V(OuterContext) \ |
140 V(Parameter) \ | 137 V(Parameter) \ |
141 V(PixelArrayLength) \ | 138 V(PixelArrayLength) \ |
142 V(Power) \ | 139 V(Power) \ |
143 V(PushArgument) \ | 140 V(PushArgument) \ |
(...skipping 931 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1075 class LBitNotI: public LTemplateInstruction<1, 1, 0> { | 1072 class LBitNotI: public LTemplateInstruction<1, 1, 0> { |
1076 public: | 1073 public: |
1077 explicit LBitNotI(LOperand* value) { | 1074 explicit LBitNotI(LOperand* value) { |
1078 inputs_[0] = value; | 1075 inputs_[0] = value; |
1079 } | 1076 } |
1080 | 1077 |
1081 DECLARE_CONCRETE_INSTRUCTION(BitNotI, "bit-not-i") | 1078 DECLARE_CONCRETE_INSTRUCTION(BitNotI, "bit-not-i") |
1082 }; | 1079 }; |
1083 | 1080 |
1084 | 1081 |
1085 class LNegI: public LTemplateInstruction<1, 1, 0> { | |
1086 public: | |
1087 explicit LNegI(LOperand* value) { | |
1088 inputs_[0] = value; | |
1089 } | |
1090 | |
1091 DECLARE_CONCRETE_INSTRUCTION(NegI, "neg-i") | |
1092 DECLARE_HYDROGEN_ACCESSOR(Neg) | |
1093 LOperand* value() { return inputs_[0]; } | |
1094 }; | |
1095 | |
1096 | |
1097 class LNegD: public LTemplateInstruction<1, 1, 1> { | |
1098 public: | |
1099 explicit LNegD(LOperand* value, LOperand* temp) { | |
1100 inputs_[0] = value; | |
1101 temps_[0] = temp; | |
1102 } | |
1103 | |
1104 DECLARE_CONCRETE_INSTRUCTION(NegD, "neg-d") | |
1105 LOperand* value() { return inputs_[0]; } | |
1106 }; | |
1107 | |
1108 | |
1109 class LNegT: public LTemplateInstruction<1, 1, 0> { | |
1110 public: | |
1111 explicit LNegT(LOperand* value) { | |
1112 inputs_[0] = value; | |
1113 } | |
1114 | |
1115 DECLARE_CONCRETE_INSTRUCTION(NegT, "neg-t") | |
1116 }; | |
1117 | |
1118 | |
1119 class LAddI: public LTemplateInstruction<1, 2, 0> { | 1082 class LAddI: public LTemplateInstruction<1, 2, 0> { |
1120 public: | 1083 public: |
1121 LAddI(LOperand* left, LOperand* right) { | 1084 LAddI(LOperand* left, LOperand* right) { |
1122 inputs_[0] = left; | 1085 inputs_[0] = left; |
1123 inputs_[1] = right; | 1086 inputs_[1] = right; |
1124 } | 1087 } |
1125 | 1088 |
1126 DECLARE_CONCRETE_INSTRUCTION(AddI, "add-i") | 1089 DECLARE_CONCRETE_INSTRUCTION(AddI, "add-i") |
1127 DECLARE_HYDROGEN_ACCESSOR(Add) | 1090 DECLARE_HYDROGEN_ACCESSOR(Add) |
1128 }; | 1091 }; |
(...skipping 1021 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2150 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2113 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2151 }; | 2114 }; |
2152 | 2115 |
2153 #undef DECLARE_HYDROGEN_ACCESSOR | 2116 #undef DECLARE_HYDROGEN_ACCESSOR |
2154 #undef DECLARE_INSTRUCTION | 2117 #undef DECLARE_INSTRUCTION |
2155 #undef DECLARE_CONCRETE_INSTRUCTION | 2118 #undef DECLARE_CONCRETE_INSTRUCTION |
2156 | 2119 |
2157 } } // namespace v8::internal | 2120 } } // namespace v8::internal |
2158 | 2121 |
2159 #endif // V8_IA32_LITHIUM_IA32_H_ | 2122 #endif // V8_IA32_LITHIUM_IA32_H_ |
OLD | NEW |