| 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 1240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1251 DECLARE_CONCRETE_INSTRUCTION(LoadContextSlot, "load-context-slot") | 1251 DECLARE_CONCRETE_INSTRUCTION(LoadContextSlot, "load-context-slot") |
| 1252 DECLARE_HYDROGEN_ACCESSOR(LoadContextSlot) | 1252 DECLARE_HYDROGEN_ACCESSOR(LoadContextSlot) |
| 1253 | 1253 |
| 1254 LOperand* context() { return InputAt(0); } | 1254 LOperand* context() { return InputAt(0); } |
| 1255 int slot_index() { return hydrogen()->slot_index(); } | 1255 int slot_index() { return hydrogen()->slot_index(); } |
| 1256 | 1256 |
| 1257 virtual void PrintDataTo(StringStream* stream); | 1257 virtual void PrintDataTo(StringStream* stream); |
| 1258 }; | 1258 }; |
| 1259 | 1259 |
| 1260 | 1260 |
| 1261 class LStoreContextSlot: public LTemplateInstruction<0, 2, 0> { | 1261 class LStoreContextSlot: public LTemplateInstruction<0, 2, 1> { |
| 1262 public: | 1262 public: |
| 1263 LStoreContextSlot(LOperand* context, LOperand* value) { | 1263 LStoreContextSlot(LOperand* context, LOperand* value, LOperand* temp) { |
| 1264 inputs_[0] = context; | 1264 inputs_[0] = context; |
| 1265 inputs_[1] = value; | 1265 inputs_[1] = value; |
| 1266 temps_[0] = temp; |
| 1266 } | 1267 } |
| 1267 | 1268 |
| 1268 DECLARE_CONCRETE_INSTRUCTION(StoreContextSlot, "store-context-slot") | 1269 DECLARE_CONCRETE_INSTRUCTION(StoreContextSlot, "store-context-slot") |
| 1269 DECLARE_HYDROGEN_ACCESSOR(StoreContextSlot) | 1270 DECLARE_HYDROGEN_ACCESSOR(StoreContextSlot) |
| 1270 | 1271 |
| 1271 LOperand* context() { return InputAt(0); } | 1272 LOperand* context() { return InputAt(0); } |
| 1272 LOperand* value() { return InputAt(1); } | 1273 LOperand* value() { return InputAt(1); } |
| 1273 int slot_index() { return hydrogen()->slot_index(); } | 1274 int slot_index() { return hydrogen()->slot_index(); } |
| 1274 int needs_write_barrier() { return hydrogen()->NeedsWriteBarrier(); } | 1275 int needs_write_barrier() { return hydrogen()->NeedsWriteBarrier(); } |
| 1275 | 1276 |
| (...skipping 779 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2055 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2056 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 2056 }; | 2057 }; |
| 2057 | 2058 |
| 2058 #undef DECLARE_HYDROGEN_ACCESSOR | 2059 #undef DECLARE_HYDROGEN_ACCESSOR |
| 2059 #undef DECLARE_INSTRUCTION | 2060 #undef DECLARE_INSTRUCTION |
| 2060 #undef DECLARE_CONCRETE_INSTRUCTION | 2061 #undef DECLARE_CONCRETE_INSTRUCTION |
| 2061 | 2062 |
| 2062 } } // namespace v8::int | 2063 } } // namespace v8::int |
| 2063 | 2064 |
| 2064 #endif // V8_X64_LITHIUM_X64_H_ | 2065 #endif // V8_X64_LITHIUM_X64_H_ |
| OLD | NEW |