OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
263 void EliminateRedundantPhis(); | 263 void EliminateRedundantPhis(); |
264 void EliminateUnreachablePhis(); | 264 void EliminateUnreachablePhis(); |
265 void Canonicalize(); | 265 void Canonicalize(); |
266 void OrderBlocks(); | 266 void OrderBlocks(); |
267 void AssignDominators(); | 267 void AssignDominators(); |
268 void ReplaceCheckedValues(); | 268 void ReplaceCheckedValues(); |
269 void EliminateRedundantBoundsChecks(); | 269 void EliminateRedundantBoundsChecks(); |
270 void DehoistSimpleArrayIndexComputations(); | 270 void DehoistSimpleArrayIndexComputations(); |
271 void DeadCodeElimination(); | 271 void DeadCodeElimination(); |
272 void PropagateDeoptimizingMark(); | 272 void PropagateDeoptimizingMark(); |
| 273 void EliminateUnusedInstructions(); |
273 | 274 |
274 // Returns false if there are phi-uses of the arguments-object | 275 // Returns false if there are phi-uses of the arguments-object |
275 // which are not supported by the optimizing compiler. | 276 // which are not supported by the optimizing compiler. |
276 bool CheckArgumentsPhiUses(); | 277 bool CheckArgumentsPhiUses(); |
277 | 278 |
278 // Returns false if there are phi-uses of an uninitialized const | 279 // Returns false if there are phi-uses of an uninitialized const |
279 // which are not supported by the optimizing compiler. | 280 // which are not supported by the optimizing compiler. |
280 bool CheckConstPhiUses(); | 281 bool CheckConstPhiUses(); |
281 | 282 |
282 void CollectPhis(); | 283 void CollectPhis(); |
(...skipping 930 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1213 | 1214 |
1214 HInstruction* BuildThisFunction(); | 1215 HInstruction* BuildThisFunction(); |
1215 | 1216 |
1216 void AddCheckPrototypeMaps(Handle<JSObject> holder, | 1217 void AddCheckPrototypeMaps(Handle<JSObject> holder, |
1217 Handle<Map> receiver_map); | 1218 Handle<Map> receiver_map); |
1218 | 1219 |
1219 void AddCheckConstantFunction(Handle<JSObject> holder, | 1220 void AddCheckConstantFunction(Handle<JSObject> holder, |
1220 HValue* receiver, | 1221 HValue* receiver, |
1221 Handle<Map> receiver_map); | 1222 Handle<Map> receiver_map); |
1222 | 1223 |
| 1224 bool MatchRotateRight(HValue* left, |
| 1225 HValue* right, |
| 1226 HValue** operand, |
| 1227 HValue** shift_amount); |
| 1228 |
1223 Zone* zone() const { return zone_; } | 1229 Zone* zone() const { return zone_; } |
1224 | 1230 |
1225 // The translation state of the currently-being-translated function. | 1231 // The translation state of the currently-being-translated function. |
1226 FunctionState* function_state_; | 1232 FunctionState* function_state_; |
1227 | 1233 |
1228 // The base of the function state stack. | 1234 // The base of the function state stack. |
1229 FunctionState initial_function_state_; | 1235 FunctionState initial_function_state_; |
1230 | 1236 |
1231 // Expression context of the currently visited subexpression. NULL when | 1237 // Expression context of the currently visited subexpression. NULL when |
1232 // visiting statements. | 1238 // visiting statements. |
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1490 const char* filename_; | 1496 const char* filename_; |
1491 HeapStringAllocator string_allocator_; | 1497 HeapStringAllocator string_allocator_; |
1492 StringStream trace_; | 1498 StringStream trace_; |
1493 int indent_; | 1499 int indent_; |
1494 }; | 1500 }; |
1495 | 1501 |
1496 | 1502 |
1497 } } // namespace v8::internal | 1503 } } // namespace v8::internal |
1498 | 1504 |
1499 #endif // V8_HYDROGEN_H_ | 1505 #endif // V8_HYDROGEN_H_ |
OLD | NEW |