| 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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 V(IsObject) \ | 111 V(IsObject) \ |
| 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(LoadGlobalCell) \ | 121 V(LoadGlobal) \ |
| 122 V(LoadGlobalGeneric) \ | |
| 123 V(LoadKeyedFastElement) \ | 122 V(LoadKeyedFastElement) \ |
| 124 V(LoadKeyedGeneric) \ | 123 V(LoadKeyedGeneric) \ |
| 125 V(LoadKeyedSpecializedArrayElement) \ | 124 V(LoadKeyedSpecializedArrayElement) \ |
| 126 V(LoadNamedField) \ | 125 V(LoadNamedField) \ |
| 127 V(LoadNamedFieldPolymorphic) \ | 126 V(LoadNamedFieldPolymorphic) \ |
| 128 V(LoadNamedGeneric) \ | 127 V(LoadNamedGeneric) \ |
| 129 V(LoadFunctionPrototype) \ | 128 V(LoadFunctionPrototype) \ |
| 130 V(ModI) \ | 129 V(ModI) \ |
| 131 V(MulI) \ | 130 V(MulI) \ |
| 132 V(NumberTagD) \ | 131 V(NumberTagD) \ |
| 133 V(NumberTagI) \ | 132 V(NumberTagI) \ |
| 134 V(NumberUntagD) \ | 133 V(NumberUntagD) \ |
| 135 V(ObjectLiteral) \ | 134 V(ObjectLiteral) \ |
| 136 V(OsrEntry) \ | 135 V(OsrEntry) \ |
| 137 V(OuterContext) \ | 136 V(OuterContext) \ |
| 138 V(Parameter) \ | 137 V(Parameter) \ |
| 139 V(Power) \ | 138 V(Power) \ |
| 140 V(PushArgument) \ | 139 V(PushArgument) \ |
| 141 V(RegExpLiteral) \ | 140 V(RegExpLiteral) \ |
| 142 V(Return) \ | 141 V(Return) \ |
| 143 V(ShiftI) \ | 142 V(ShiftI) \ |
| 144 V(SmiTag) \ | 143 V(SmiTag) \ |
| 145 V(SmiUntag) \ | 144 V(SmiUntag) \ |
| 146 V(StackCheck) \ | 145 V(StackCheck) \ |
| 147 V(StoreContextSlot) \ | 146 V(StoreContextSlot) \ |
| 148 V(StoreGlobalCell) \ | 147 V(StoreGlobal) \ |
| 149 V(StoreGlobalGeneric) \ | |
| 150 V(StoreKeyedFastElement) \ | 148 V(StoreKeyedFastElement) \ |
| 151 V(StoreKeyedGeneric) \ | 149 V(StoreKeyedGeneric) \ |
| 152 V(StoreKeyedSpecializedArrayElement) \ | 150 V(StoreKeyedSpecializedArrayElement) \ |
| 153 V(StoreNamedField) \ | 151 V(StoreNamedField) \ |
| 154 V(StoreNamedGeneric) \ | 152 V(StoreNamedGeneric) \ |
| 155 V(StringCharCodeAt) \ | 153 V(StringCharCodeAt) \ |
| 156 V(StringCharFromCode) \ | 154 V(StringCharFromCode) \ |
| 157 V(StringLength) \ | 155 V(StringLength) \ |
| 158 V(SubI) \ | 156 V(SubI) \ |
| 159 V(TaggedToI) \ | 157 V(TaggedToI) \ |
| (...skipping 1080 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1240 inputs_[1] = key; | 1238 inputs_[1] = key; |
| 1241 } | 1239 } |
| 1242 | 1240 |
| 1243 DECLARE_CONCRETE_INSTRUCTION(LoadKeyedGeneric, "load-keyed-generic") | 1241 DECLARE_CONCRETE_INSTRUCTION(LoadKeyedGeneric, "load-keyed-generic") |
| 1244 | 1242 |
| 1245 LOperand* object() { return inputs_[0]; } | 1243 LOperand* object() { return inputs_[0]; } |
| 1246 LOperand* key() { return inputs_[1]; } | 1244 LOperand* key() { return inputs_[1]; } |
| 1247 }; | 1245 }; |
| 1248 | 1246 |
| 1249 | 1247 |
| 1250 class LLoadGlobalCell: public LTemplateInstruction<1, 0, 0> { | 1248 class LLoadGlobal: public LTemplateInstruction<1, 0, 0> { |
| 1251 public: | 1249 public: |
| 1252 DECLARE_CONCRETE_INSTRUCTION(LoadGlobalCell, "load-global-cell") | 1250 DECLARE_CONCRETE_INSTRUCTION(LoadGlobal, "load-global") |
| 1253 DECLARE_HYDROGEN_ACCESSOR(LoadGlobalCell) | 1251 DECLARE_HYDROGEN_ACCESSOR(LoadGlobal) |
| 1254 }; | 1252 }; |
| 1255 | 1253 |
| 1256 | 1254 |
| 1257 class LLoadGlobalGeneric: public LTemplateInstruction<1, 1, 0> { | 1255 class LStoreGlobal: public LTemplateInstruction<0, 1, 1> { |
| 1258 public: | 1256 public: |
| 1259 explicit LLoadGlobalGeneric(LOperand* global_object) { | 1257 explicit LStoreGlobal(LOperand* value, LOperand* temp) { |
| 1260 inputs_[0] = global_object; | |
| 1261 } | |
| 1262 | |
| 1263 DECLARE_CONCRETE_INSTRUCTION(LoadGlobalGeneric, "load-global-generic") | |
| 1264 DECLARE_HYDROGEN_ACCESSOR(LoadGlobalGeneric) | |
| 1265 | |
| 1266 LOperand* global_object() { return inputs_[0]; } | |
| 1267 Handle<Object> name() const { return hydrogen()->name(); } | |
| 1268 bool for_typeof() const { return hydrogen()->for_typeof(); } | |
| 1269 }; | |
| 1270 | |
| 1271 | |
| 1272 class LStoreGlobalCell: public LTemplateInstruction<0, 1, 1> { | |
| 1273 public: | |
| 1274 explicit LStoreGlobalCell(LOperand* value, LOperand* temp) { | |
| 1275 inputs_[0] = value; | 1258 inputs_[0] = value; |
| 1276 temps_[0] = temp; | 1259 temps_[0] = temp; |
| 1277 } | 1260 } |
| 1278 | 1261 |
| 1279 DECLARE_CONCRETE_INSTRUCTION(StoreGlobalCell, "store-global-cell") | 1262 DECLARE_CONCRETE_INSTRUCTION(StoreGlobal, "store-global") |
| 1280 DECLARE_HYDROGEN_ACCESSOR(StoreGlobalCell) | 1263 DECLARE_HYDROGEN_ACCESSOR(StoreGlobal) |
| 1281 }; | 1264 }; |
| 1282 | 1265 |
| 1283 | 1266 |
| 1284 class LStoreGlobalGeneric: public LTemplateInstruction<0, 2, 0> { | |
| 1285 public: | |
| 1286 explicit LStoreGlobalGeneric(LOperand* global_object, | |
| 1287 LOperand* value) { | |
| 1288 inputs_[0] = global_object; | |
| 1289 inputs_[1] = value; | |
| 1290 } | |
| 1291 | |
| 1292 DECLARE_CONCRETE_INSTRUCTION(StoreGlobalGeneric, "store-global-generic") | |
| 1293 DECLARE_HYDROGEN_ACCESSOR(StoreGlobalGeneric) | |
| 1294 | |
| 1295 LOperand* global_object() { return InputAt(0); } | |
| 1296 Handle<Object> name() const { return hydrogen()->name(); } | |
| 1297 LOperand* value() { return InputAt(1); } | |
| 1298 }; | |
| 1299 | |
| 1300 | |
| 1301 class LLoadContextSlot: public LTemplateInstruction<1, 1, 0> { | 1267 class LLoadContextSlot: public LTemplateInstruction<1, 1, 0> { |
| 1302 public: | 1268 public: |
| 1303 explicit LLoadContextSlot(LOperand* context) { | 1269 explicit LLoadContextSlot(LOperand* context) { |
| 1304 inputs_[0] = context; | 1270 inputs_[0] = context; |
| 1305 } | 1271 } |
| 1306 | 1272 |
| 1307 DECLARE_CONCRETE_INSTRUCTION(LoadContextSlot, "load-context-slot") | 1273 DECLARE_CONCRETE_INSTRUCTION(LoadContextSlot, "load-context-slot") |
| 1308 DECLARE_HYDROGEN_ACCESSOR(LoadContextSlot) | 1274 DECLARE_HYDROGEN_ACCESSOR(LoadContextSlot) |
| 1309 | 1275 |
| 1310 LOperand* context() { return InputAt(0); } | 1276 LOperand* context() { return InputAt(0); } |
| (...skipping 841 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2152 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2118 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 2153 }; | 2119 }; |
| 2154 | 2120 |
| 2155 #undef DECLARE_HYDROGEN_ACCESSOR | 2121 #undef DECLARE_HYDROGEN_ACCESSOR |
| 2156 #undef DECLARE_INSTRUCTION | 2122 #undef DECLARE_INSTRUCTION |
| 2157 #undef DECLARE_CONCRETE_INSTRUCTION | 2123 #undef DECLARE_CONCRETE_INSTRUCTION |
| 2158 | 2124 |
| 2159 } } // namespace v8::int | 2125 } } // namespace v8::int |
| 2160 | 2126 |
| 2161 #endif // V8_X64_LITHIUM_X64_H_ | 2127 #endif // V8_X64_LITHIUM_X64_H_ |
| OLD | NEW |