OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 V(NumberUntagD) \ | 137 V(NumberUntagD) \ |
138 V(ObjectLiteral) \ | 138 V(ObjectLiteral) \ |
139 V(OsrEntry) \ | 139 V(OsrEntry) \ |
140 V(OuterContext) \ | 140 V(OuterContext) \ |
141 V(Parameter) \ | 141 V(Parameter) \ |
142 V(Power) \ | 142 V(Power) \ |
143 V(Random) \ | 143 V(Random) \ |
144 V(PushArgument) \ | 144 V(PushArgument) \ |
145 V(RegExpLiteral) \ | 145 V(RegExpLiteral) \ |
146 V(Return) \ | 146 V(Return) \ |
| 147 V(SeqStringSetChar) \ |
147 V(ShiftI) \ | 148 V(ShiftI) \ |
148 V(SmiTag) \ | 149 V(SmiTag) \ |
149 V(SmiUntag) \ | 150 V(SmiUntag) \ |
150 V(StackCheck) \ | 151 V(StackCheck) \ |
151 V(StoreContextSlot) \ | 152 V(StoreContextSlot) \ |
152 V(StoreGlobalCell) \ | 153 V(StoreGlobalCell) \ |
153 V(StoreGlobalGeneric) \ | 154 V(StoreGlobalGeneric) \ |
154 V(StoreKeyed) \ | 155 V(StoreKeyed) \ |
155 V(StoreKeyedGeneric) \ | 156 V(StoreKeyedGeneric) \ |
156 V(StoreNamedField) \ | 157 V(StoreNamedField) \ |
(...skipping 1015 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1172 DECLARE_CONCRETE_INSTRUCTION(DateField, "date-field") | 1173 DECLARE_CONCRETE_INSTRUCTION(DateField, "date-field") |
1173 DECLARE_HYDROGEN_ACCESSOR(DateField) | 1174 DECLARE_HYDROGEN_ACCESSOR(DateField) |
1174 | 1175 |
1175 Smi* index() const { return index_; } | 1176 Smi* index() const { return index_; } |
1176 | 1177 |
1177 private: | 1178 private: |
1178 Smi* index_; | 1179 Smi* index_; |
1179 }; | 1180 }; |
1180 | 1181 |
1181 | 1182 |
| 1183 class LSeqStringSetChar: public LTemplateInstruction<1, 3, 0> { |
| 1184 public: |
| 1185 LSeqStringSetChar(bool is_one_byte, |
| 1186 LOperand* string, |
| 1187 LOperand* index, |
| 1188 LOperand* value) : is_one_byte_(is_one_byte) { |
| 1189 inputs_[0] = string; |
| 1190 inputs_[1] = index; |
| 1191 inputs_[2] = value; |
| 1192 } |
| 1193 |
| 1194 LOperand* string() { return inputs_[0]; } |
| 1195 LOperand* index() { return inputs_[1]; } |
| 1196 LOperand* value() { return inputs_[2]; } |
| 1197 bool is_one_byte() { return is_one_byte_; } |
| 1198 |
| 1199 DECLARE_CONCRETE_INSTRUCTION(SeqStringSetChar, "seq-string-set-char") |
| 1200 DECLARE_HYDROGEN_ACCESSOR(SeqStringSetChar) |
| 1201 |
| 1202 private: |
| 1203 bool is_one_byte_; |
| 1204 }; |
| 1205 |
| 1206 |
1182 class LThrow: public LTemplateInstruction<0, 2, 0> { | 1207 class LThrow: public LTemplateInstruction<0, 2, 0> { |
1183 public: | 1208 public: |
1184 LThrow(LOperand* context, LOperand* value) { | 1209 LThrow(LOperand* context, LOperand* value) { |
1185 inputs_[0] = context; | 1210 inputs_[0] = context; |
1186 inputs_[1] = value; | 1211 inputs_[1] = value; |
1187 } | 1212 } |
1188 | 1213 |
1189 LOperand* context() { return inputs_[0]; } | 1214 LOperand* context() { return inputs_[0]; } |
1190 LOperand* value() { return inputs_[1]; } | 1215 LOperand* value() { return inputs_[1]; } |
1191 | 1216 |
(...skipping 1486 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2678 | 2703 |
2679 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2704 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2680 }; | 2705 }; |
2681 | 2706 |
2682 #undef DECLARE_HYDROGEN_ACCESSOR | 2707 #undef DECLARE_HYDROGEN_ACCESSOR |
2683 #undef DECLARE_CONCRETE_INSTRUCTION | 2708 #undef DECLARE_CONCRETE_INSTRUCTION |
2684 | 2709 |
2685 } } // namespace v8::internal | 2710 } } // namespace v8::internal |
2686 | 2711 |
2687 #endif // V8_IA32_LITHIUM_IA32_H_ | 2712 #endif // V8_IA32_LITHIUM_IA32_H_ |
OLD | NEW |