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(LoadGlobal) \ | 121 V(LoadGlobalCell) \ |
| 122 V(LoadGlobalGeneric) \ |
122 V(LoadKeyedFastElement) \ | 123 V(LoadKeyedFastElement) \ |
123 V(LoadKeyedGeneric) \ | 124 V(LoadKeyedGeneric) \ |
124 V(LoadKeyedSpecializedArrayElement) \ | 125 V(LoadKeyedSpecializedArrayElement) \ |
125 V(LoadNamedField) \ | 126 V(LoadNamedField) \ |
126 V(LoadNamedFieldPolymorphic) \ | 127 V(LoadNamedFieldPolymorphic) \ |
127 V(LoadNamedGeneric) \ | 128 V(LoadNamedGeneric) \ |
128 V(LoadFunctionPrototype) \ | 129 V(LoadFunctionPrototype) \ |
129 V(ModI) \ | 130 V(ModI) \ |
130 V(MulI) \ | 131 V(MulI) \ |
131 V(NumberTagD) \ | 132 V(NumberTagD) \ |
(...skipping 1106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1238 inputs_[1] = key; | 1239 inputs_[1] = key; |
1239 } | 1240 } |
1240 | 1241 |
1241 DECLARE_CONCRETE_INSTRUCTION(LoadKeyedGeneric, "load-keyed-generic") | 1242 DECLARE_CONCRETE_INSTRUCTION(LoadKeyedGeneric, "load-keyed-generic") |
1242 | 1243 |
1243 LOperand* object() { return inputs_[0]; } | 1244 LOperand* object() { return inputs_[0]; } |
1244 LOperand* key() { return inputs_[1]; } | 1245 LOperand* key() { return inputs_[1]; } |
1245 }; | 1246 }; |
1246 | 1247 |
1247 | 1248 |
1248 class LLoadGlobal: public LTemplateInstruction<1, 0, 0> { | 1249 class LLoadGlobalCell: public LTemplateInstruction<1, 0, 0> { |
1249 public: | 1250 public: |
1250 DECLARE_CONCRETE_INSTRUCTION(LoadGlobal, "load-global") | 1251 DECLARE_CONCRETE_INSTRUCTION(LoadGlobalCell, "load-global-cell") |
1251 DECLARE_HYDROGEN_ACCESSOR(LoadGlobal) | 1252 DECLARE_HYDROGEN_ACCESSOR(LoadGlobalCell) |
| 1253 }; |
| 1254 |
| 1255 |
| 1256 class LLoadGlobalGeneric: public LTemplateInstruction<1, 1, 0> { |
| 1257 public: |
| 1258 explicit LLoadGlobalGeneric(LOperand* global_object) { |
| 1259 inputs_[0] = global_object; |
| 1260 } |
| 1261 |
| 1262 DECLARE_CONCRETE_INSTRUCTION(LoadGlobalGeneric, "load-global-generic") |
| 1263 DECLARE_HYDROGEN_ACCESSOR(LoadGlobalGeneric) |
| 1264 |
| 1265 LOperand* global_object() { return inputs_[0]; } |
| 1266 Handle<Object> name() const { return hydrogen()->name(); } |
| 1267 bool for_typeof() const { return hydrogen()->for_typeof(); } |
1252 }; | 1268 }; |
1253 | 1269 |
1254 | 1270 |
1255 class LStoreGlobal: public LTemplateInstruction<0, 1, 1> { | 1271 class LStoreGlobal: public LTemplateInstruction<0, 1, 1> { |
1256 public: | 1272 public: |
1257 explicit LStoreGlobal(LOperand* value, LOperand* temp) { | 1273 explicit LStoreGlobal(LOperand* value, LOperand* temp) { |
1258 inputs_[0] = value; | 1274 inputs_[0] = value; |
1259 temps_[0] = temp; | 1275 temps_[0] = temp; |
1260 } | 1276 } |
1261 | 1277 |
(...skipping 856 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2118 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2134 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2119 }; | 2135 }; |
2120 | 2136 |
2121 #undef DECLARE_HYDROGEN_ACCESSOR | 2137 #undef DECLARE_HYDROGEN_ACCESSOR |
2122 #undef DECLARE_INSTRUCTION | 2138 #undef DECLARE_INSTRUCTION |
2123 #undef DECLARE_CONCRETE_INSTRUCTION | 2139 #undef DECLARE_CONCRETE_INSTRUCTION |
2124 | 2140 |
2125 } } // namespace v8::int | 2141 } } // namespace v8::int |
2126 | 2142 |
2127 #endif // V8_X64_LITHIUM_X64_H_ | 2143 #endif // V8_X64_LITHIUM_X64_H_ |
OLD | NEW |