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

Side by Side Diff: src/hydrogen.cc

Issue 18476004: Turn escape analysis into a proper HPhase. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 5 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 | « no previous file | src/hydrogen-escape-analysis.h » ('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 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 3797 matching lines...) Expand 10 before | Expand all | Expand 10 after
3808 3808
3809 InitializeInferredTypes(); 3809 InitializeInferredTypes();
3810 3810
3811 // Must be performed before canonicalization to ensure that Canonicalize 3811 // Must be performed before canonicalization to ensure that Canonicalize
3812 // will not remove semantically meaningful ToInt32 operations e.g. BIT_OR with 3812 // will not remove semantically meaningful ToInt32 operations e.g. BIT_OR with
3813 // zero. 3813 // zero.
3814 if (FLAG_opt_safe_uint32_operations) ComputeSafeUint32Operations(); 3814 if (FLAG_opt_safe_uint32_operations) ComputeSafeUint32Operations();
3815 3815
3816 if (FLAG_use_canonicalizing) Canonicalize(); 3816 if (FLAG_use_canonicalizing) Canonicalize();
3817 3817
3818 if (FLAG_use_escape_analysis) { 3818 if (FLAG_use_escape_analysis) Run<HEscapeAnalysisPhase>();
3819 HEscapeAnalysis escape_analysis(this);
3820 escape_analysis.Analyze();
3821 }
3822 3819
3823 if (FLAG_use_gvn) Run<HGlobalValueNumberingPhase>(); 3820 if (FLAG_use_gvn) Run<HGlobalValueNumberingPhase>();
3824 3821
3825 if (FLAG_use_range) { 3822 if (FLAG_use_range) {
3826 HRangeAnalysis range_analysis(this); 3823 HRangeAnalysis range_analysis(this);
3827 range_analysis.Analyze(); 3824 range_analysis.Analyze();
3828 } 3825 }
3829 ComputeMinusZeroChecks(); 3826 ComputeMinusZeroChecks();
3830 3827
3831 // Eliminate redundant stack checks on backwards branches. 3828 // Eliminate redundant stack checks on backwards branches.
(...skipping 7412 matching lines...) Expand 10 before | Expand all | Expand 10 after
11244 if (ShouldProduceTraceOutput()) { 11241 if (ShouldProduceTraceOutput()) {
11245 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); 11242 isolate()->GetHTracer()->TraceHydrogen(name(), graph_);
11246 } 11243 }
11247 11244
11248 #ifdef DEBUG 11245 #ifdef DEBUG
11249 graph_->Verify(false); // No full verify. 11246 graph_->Verify(false); // No full verify.
11250 #endif 11247 #endif
11251 } 11248 }
11252 11249
11253 } } // namespace v8::internal 11250 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/hydrogen-escape-analysis.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698