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(LoadNamedField) \ | 124 V(LoadNamedField) \ |
126 V(LoadNamedGeneric) \ | 125 V(LoadNamedGeneric) \ |
127 V(LoadFunctionPrototype) \ | 126 V(LoadFunctionPrototype) \ |
128 V(LoadPixelArrayElement) \ | 127 V(LoadPixelArrayElement) \ |
129 V(ModI) \ | 128 V(ModI) \ |
130 V(MulI) \ | 129 V(MulI) \ |
131 V(NumberTagD) \ | 130 V(NumberTagD) \ |
132 V(NumberTagI) \ | 131 V(NumberTagI) \ |
(...skipping 1087 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1220 inputs_[1] = key; | 1219 inputs_[1] = key; |
1221 } | 1220 } |
1222 | 1221 |
1223 DECLARE_CONCRETE_INSTRUCTION(LoadKeyedGeneric, "load-keyed-generic") | 1222 DECLARE_CONCRETE_INSTRUCTION(LoadKeyedGeneric, "load-keyed-generic") |
1224 | 1223 |
1225 LOperand* object() { return inputs_[0]; } | 1224 LOperand* object() { return inputs_[0]; } |
1226 LOperand* key() { return inputs_[1]; } | 1225 LOperand* key() { return inputs_[1]; } |
1227 }; | 1226 }; |
1228 | 1227 |
1229 | 1228 |
1230 class LLoadGlobalCell: public LTemplateInstruction<1, 0, 0> { | 1229 class LLoadGlobal: public LTemplateInstruction<1, 0, 0> { |
1231 public: | 1230 public: |
1232 DECLARE_CONCRETE_INSTRUCTION(LoadGlobalCell, "load-global-cell") | 1231 DECLARE_CONCRETE_INSTRUCTION(LoadGlobal, "load-global") |
1233 DECLARE_HYDROGEN_ACCESSOR(LoadGlobalCell) | 1232 DECLARE_HYDROGEN_ACCESSOR(LoadGlobal) |
1234 }; | |
1235 | |
1236 | |
1237 class LLoadGlobalGeneric: public LTemplateInstruction<1, 1, 0> { | |
1238 public: | |
1239 explicit LLoadGlobalGeneric(LOperand* global_object) { | |
1240 inputs_[0] = global_object; | |
1241 } | |
1242 | |
1243 DECLARE_CONCRETE_INSTRUCTION(LoadGlobalGeneric, "load-global-generic") | |
1244 DECLARE_HYDROGEN_ACCESSOR(LoadGlobalGeneric) | |
1245 | |
1246 LOperand* global_object() { return inputs_[0]; } | |
1247 Handle<Object> name() const { return hydrogen()->name(); } | |
1248 bool for_typeof() const { return hydrogen()->for_typeof(); } | |
1249 }; | 1233 }; |
1250 | 1234 |
1251 | 1235 |
1252 class LStoreGlobal: public LTemplateInstruction<0, 1, 1> { | 1236 class LStoreGlobal: public LTemplateInstruction<0, 1, 1> { |
1253 public: | 1237 public: |
1254 explicit LStoreGlobal(LOperand* value, LOperand* temp) { | 1238 explicit LStoreGlobal(LOperand* value, LOperand* temp) { |
1255 inputs_[0] = value; | 1239 inputs_[0] = value; |
1256 temps_[0] = temp; | 1240 temps_[0] = temp; |
1257 } | 1241 } |
1258 | 1242 |
(...skipping 836 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2095 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2079 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2096 }; | 2080 }; |
2097 | 2081 |
2098 #undef DECLARE_HYDROGEN_ACCESSOR | 2082 #undef DECLARE_HYDROGEN_ACCESSOR |
2099 #undef DECLARE_INSTRUCTION | 2083 #undef DECLARE_INSTRUCTION |
2100 #undef DECLARE_CONCRETE_INSTRUCTION | 2084 #undef DECLARE_CONCRETE_INSTRUCTION |
2101 | 2085 |
2102 } } // namespace v8::int | 2086 } } // namespace v8::int |
2103 | 2087 |
2104 #endif // V8_X64_LITHIUM_X64_H_ | 2088 #endif // V8_X64_LITHIUM_X64_H_ |
OLD | NEW |