Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(206)

Side by Side Diff: src/arm/lithium-arm.h

Issue 6691054: [Arguments] Merge (7442,7496] from bleeding_edge. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/arguments
Patch Set: Created 9 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/arm/full-codegen-arm.cc ('k') | src/arm/lithium-arm.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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) \
133 V(NumberUntagD) \ 134 V(NumberUntagD) \
134 V(ObjectLiteral) \ 135 V(ObjectLiteral) \
135 V(OsrEntry) \ 136 V(OsrEntry) \
136 V(OuterContext) \ 137 V(OuterContext) \
137 V(Parameter) \ 138 V(Parameter) \
138 V(Power) \ 139 V(Power) \
139 V(PushArgument) \ 140 V(PushArgument) \
140 V(RegExpLiteral) \ 141 V(RegExpLiteral) \
141 V(Return) \ 142 V(Return) \
142 V(ShiftI) \ 143 V(ShiftI) \
143 V(SmiTag) \ 144 V(SmiTag) \
144 V(SmiUntag) \ 145 V(SmiUntag) \
145 V(StackCheck) \ 146 V(StackCheck) \
146 V(StoreContextSlot) \ 147 V(StoreContextSlot) \
147 V(StoreGlobal) \ 148 V(StoreGlobalCell) \
149 V(StoreGlobalGeneric) \
148 V(StoreKeyedFastElement) \ 150 V(StoreKeyedFastElement) \
149 V(StoreKeyedGeneric) \ 151 V(StoreKeyedGeneric) \
150 V(StoreKeyedSpecializedArrayElement) \ 152 V(StoreKeyedSpecializedArrayElement) \
151 V(StoreNamedField) \ 153 V(StoreNamedField) \
152 V(StoreNamedGeneric) \ 154 V(StoreNamedGeneric) \
153 V(StringCharCodeAt) \ 155 V(StringCharCodeAt) \
154 V(StringCharFromCode) \ 156 V(StringCharFromCode) \
155 V(StringLength) \ 157 V(StringLength) \
156 V(SubI) \ 158 V(SubI) \
157 V(TaggedToI) \ 159 V(TaggedToI) \
(...skipping 1094 matching lines...) Expand 10 before | Expand all | Expand 10 after
1252 inputs_[1] = key; 1254 inputs_[1] = key;
1253 } 1255 }
1254 1256
1255 DECLARE_CONCRETE_INSTRUCTION(LoadKeyedGeneric, "load-keyed-generic") 1257 DECLARE_CONCRETE_INSTRUCTION(LoadKeyedGeneric, "load-keyed-generic")
1256 1258
1257 LOperand* object() { return inputs_[0]; } 1259 LOperand* object() { return inputs_[0]; }
1258 LOperand* key() { return inputs_[1]; } 1260 LOperand* key() { return inputs_[1]; }
1259 }; 1261 };
1260 1262
1261 1263
1262 class LLoadGlobal: public LTemplateInstruction<1, 0, 0> { 1264 class LLoadGlobalCell: public LTemplateInstruction<1, 0, 0> {
1263 public: 1265 public:
1264 DECLARE_CONCRETE_INSTRUCTION(LoadGlobal, "load-global") 1266 DECLARE_CONCRETE_INSTRUCTION(LoadGlobalCell, "load-global-cell")
1265 DECLARE_HYDROGEN_ACCESSOR(LoadGlobal) 1267 DECLARE_HYDROGEN_ACCESSOR(LoadGlobalCell)
1266 }; 1268 };
1267 1269
1268 1270
1269 class LStoreGlobal: public LTemplateInstruction<0, 1, 1> { 1271 class LLoadGlobalGeneric: public LTemplateInstruction<1, 1, 0> {
1270 public: 1272 public:
1271 LStoreGlobal(LOperand* value, LOperand* temp) { 1273 explicit LLoadGlobalGeneric(LOperand* global_object) {
1274 inputs_[0] = global_object;
1275 }
1276
1277 DECLARE_CONCRETE_INSTRUCTION(LoadGlobalGeneric, "load-global-generic")
1278 DECLARE_HYDROGEN_ACCESSOR(LoadGlobalGeneric)
1279
1280 LOperand* global_object() { return inputs_[0]; }
1281 Handle<Object> name() const { return hydrogen()->name(); }
1282 bool for_typeof() const { return hydrogen()->for_typeof(); }
1283 };
1284
1285
1286 class LStoreGlobalCell: public LTemplateInstruction<0, 1, 1> {
1287 public:
1288 LStoreGlobalCell(LOperand* value, LOperand* temp) {
1272 inputs_[0] = value; 1289 inputs_[0] = value;
1273 temps_[0] = temp; 1290 temps_[0] = temp;
1274 } 1291 }
1275 1292
1276 DECLARE_CONCRETE_INSTRUCTION(StoreGlobal, "store-global") 1293 DECLARE_CONCRETE_INSTRUCTION(StoreGlobalCell, "store-global-cell")
1277 DECLARE_HYDROGEN_ACCESSOR(StoreGlobal) 1294 DECLARE_HYDROGEN_ACCESSOR(StoreGlobalCell)
1278 }; 1295 };
1279 1296
1280 1297
1298 class LStoreGlobalGeneric: public LTemplateInstruction<0, 2, 0> {
1299 public:
1300 explicit LStoreGlobalGeneric(LOperand* global_object,
1301 LOperand* value) {
1302 inputs_[0] = global_object;
1303 inputs_[1] = value;
1304 }
1305
1306 DECLARE_CONCRETE_INSTRUCTION(StoreGlobalGeneric, "store-global-generic")
1307 DECLARE_HYDROGEN_ACCESSOR(StoreGlobalGeneric)
1308
1309 LOperand* global_object() { return InputAt(0); }
1310 Handle<Object> name() const { return hydrogen()->name(); }
1311 LOperand* value() { return InputAt(1); }
1312 };
1313
1314
1281 class LLoadContextSlot: public LTemplateInstruction<1, 1, 0> { 1315 class LLoadContextSlot: public LTemplateInstruction<1, 1, 0> {
1282 public: 1316 public:
1283 explicit LLoadContextSlot(LOperand* context) { 1317 explicit LLoadContextSlot(LOperand* context) {
1284 inputs_[0] = context; 1318 inputs_[0] = context;
1285 } 1319 }
1286 1320
1287 DECLARE_CONCRETE_INSTRUCTION(LoadContextSlot, "load-context-slot") 1321 DECLARE_CONCRETE_INSTRUCTION(LoadContextSlot, "load-context-slot")
1288 DECLARE_HYDROGEN_ACCESSOR(LoadContextSlot) 1322 DECLARE_HYDROGEN_ACCESSOR(LoadContextSlot)
1289 1323
1290 LOperand* context() { return InputAt(0); } 1324 LOperand* context() { return InputAt(0); }
(...skipping 845 matching lines...) Expand 10 before | Expand all | Expand 10 after
2136 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2170 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2137 }; 2171 };
2138 2172
2139 #undef DECLARE_HYDROGEN_ACCESSOR 2173 #undef DECLARE_HYDROGEN_ACCESSOR
2140 #undef DECLARE_INSTRUCTION 2174 #undef DECLARE_INSTRUCTION
2141 #undef DECLARE_CONCRETE_INSTRUCTION 2175 #undef DECLARE_CONCRETE_INSTRUCTION
2142 2176
2143 } } // namespace v8::internal 2177 } } // namespace v8::internal
2144 2178
2145 #endif // V8_ARM_LITHIUM_ARM_H_ 2179 #endif // V8_ARM_LITHIUM_ARM_H_
OLDNEW
« no previous file with comments | « src/arm/full-codegen-arm.cc ('k') | src/arm/lithium-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698