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 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 V(NumberTagU) \ | 147 V(NumberTagU) \ |
148 V(NumberUntagD) \ | 148 V(NumberUntagD) \ |
149 V(OsrEntry) \ | 149 V(OsrEntry) \ |
150 V(OuterContext) \ | 150 V(OuterContext) \ |
151 V(Parameter) \ | 151 V(Parameter) \ |
152 V(Power) \ | 152 V(Power) \ |
153 V(PushArgument) \ | 153 V(PushArgument) \ |
154 V(Random) \ | 154 V(Random) \ |
155 V(RegExpLiteral) \ | 155 V(RegExpLiteral) \ |
156 V(Return) \ | 156 V(Return) \ |
157 V(SeqStringGetChar) \ | |
158 V(SeqStringSetChar) \ | 157 V(SeqStringSetChar) \ |
159 V(ShiftI) \ | 158 V(ShiftI) \ |
160 V(SmiTag) \ | 159 V(SmiTag) \ |
161 V(SmiUntag) \ | 160 V(SmiUntag) \ |
162 V(StackCheck) \ | 161 V(StackCheck) \ |
163 V(StoreCodeEntry) \ | 162 V(StoreCodeEntry) \ |
164 V(StoreContextSlot) \ | 163 V(StoreContextSlot) \ |
165 V(StoreGlobalCell) \ | 164 V(StoreGlobalCell) \ |
166 V(StoreGlobalGeneric) \ | 165 V(StoreGlobalGeneric) \ |
167 V(StoreKeyed) \ | 166 V(StoreKeyed) \ |
(...skipping 1107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1275 Smi* index() const { return index_; } | 1274 Smi* index() const { return index_; } |
1276 | 1275 |
1277 DECLARE_CONCRETE_INSTRUCTION(DateField, "date-field") | 1276 DECLARE_CONCRETE_INSTRUCTION(DateField, "date-field") |
1278 DECLARE_HYDROGEN_ACCESSOR(DateField) | 1277 DECLARE_HYDROGEN_ACCESSOR(DateField) |
1279 | 1278 |
1280 private: | 1279 private: |
1281 Smi* index_; | 1280 Smi* index_; |
1282 }; | 1281 }; |
1283 | 1282 |
1284 | 1283 |
1285 class LSeqStringGetChar V8_FINAL : public LTemplateInstruction<1, 2, 0> { | |
1286 public: | |
1287 LSeqStringGetChar(LOperand* string, LOperand* index) { | |
1288 inputs_[0] = string; | |
1289 inputs_[1] = index; | |
1290 } | |
1291 | |
1292 LOperand* string() const { return inputs_[0]; } | |
1293 LOperand* index() const { return inputs_[1]; } | |
1294 | |
1295 DECLARE_CONCRETE_INSTRUCTION(SeqStringGetChar, "seq-string-get-char") | |
1296 DECLARE_HYDROGEN_ACCESSOR(SeqStringGetChar) | |
1297 }; | |
1298 | |
1299 | |
1300 class LSeqStringSetChar V8_FINAL : public LTemplateInstruction<1, 3, 0> { | 1284 class LSeqStringSetChar V8_FINAL : public LTemplateInstruction<1, 3, 0> { |
1301 public: | 1285 public: |
1302 LSeqStringSetChar(LOperand* string, | 1286 LSeqStringSetChar(LOperand* string, |
1303 LOperand* index, | 1287 LOperand* index, |
1304 LOperand* value) { | 1288 LOperand* value) { |
1305 inputs_[0] = string; | 1289 inputs_[0] = string; |
1306 inputs_[1] = index; | 1290 inputs_[1] = index; |
1307 inputs_[2] = value; | 1291 inputs_[2] = value; |
1308 } | 1292 } |
1309 | 1293 |
(...skipping 1412 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2722 | 2706 |
2723 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2707 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2724 }; | 2708 }; |
2725 | 2709 |
2726 #undef DECLARE_HYDROGEN_ACCESSOR | 2710 #undef DECLARE_HYDROGEN_ACCESSOR |
2727 #undef DECLARE_CONCRETE_INSTRUCTION | 2711 #undef DECLARE_CONCRETE_INSTRUCTION |
2728 | 2712 |
2729 } } // namespace v8::int | 2713 } } // namespace v8::int |
2730 | 2714 |
2731 #endif // V8_X64_LITHIUM_X64_H_ | 2715 #endif // V8_X64_LITHIUM_X64_H_ |
OLD | NEW |