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 1213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1224 DECLARE_CONCRETE_INSTRUCTION(LoadGlobalGeneric, "load-global-generic") | 1224 DECLARE_CONCRETE_INSTRUCTION(LoadGlobalGeneric, "load-global-generic") |
1225 DECLARE_HYDROGEN_ACCESSOR(LoadGlobalGeneric) | 1225 DECLARE_HYDROGEN_ACCESSOR(LoadGlobalGeneric) |
1226 | 1226 |
1227 LOperand* context() { return inputs_[0]; } | 1227 LOperand* context() { return inputs_[0]; } |
1228 LOperand* global_object() { return inputs_[1]; } | 1228 LOperand* global_object() { return inputs_[1]; } |
1229 Handle<Object> name() const { return hydrogen()->name(); } | 1229 Handle<Object> name() const { return hydrogen()->name(); } |
1230 bool for_typeof() const { return hydrogen()->for_typeof(); } | 1230 bool for_typeof() const { return hydrogen()->for_typeof(); } |
1231 }; | 1231 }; |
1232 | 1232 |
1233 | 1233 |
1234 class LStoreGlobalCell: public LTemplateInstruction<0, 1, 0> { | 1234 class LStoreGlobalCell: public LTemplateInstruction<0, 1, 2> { |
1235 public: | 1235 public: |
1236 explicit LStoreGlobalCell(LOperand* value) { | 1236 explicit LStoreGlobalCell(LOperand* value, LOperand* temp1, LOperand* temp2) { |
1237 inputs_[0] = value; | 1237 inputs_[0] = value; |
| 1238 temps_[0] = temp1; |
| 1239 temps_[1] = temp2; |
1238 } | 1240 } |
1239 | 1241 |
1240 DECLARE_CONCRETE_INSTRUCTION(StoreGlobalCell, "store-global-cell") | 1242 DECLARE_CONCRETE_INSTRUCTION(StoreGlobalCell, "store-global-cell") |
1241 DECLARE_HYDROGEN_ACCESSOR(StoreGlobalCell) | 1243 DECLARE_HYDROGEN_ACCESSOR(StoreGlobalCell) |
1242 }; | 1244 }; |
1243 | 1245 |
1244 | 1246 |
1245 class LStoreGlobalGeneric: public LTemplateInstruction<0, 3, 0> { | 1247 class LStoreGlobalGeneric: public LTemplateInstruction<0, 3, 0> { |
1246 public: | 1248 public: |
1247 LStoreGlobalGeneric(LOperand* context, | 1249 LStoreGlobalGeneric(LOperand* context, |
(...skipping 1039 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2287 | 2289 |
2288 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2290 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2289 }; | 2291 }; |
2290 | 2292 |
2291 #undef DECLARE_HYDROGEN_ACCESSOR | 2293 #undef DECLARE_HYDROGEN_ACCESSOR |
2292 #undef DECLARE_CONCRETE_INSTRUCTION | 2294 #undef DECLARE_CONCRETE_INSTRUCTION |
2293 | 2295 |
2294 } } // namespace v8::internal | 2296 } } // namespace v8::internal |
2295 | 2297 |
2296 #endif // V8_IA32_LITHIUM_IA32_H_ | 2298 #endif // V8_IA32_LITHIUM_IA32_H_ |
OLD | NEW |