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

Side by Side Diff: src/hydrogen.cc

Issue 7634022: Insert representation changes before doing range analysis. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 9 years, 4 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-instructions.h » ('j') | src/hydrogen-instructions.cc » ('J')
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 2307 matching lines...) Expand 10 before | Expand all | Expand 10 after
2318 } 2318 }
2319 if (FLAG_eliminate_dead_phis) graph()->EliminateUnreachablePhis(); 2319 if (FLAG_eliminate_dead_phis) graph()->EliminateUnreachablePhis();
2320 if (!graph()->CollectPhis()) { 2320 if (!graph()->CollectPhis()) {
2321 Bailout("Unsupported phi use of uninitialized constant"); 2321 Bailout("Unsupported phi use of uninitialized constant");
2322 return NULL; 2322 return NULL;
2323 } 2323 }
2324 2324
2325 HInferRepresentation rep(graph()); 2325 HInferRepresentation rep(graph());
2326 rep.Analyze(); 2326 rep.Analyze();
2327 2327
2328 graph()->InsertRepresentationChanges();
Vyacheslav Egorov (Chromium) 2011/08/22 12:53:31 InsertRepresentationChange depends on kDeoptimizeO
fschneider 2011/08/23 07:36:10 Done.
2329
2328 if (FLAG_use_range) { 2330 if (FLAG_use_range) {
2329 HRangeAnalysis rangeAnalysis(graph()); 2331 HRangeAnalysis rangeAnalysis(graph());
2330 rangeAnalysis.Analyze(); 2332 rangeAnalysis.Analyze();
2331 } 2333 }
2332
2333 graph()->InitializeInferredTypes(); 2334 graph()->InitializeInferredTypes();
2334 graph()->Canonicalize(); 2335 graph()->Canonicalize();
2335 graph()->MarkDeoptimizeOnUndefined(); 2336 graph()->MarkDeoptimizeOnUndefined();
2336 graph()->InsertRepresentationChanges();
2337 graph()->ComputeMinusZeroChecks(); 2337 graph()->ComputeMinusZeroChecks();
2338 2338
2339 // Eliminate redundant stack checks on backwards branches. 2339 // Eliminate redundant stack checks on backwards branches.
2340 HStackCheckEliminator sce(graph()); 2340 HStackCheckEliminator sce(graph());
2341 sce.Process(); 2341 sce.Process();
2342 2342
2343 // Perform common subexpression elimination and loop-invariant code motion. 2343 // Perform common subexpression elimination and loop-invariant code motion.
2344 if (FLAG_use_gvn) { 2344 if (FLAG_use_gvn) {
2345 HPhase phase("Global value numbering", graph()); 2345 HPhase phase("Global value numbering", graph());
2346 HGlobalValueNumberer gvn(graph(), info()); 2346 HGlobalValueNumberer gvn(graph(), info());
(...skipping 4402 matching lines...) Expand 10 before | Expand all | Expand 10 after
6749 } 6749 }
6750 } 6750 }
6751 6751
6752 #ifdef DEBUG 6752 #ifdef DEBUG
6753 if (graph_ != NULL) graph_->Verify(); 6753 if (graph_ != NULL) graph_->Verify();
6754 if (allocator_ != NULL) allocator_->Verify(); 6754 if (allocator_ != NULL) allocator_->Verify();
6755 #endif 6755 #endif
6756 } 6756 }
6757 6757
6758 } } // namespace v8::internal 6758 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/hydrogen-instructions.h » ('j') | src/hydrogen-instructions.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698