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

Side by Side Diff: src/hydrogen.h

Issue 11783055: Make the array bounds check elimination phase optional (and set the foundation for introducing SSI … (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed review comments. Created 7 years, 11 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
OLDNEW
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
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 ApplyActualValues();
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 586 matching lines...) Expand 10 before | Expand all | Expand 10 after
872 ElementsKind elements_kind, 873 ElementsKind elements_kind,
873 bool is_store); 874 bool is_store);
874 875
875 HInstruction* BuildUncheckedMonomorphicElementAccess( 876 HInstruction* BuildUncheckedMonomorphicElementAccess(
876 HValue* object, 877 HValue* object,
877 HValue* key, 878 HValue* key,
878 HValue* val, 879 HValue* val,
879 HCheckMaps* mapcheck, 880 HCheckMaps* mapcheck,
880 bool is_js_array, 881 bool is_js_array,
881 ElementsKind elements_kind, 882 ElementsKind elements_kind,
882 bool is_store); 883 bool is_store,
884 Representation checked_index_representation = Representation::None());
883 885
884 private: 886 private:
885 HGraphBuilder(); 887 HGraphBuilder();
886 CompilationInfo* info_; 888 CompilationInfo* info_;
887 HGraph* graph_; 889 HGraph* graph_;
888 HBasicBlock* current_block_; 890 HBasicBlock* current_block_;
889 }; 891 };
890 892
891 893
892 class HOptimizedGraphBuilder: public HGraphBuilder, public AstVisitor { 894 class HOptimizedGraphBuilder: public HGraphBuilder, public AstVisitor {
(...skipping 662 matching lines...) Expand 10 before | Expand all | Expand 10 after
1555 const char* filename_; 1557 const char* filename_;
1556 HeapStringAllocator string_allocator_; 1558 HeapStringAllocator string_allocator_;
1557 StringStream trace_; 1559 StringStream trace_;
1558 int indent_; 1560 int indent_;
1559 }; 1561 };
1560 1562
1561 1563
1562 } } // namespace v8::internal 1564 } } // namespace v8::internal
1563 1565
1564 #endif // V8_HYDROGEN_H_ 1566 #endif // V8_HYDROGEN_H_
OLDNEW
« no previous file with comments | « src/code-stubs-hydrogen.cc ('k') | src/hydrogen.cc » ('j') | src/hydrogen.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698