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 1251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1262 }; | 1262 }; |
1263 | 1263 |
1264 | 1264 |
1265 class LLoadGlobal: public LTemplateInstruction<1, 0, 0> { | 1265 class LLoadGlobal: public LTemplateInstruction<1, 0, 0> { |
1266 public: | 1266 public: |
1267 DECLARE_CONCRETE_INSTRUCTION(LoadGlobal, "load-global") | 1267 DECLARE_CONCRETE_INSTRUCTION(LoadGlobal, "load-global") |
1268 DECLARE_HYDROGEN_ACCESSOR(LoadGlobal) | 1268 DECLARE_HYDROGEN_ACCESSOR(LoadGlobal) |
1269 }; | 1269 }; |
1270 | 1270 |
1271 | 1271 |
1272 class LStoreGlobal: public LTemplateInstruction<0, 1, 0> { | 1272 class LStoreGlobal: public LTemplateInstruction<0, 1, 1> { |
1273 public: | 1273 public: |
1274 explicit LStoreGlobal(LOperand* value) { | 1274 explicit LStoreGlobal(LOperand* value, LOperand* temp) { |
1275 inputs_[0] = value; | 1275 inputs_[0] = value; |
| 1276 temps_[0] = temp; |
1276 } | 1277 } |
1277 | 1278 |
1278 DECLARE_CONCRETE_INSTRUCTION(StoreGlobal, "store-global") | 1279 DECLARE_CONCRETE_INSTRUCTION(StoreGlobal, "store-global") |
1279 DECLARE_HYDROGEN_ACCESSOR(StoreGlobal) | 1280 DECLARE_HYDROGEN_ACCESSOR(StoreGlobal) |
1280 }; | 1281 }; |
1281 | 1282 |
1282 | 1283 |
1283 class LLoadContextSlot: public LTemplateInstruction<1, 1, 0> { | 1284 class LLoadContextSlot: public LTemplateInstruction<1, 1, 0> { |
1284 public: | 1285 public: |
1285 explicit LLoadContextSlot(LOperand* context) { | 1286 explicit LLoadContextSlot(LOperand* context) { |
(...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1599 public: | 1600 public: |
1600 explicit LCheckFunction(LOperand* value) { | 1601 explicit LCheckFunction(LOperand* value) { |
1601 inputs_[0] = value; | 1602 inputs_[0] = value; |
1602 } | 1603 } |
1603 | 1604 |
1604 DECLARE_CONCRETE_INSTRUCTION(CheckFunction, "check-function") | 1605 DECLARE_CONCRETE_INSTRUCTION(CheckFunction, "check-function") |
1605 DECLARE_HYDROGEN_ACCESSOR(CheckFunction) | 1606 DECLARE_HYDROGEN_ACCESSOR(CheckFunction) |
1606 }; | 1607 }; |
1607 | 1608 |
1608 | 1609 |
1609 class LCheckInstanceType: public LTemplateInstruction<0, 1, 1> { | 1610 class LCheckInstanceType: public LTemplateInstruction<0, 1, 0> { |
1610 public: | 1611 public: |
1611 LCheckInstanceType(LOperand* value, LOperand* temp) { | 1612 explicit LCheckInstanceType(LOperand* value) { |
1612 inputs_[0] = value; | 1613 inputs_[0] = value; |
1613 temps_[0] = temp; | |
1614 } | 1614 } |
1615 | 1615 |
1616 DECLARE_CONCRETE_INSTRUCTION(CheckInstanceType, "check-instance-type") | 1616 DECLARE_CONCRETE_INSTRUCTION(CheckInstanceType, "check-instance-type") |
1617 DECLARE_HYDROGEN_ACCESSOR(CheckInstanceType) | 1617 DECLARE_HYDROGEN_ACCESSOR(CheckInstanceType) |
1618 }; | 1618 }; |
1619 | 1619 |
1620 | 1620 |
1621 class LCheckMap: public LTemplateInstruction<0, 1, 0> { | 1621 class LCheckMap: public LTemplateInstruction<0, 1, 0> { |
1622 public: | 1622 public: |
1623 explicit LCheckMap(LOperand* value) { | 1623 explicit LCheckMap(LOperand* value) { |
(...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1991 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 1991 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
1992 }; | 1992 }; |
1993 | 1993 |
1994 #undef DECLARE_HYDROGEN_ACCESSOR | 1994 #undef DECLARE_HYDROGEN_ACCESSOR |
1995 #undef DECLARE_INSTRUCTION | 1995 #undef DECLARE_INSTRUCTION |
1996 #undef DECLARE_CONCRETE_INSTRUCTION | 1996 #undef DECLARE_CONCRETE_INSTRUCTION |
1997 | 1997 |
1998 } } // namespace v8::int | 1998 } } // namespace v8::int |
1999 | 1999 |
2000 #endif // V8_X64_LITHIUM_X64_H_ | 2000 #endif // V8_X64_LITHIUM_X64_H_ |
OLD | NEW |