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 1180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1191 | 1191 |
1192 DECLARE_CONCRETE_INSTRUCTION(LoadGlobalGeneric, "load-global-generic") | 1192 DECLARE_CONCRETE_INSTRUCTION(LoadGlobalGeneric, "load-global-generic") |
1193 DECLARE_HYDROGEN_ACCESSOR(LoadGlobalGeneric) | 1193 DECLARE_HYDROGEN_ACCESSOR(LoadGlobalGeneric) |
1194 | 1194 |
1195 LOperand* global_object() { return inputs_[0]; } | 1195 LOperand* global_object() { return inputs_[0]; } |
1196 Handle<Object> name() const { return hydrogen()->name(); } | 1196 Handle<Object> name() const { return hydrogen()->name(); } |
1197 bool for_typeof() const { return hydrogen()->for_typeof(); } | 1197 bool for_typeof() const { return hydrogen()->for_typeof(); } |
1198 }; | 1198 }; |
1199 | 1199 |
1200 | 1200 |
1201 class LStoreGlobalCell: public LTemplateInstruction<0, 1, 1> { | 1201 class LStoreGlobalCell: public LTemplateInstruction<0, 1, 2> { |
1202 public: | 1202 public: |
1203 explicit LStoreGlobalCell(LOperand* value, LOperand* temp) { | 1203 explicit LStoreGlobalCell(LOperand* value, LOperand* temp1, LOperand* temp2) { |
1204 inputs_[0] = value; | 1204 inputs_[0] = value; |
1205 temps_[0] = temp; | 1205 temps_[0] = temp1; |
| 1206 temps_[1] = temp2; |
1206 } | 1207 } |
1207 | 1208 |
1208 DECLARE_CONCRETE_INSTRUCTION(StoreGlobalCell, "store-global-cell") | 1209 DECLARE_CONCRETE_INSTRUCTION(StoreGlobalCell, "store-global-cell") |
1209 DECLARE_HYDROGEN_ACCESSOR(StoreGlobalCell) | 1210 DECLARE_HYDROGEN_ACCESSOR(StoreGlobalCell) |
1210 }; | 1211 }; |
1211 | 1212 |
1212 | 1213 |
1213 class LStoreGlobalGeneric: public LTemplateInstruction<0, 2, 0> { | 1214 class LStoreGlobalGeneric: public LTemplateInstruction<0, 2, 0> { |
1214 public: | 1215 public: |
1215 explicit LStoreGlobalGeneric(LOperand* global_object, | 1216 explicit LStoreGlobalGeneric(LOperand* global_object, |
(...skipping 958 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2174 | 2175 |
2175 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2176 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2176 }; | 2177 }; |
2177 | 2178 |
2178 #undef DECLARE_HYDROGEN_ACCESSOR | 2179 #undef DECLARE_HYDROGEN_ACCESSOR |
2179 #undef DECLARE_CONCRETE_INSTRUCTION | 2180 #undef DECLARE_CONCRETE_INSTRUCTION |
2180 | 2181 |
2181 } } // namespace v8::int | 2182 } } // namespace v8::int |
2182 | 2183 |
2183 #endif // V8_X64_LITHIUM_X64_H_ | 2184 #endif // V8_X64_LITHIUM_X64_H_ |
OLD | NEW |