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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 V(IsObjectAndBranch) \ | 112 V(IsObjectAndBranch) \ |
113 V(IsSmi) \ | 113 V(IsSmi) \ |
114 V(IsSmiAndBranch) \ | 114 V(IsSmiAndBranch) \ |
115 V(JSArrayLength) \ | 115 V(JSArrayLength) \ |
116 V(Label) \ | 116 V(Label) \ |
117 V(LazyBailout) \ | 117 V(LazyBailout) \ |
118 V(LoadContextSlot) \ | 118 V(LoadContextSlot) \ |
119 V(LoadElements) \ | 119 V(LoadElements) \ |
120 V(LoadExternalArrayPointer) \ | 120 V(LoadExternalArrayPointer) \ |
121 V(LoadFunctionPrototype) \ | 121 V(LoadFunctionPrototype) \ |
122 V(LoadGlobal) \ | 122 V(LoadGlobalCell) \ |
| 123 V(LoadGlobalGeneric) \ |
123 V(LoadKeyedFastElement) \ | 124 V(LoadKeyedFastElement) \ |
124 V(LoadKeyedGeneric) \ | 125 V(LoadKeyedGeneric) \ |
125 V(LoadKeyedSpecializedArrayElement) \ | 126 V(LoadKeyedSpecializedArrayElement) \ |
126 V(LoadNamedField) \ | 127 V(LoadNamedField) \ |
127 V(LoadNamedFieldPolymorphic) \ | 128 V(LoadNamedFieldPolymorphic) \ |
128 V(LoadNamedGeneric) \ | 129 V(LoadNamedGeneric) \ |
129 V(ModI) \ | 130 V(ModI) \ |
130 V(MulI) \ | 131 V(MulI) \ |
131 V(NumberTagD) \ | 132 V(NumberTagD) \ |
132 V(NumberTagI) \ | 133 V(NumberTagI) \ |
(...skipping 1119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1252 inputs_[1] = key; | 1253 inputs_[1] = key; |
1253 } | 1254 } |
1254 | 1255 |
1255 DECLARE_CONCRETE_INSTRUCTION(LoadKeyedGeneric, "load-keyed-generic") | 1256 DECLARE_CONCRETE_INSTRUCTION(LoadKeyedGeneric, "load-keyed-generic") |
1256 | 1257 |
1257 LOperand* object() { return inputs_[0]; } | 1258 LOperand* object() { return inputs_[0]; } |
1258 LOperand* key() { return inputs_[1]; } | 1259 LOperand* key() { return inputs_[1]; } |
1259 }; | 1260 }; |
1260 | 1261 |
1261 | 1262 |
1262 class LLoadGlobal: public LTemplateInstruction<1, 0, 0> { | 1263 class LLoadGlobalCell: public LTemplateInstruction<1, 0, 0> { |
1263 public: | 1264 public: |
1264 DECLARE_CONCRETE_INSTRUCTION(LoadGlobal, "load-global") | 1265 DECLARE_CONCRETE_INSTRUCTION(LoadGlobalCell, "load-global-cell") |
1265 DECLARE_HYDROGEN_ACCESSOR(LoadGlobal) | 1266 DECLARE_HYDROGEN_ACCESSOR(LoadGlobalCell) |
| 1267 }; |
| 1268 |
| 1269 |
| 1270 class LLoadGlobalGeneric: public LTemplateInstruction<1, 1, 0> { |
| 1271 public: |
| 1272 explicit LLoadGlobalGeneric(LOperand* global_object) { |
| 1273 inputs_[0] = global_object; |
| 1274 } |
| 1275 |
| 1276 DECLARE_CONCRETE_INSTRUCTION(LoadGlobalGeneric, "load-global-generic") |
| 1277 DECLARE_HYDROGEN_ACCESSOR(LoadGlobalGeneric) |
| 1278 |
| 1279 LOperand* global_object() { return inputs_[0]; } |
| 1280 Handle<Object> name() const { return hydrogen()->name(); } |
| 1281 bool for_typeof() const { return hydrogen()->for_typeof(); } |
1266 }; | 1282 }; |
1267 | 1283 |
1268 | 1284 |
1269 class LStoreGlobal: public LTemplateInstruction<0, 1, 1> { | 1285 class LStoreGlobal: public LTemplateInstruction<0, 1, 1> { |
1270 public: | 1286 public: |
1271 LStoreGlobal(LOperand* value, LOperand* temp) { | 1287 LStoreGlobal(LOperand* value, LOperand* temp) { |
1272 inputs_[0] = value; | 1288 inputs_[0] = value; |
1273 temps_[0] = temp; | 1289 temps_[0] = temp; |
1274 } | 1290 } |
1275 | 1291 |
(...skipping 860 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2136 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2152 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2137 }; | 2153 }; |
2138 | 2154 |
2139 #undef DECLARE_HYDROGEN_ACCESSOR | 2155 #undef DECLARE_HYDROGEN_ACCESSOR |
2140 #undef DECLARE_INSTRUCTION | 2156 #undef DECLARE_INSTRUCTION |
2141 #undef DECLARE_CONCRETE_INSTRUCTION | 2157 #undef DECLARE_CONCRETE_INSTRUCTION |
2142 | 2158 |
2143 } } // namespace v8::internal | 2159 } } // namespace v8::internal |
2144 | 2160 |
2145 #endif // V8_ARM_LITHIUM_ARM_H_ | 2161 #endif // V8_ARM_LITHIUM_ARM_H_ |
OLD | NEW |