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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 V(IsSmiAndBranch) \ | 114 V(IsSmiAndBranch) \ |
115 V(IsConstructCall) \ | 115 V(IsConstructCall) \ |
116 V(IsConstructCallAndBranch) \ | 116 V(IsConstructCallAndBranch) \ |
117 V(JSArrayLength) \ | 117 V(JSArrayLength) \ |
118 V(Label) \ | 118 V(Label) \ |
119 V(LazyBailout) \ | 119 V(LazyBailout) \ |
120 V(LoadContextSlot) \ | 120 V(LoadContextSlot) \ |
121 V(LoadElements) \ | 121 V(LoadElements) \ |
122 V(LoadExternalArrayPointer) \ | 122 V(LoadExternalArrayPointer) \ |
123 V(LoadFunctionPrototype) \ | 123 V(LoadFunctionPrototype) \ |
124 V(LoadGlobal) \ | 124 V(LoadGlobalCell) \ |
| 125 V(LoadGlobalGeneric) \ |
125 V(LoadKeyedFastElement) \ | 126 V(LoadKeyedFastElement) \ |
126 V(LoadKeyedGeneric) \ | 127 V(LoadKeyedGeneric) \ |
127 V(LoadKeyedSpecializedArrayElement) \ | 128 V(LoadKeyedSpecializedArrayElement) \ |
128 V(LoadNamedField) \ | 129 V(LoadNamedField) \ |
129 V(LoadNamedFieldPolymorphic) \ | 130 V(LoadNamedFieldPolymorphic) \ |
130 V(LoadNamedGeneric) \ | 131 V(LoadNamedGeneric) \ |
131 V(ModI) \ | 132 V(ModI) \ |
132 V(MulI) \ | 133 V(MulI) \ |
133 V(NumberTagD) \ | 134 V(NumberTagD) \ |
134 V(NumberTagI) \ | 135 V(NumberTagI) \ |
(...skipping 1150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1285 } | 1286 } |
1286 | 1287 |
1287 DECLARE_CONCRETE_INSTRUCTION(LoadKeyedGeneric, "load-keyed-generic") | 1288 DECLARE_CONCRETE_INSTRUCTION(LoadKeyedGeneric, "load-keyed-generic") |
1288 | 1289 |
1289 LOperand* context() { return inputs_[0]; } | 1290 LOperand* context() { return inputs_[0]; } |
1290 LOperand* object() { return inputs_[1]; } | 1291 LOperand* object() { return inputs_[1]; } |
1291 LOperand* key() { return inputs_[2]; } | 1292 LOperand* key() { return inputs_[2]; } |
1292 }; | 1293 }; |
1293 | 1294 |
1294 | 1295 |
1295 class LLoadGlobal: public LTemplateInstruction<1, 0, 0> { | 1296 class LLoadGlobalCell: public LTemplateInstruction<1, 0, 0> { |
1296 public: | 1297 public: |
1297 DECLARE_CONCRETE_INSTRUCTION(LoadGlobal, "load-global") | 1298 DECLARE_CONCRETE_INSTRUCTION(LoadGlobalCell, "load-global-cell") |
1298 DECLARE_HYDROGEN_ACCESSOR(LoadGlobal) | 1299 DECLARE_HYDROGEN_ACCESSOR(LoadGlobalCell) |
| 1300 }; |
| 1301 |
| 1302 |
| 1303 class LLoadGlobalGeneric: public LTemplateInstruction<1, 2, 0> { |
| 1304 public: |
| 1305 LLoadGlobalGeneric(LOperand* context, LOperand* global_object) { |
| 1306 inputs_[0] = context; |
| 1307 inputs_[1] = global_object; |
| 1308 } |
| 1309 |
| 1310 DECLARE_CONCRETE_INSTRUCTION(LoadGlobalGeneric, "load-global-generic") |
| 1311 DECLARE_HYDROGEN_ACCESSOR(LoadGlobalGeneric) |
| 1312 |
| 1313 LOperand* context() { return inputs_[0]; } |
| 1314 LOperand* global_object() { return inputs_[1]; } |
| 1315 Handle<Object> name() const { return hydrogen()->name(); } |
| 1316 bool for_typeof() const { return hydrogen()->for_typeof(); } |
1299 }; | 1317 }; |
1300 | 1318 |
1301 | 1319 |
1302 class LStoreGlobal: public LTemplateInstruction<0, 1, 0> { | 1320 class LStoreGlobal: public LTemplateInstruction<0, 1, 0> { |
1303 public: | 1321 public: |
1304 explicit LStoreGlobal(LOperand* value) { | 1322 explicit LStoreGlobal(LOperand* value) { |
1305 inputs_[0] = value; | 1323 inputs_[0] = value; |
1306 } | 1324 } |
1307 | 1325 |
1308 DECLARE_CONCRETE_INSTRUCTION(StoreGlobal, "store-global") | 1326 DECLARE_CONCRETE_INSTRUCTION(StoreGlobal, "store-global") |
(...skipping 878 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2187 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2205 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2188 }; | 2206 }; |
2189 | 2207 |
2190 #undef DECLARE_HYDROGEN_ACCESSOR | 2208 #undef DECLARE_HYDROGEN_ACCESSOR |
2191 #undef DECLARE_INSTRUCTION | 2209 #undef DECLARE_INSTRUCTION |
2192 #undef DECLARE_CONCRETE_INSTRUCTION | 2210 #undef DECLARE_CONCRETE_INSTRUCTION |
2193 | 2211 |
2194 } } // namespace v8::internal | 2212 } } // namespace v8::internal |
2195 | 2213 |
2196 #endif // V8_IA32_LITHIUM_IA32_H_ | 2214 #endif // V8_IA32_LITHIUM_IA32_H_ |
OLD | NEW |