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(LoadNamedField) \ | 128 V(LoadNamedField) \ |
128 V(LoadNamedGeneric) \ | 129 V(LoadNamedGeneric) \ |
129 V(LoadPixelArrayElement) \ | 130 V(LoadPixelArrayElement) \ |
130 V(ModI) \ | 131 V(ModI) \ |
131 V(MulI) \ | 132 V(MulI) \ |
132 V(NumberTagD) \ | 133 V(NumberTagD) \ |
133 V(NumberTagI) \ | 134 V(NumberTagI) \ |
134 V(NumberUntagD) \ | 135 V(NumberUntagD) \ |
(...skipping 1129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1264 } | 1265 } |
1265 | 1266 |
1266 DECLARE_CONCRETE_INSTRUCTION(LoadKeyedGeneric, "load-keyed-generic") | 1267 DECLARE_CONCRETE_INSTRUCTION(LoadKeyedGeneric, "load-keyed-generic") |
1267 | 1268 |
1268 LOperand* context() { return inputs_[0]; } | 1269 LOperand* context() { return inputs_[0]; } |
1269 LOperand* object() { return inputs_[1]; } | 1270 LOperand* object() { return inputs_[1]; } |
1270 LOperand* key() { return inputs_[2]; } | 1271 LOperand* key() { return inputs_[2]; } |
1271 }; | 1272 }; |
1272 | 1273 |
1273 | 1274 |
1274 class LLoadGlobal: public LTemplateInstruction<1, 0, 0> { | 1275 class LLoadGlobalCell: public LTemplateInstruction<1, 0, 0> { |
1275 public: | 1276 public: |
1276 DECLARE_CONCRETE_INSTRUCTION(LoadGlobal, "load-global") | 1277 DECLARE_CONCRETE_INSTRUCTION(LoadGlobalCell, "load-global-cell") |
1277 DECLARE_HYDROGEN_ACCESSOR(LoadGlobal) | 1278 DECLARE_HYDROGEN_ACCESSOR(LoadGlobalCell) |
| 1279 }; |
| 1280 |
| 1281 |
| 1282 class LLoadGlobalGeneric: public LTemplateInstruction<1, 2, 0> { |
| 1283 public: |
| 1284 LLoadGlobalGeneric(LOperand* context, LOperand* global_object) { |
| 1285 inputs_[0] = context; |
| 1286 inputs_[1] = global_object; |
| 1287 } |
| 1288 |
| 1289 DECLARE_CONCRETE_INSTRUCTION(LoadGlobalGeneric, "load-global-generic") |
| 1290 DECLARE_HYDROGEN_ACCESSOR(LoadGlobalGeneric) |
| 1291 |
| 1292 LOperand* context() { return inputs_[0]; } |
| 1293 LOperand* global_object() { return inputs_[1]; } |
| 1294 Handle<Object> name() const { return hydrogen()->name(); } |
| 1295 bool for_typeof() const { return hydrogen()->for_typeof(); } |
1278 }; | 1296 }; |
1279 | 1297 |
1280 | 1298 |
1281 class LStoreGlobal: public LTemplateInstruction<0, 1, 0> { | 1299 class LStoreGlobal: public LTemplateInstruction<0, 1, 0> { |
1282 public: | 1300 public: |
1283 explicit LStoreGlobal(LOperand* value) { | 1301 explicit LStoreGlobal(LOperand* value) { |
1284 inputs_[0] = value; | 1302 inputs_[0] = value; |
1285 } | 1303 } |
1286 | 1304 |
1287 DECLARE_CONCRETE_INSTRUCTION(StoreGlobal, "store-global") | 1305 DECLARE_CONCRETE_INSTRUCTION(StoreGlobal, "store-global") |
(...skipping 864 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2152 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2170 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2153 }; | 2171 }; |
2154 | 2172 |
2155 #undef DECLARE_HYDROGEN_ACCESSOR | 2173 #undef DECLARE_HYDROGEN_ACCESSOR |
2156 #undef DECLARE_INSTRUCTION | 2174 #undef DECLARE_INSTRUCTION |
2157 #undef DECLARE_CONCRETE_INSTRUCTION | 2175 #undef DECLARE_CONCRETE_INSTRUCTION |
2158 | 2176 |
2159 } } // namespace v8::internal | 2177 } } // namespace v8::internal |
2160 | 2178 |
2161 #endif // V8_IA32_LITHIUM_IA32_H_ | 2179 #endif // V8_IA32_LITHIUM_IA32_H_ |
OLD | NEW |