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 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
266 bool ProcessArgumentsObject(); | 266 bool ProcessArgumentsObject(); |
267 void EliminateRedundantPhis(); | 267 void EliminateRedundantPhis(); |
268 void EliminateUnreachablePhis(); | 268 void EliminateUnreachablePhis(); |
269 void Canonicalize(); | 269 void Canonicalize(); |
270 void OrderBlocks(); | 270 void OrderBlocks(); |
271 void AssignDominators(); | 271 void AssignDominators(); |
272 void ReplaceCheckedValues(); | 272 void ReplaceCheckedValues(); |
273 void EliminateRedundantBoundsChecks(); | 273 void EliminateRedundantBoundsChecks(); |
274 void DehoistSimpleArrayIndexComputations(); | 274 void DehoistSimpleArrayIndexComputations(); |
275 void DeadCodeElimination(); | 275 void DeadCodeElimination(); |
| 276 void RestoreActualValues(); |
276 void PropagateDeoptimizingMark(); | 277 void PropagateDeoptimizingMark(); |
277 void EliminateUnusedInstructions(); | 278 void EliminateUnusedInstructions(); |
278 | 279 |
279 // Returns false if there are phi-uses of the arguments-object | 280 // Returns false if there are phi-uses of the arguments-object |
280 // which are not supported by the optimizing compiler. | 281 // which are not supported by the optimizing compiler. |
281 bool CheckArgumentsPhiUses(); | 282 bool CheckArgumentsPhiUses(); |
282 | 283 |
283 // Returns false if there are phi-uses of an uninitialized const | 284 // Returns false if there are phi-uses of an uninitialized const |
284 // which are not supported by the optimizing compiler. | 285 // which are not supported by the optimizing compiler. |
285 bool CheckConstPhiUses(); | 286 bool CheckConstPhiUses(); |
(...skipping 604 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
890 ElementsKind elements_kind, | 891 ElementsKind elements_kind, |
891 bool is_store); | 892 bool is_store); |
892 | 893 |
893 HInstruction* BuildUncheckedMonomorphicElementAccess( | 894 HInstruction* BuildUncheckedMonomorphicElementAccess( |
894 HValue* object, | 895 HValue* object, |
895 HValue* key, | 896 HValue* key, |
896 HValue* val, | 897 HValue* val, |
897 HCheckMaps* mapcheck, | 898 HCheckMaps* mapcheck, |
898 bool is_js_array, | 899 bool is_js_array, |
899 ElementsKind elements_kind, | 900 ElementsKind elements_kind, |
900 bool is_store); | 901 bool is_store, |
| 902 Representation checked_index_representation = Representation::None()); |
901 | 903 |
902 private: | 904 private: |
903 HGraphBuilder(); | 905 HGraphBuilder(); |
904 CompilationInfo* info_; | 906 CompilationInfo* info_; |
905 HGraph* graph_; | 907 HGraph* graph_; |
906 HBasicBlock* current_block_; | 908 HBasicBlock* current_block_; |
907 }; | 909 }; |
908 | 910 |
909 | 911 |
910 class HOptimizedGraphBuilder: public HGraphBuilder, public AstVisitor { | 912 class HOptimizedGraphBuilder: public HGraphBuilder, public AstVisitor { |
(...skipping 664 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1575 const char* filename_; | 1577 const char* filename_; |
1576 HeapStringAllocator string_allocator_; | 1578 HeapStringAllocator string_allocator_; |
1577 StringStream trace_; | 1579 StringStream trace_; |
1578 int indent_; | 1580 int indent_; |
1579 }; | 1581 }; |
1580 | 1582 |
1581 | 1583 |
1582 } } // namespace v8::internal | 1584 } } // namespace v8::internal |
1583 | 1585 |
1584 #endif // V8_HYDROGEN_H_ | 1586 #endif // V8_HYDROGEN_H_ |
OLD | NEW |