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 1262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1273 public: | 1273 public: |
1274 explicit LStoreGlobal(LOperand* value) { | 1274 explicit LStoreGlobal(LOperand* value) { |
1275 inputs_[0] = value; | 1275 inputs_[0] = value; |
1276 } | 1276 } |
1277 | 1277 |
1278 DECLARE_CONCRETE_INSTRUCTION(StoreGlobal, "store-global") | 1278 DECLARE_CONCRETE_INSTRUCTION(StoreGlobal, "store-global") |
1279 DECLARE_HYDROGEN_ACCESSOR(StoreGlobal) | 1279 DECLARE_HYDROGEN_ACCESSOR(StoreGlobal) |
1280 }; | 1280 }; |
1281 | 1281 |
1282 | 1282 |
1283 class LLoadContextSlot: public LTemplateInstruction<1, 0, 0> { | 1283 class LLoadContextSlot: public LTemplateInstruction<1, 1, 0> { |
1284 public: | 1284 public: |
| 1285 explicit LLoadContextSlot(LOperand* context) { |
| 1286 inputs_[0] = context; |
| 1287 } |
| 1288 |
1285 DECLARE_CONCRETE_INSTRUCTION(LoadContextSlot, "load-context-slot") | 1289 DECLARE_CONCRETE_INSTRUCTION(LoadContextSlot, "load-context-slot") |
1286 DECLARE_HYDROGEN_ACCESSOR(LoadContextSlot) | 1290 DECLARE_HYDROGEN_ACCESSOR(LoadContextSlot) |
1287 | 1291 |
1288 int context_chain_length() { return hydrogen()->context_chain_length(); } | 1292 LOperand* context() { return InputAt(0); } |
1289 int slot_index() { return hydrogen()->slot_index(); } | 1293 int slot_index() { return hydrogen()->slot_index(); } |
1290 | 1294 |
1291 virtual void PrintDataTo(StringStream* stream); | 1295 virtual void PrintDataTo(StringStream* stream); |
1292 }; | 1296 }; |
1293 | 1297 |
1294 | 1298 |
1295 class LPushArgument: public LTemplateInstruction<0, 1, 0> { | 1299 class LPushArgument: public LTemplateInstruction<0, 1, 0> { |
1296 public: | 1300 public: |
1297 explicit LPushArgument(LOperand* value) { | 1301 explicit LPushArgument(LOperand* value) { |
1298 inputs_[0] = value; | 1302 inputs_[0] = value; |
(...skipping 688 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1987 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 1991 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
1988 }; | 1992 }; |
1989 | 1993 |
1990 #undef DECLARE_HYDROGEN_ACCESSOR | 1994 #undef DECLARE_HYDROGEN_ACCESSOR |
1991 #undef DECLARE_INSTRUCTION | 1995 #undef DECLARE_INSTRUCTION |
1992 #undef DECLARE_CONCRETE_INSTRUCTION | 1996 #undef DECLARE_CONCRETE_INSTRUCTION |
1993 | 1997 |
1994 } } // namespace v8::int | 1998 } } // namespace v8::int |
1995 | 1999 |
1996 #endif // V8_X64_LITHIUM_X64_H_ | 2000 #endif // V8_X64_LITHIUM_X64_H_ |
OLD | NEW |