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

Side by Side Diff: src/hydrogen.cc

Issue 18034003: Add templatized Run() method for Hydrogen phases. (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 | « src/hydrogen.h ('k') | no next file » | 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 3996 matching lines...) Expand 10 before | Expand all | Expand 10 after
4007 4007
4008 InitializeInferredTypes(); 4008 InitializeInferredTypes();
4009 4009
4010 // Must be performed before canonicalization to ensure that Canonicalize 4010 // Must be performed before canonicalization to ensure that Canonicalize
4011 // will not remove semantically meaningful ToInt32 operations e.g. BIT_OR with 4011 // will not remove semantically meaningful ToInt32 operations e.g. BIT_OR with
4012 // zero. 4012 // zero.
4013 if (FLAG_opt_safe_uint32_operations) ComputeSafeUint32Operations(); 4013 if (FLAG_opt_safe_uint32_operations) ComputeSafeUint32Operations();
4014 4014
4015 if (FLAG_use_canonicalizing) Canonicalize(); 4015 if (FLAG_use_canonicalizing) Canonicalize();
4016 4016
4017 if (FLAG_use_gvn) { 4017 if (FLAG_use_gvn) Run<HGlobalValueNumberingPhase>();
4018 HGlobalValueNumberingPhase phase(this);
4019 phase.Run();
4020 }
4021 4018
4022 if (FLAG_use_range) { 4019 if (FLAG_use_range) {
4023 HRangeAnalysis rangeAnalysis(this); 4020 HRangeAnalysis rangeAnalysis(this);
4024 rangeAnalysis.Analyze(); 4021 rangeAnalysis.Analyze();
4025 } 4022 }
4026 ComputeMinusZeroChecks(); 4023 ComputeMinusZeroChecks();
4027 4024
4028 // Eliminate redundant stack checks on backwards branches. 4025 // Eliminate redundant stack checks on backwards branches.
4029 HStackCheckEliminator sce(this); 4026 HStackCheckEliminator sce(this);
4030 sce.Process(); 4027 sce.Process();
(...skipping 7511 matching lines...) Expand 10 before | Expand all | Expand 10 after
11542 if (ShouldProduceTraceOutput()) { 11539 if (ShouldProduceTraceOutput()) {
11543 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); 11540 isolate()->GetHTracer()->TraceHydrogen(name(), graph_);
11544 } 11541 }
11545 11542
11546 #ifdef DEBUG 11543 #ifdef DEBUG
11547 graph_->Verify(false); // No full verify. 11544 graph_->Verify(false); // No full verify.
11548 #endif 11545 #endif
11549 } 11546 }
11550 11547
11551 } } // namespace v8::internal 11548 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/hydrogen.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698