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

Side by Side Diff: src/crankshaft/hydrogen.cc

Issue 2577063002: Reland of "Store SharedFunctionInfos of a Script in a FixedArray indexed by their ID" (Closed)
Patch Set: fix Created 4 years 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
« no previous file with comments | « src/compiler.cc ('k') | src/debug/debug.cc » ('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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/crankshaft/hydrogen.h" 5 #include "src/crankshaft/hydrogen.h"
6 6
7 #include <memory> 7 #include <memory>
8 #include <sstream> 8 #include <sstream>
9 9
10 #include "src/allocation-site-scopes.h" 10 #include "src/allocation-site-scopes.h"
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 timer.Start(); 135 timer.Start();
136 } 136 }
137 if (!Compiler::EnsureDeoptimizationSupport(info())) { 137 if (!Compiler::EnsureDeoptimizationSupport(info())) {
138 return FAILED; 138 return FAILED;
139 } 139 }
140 if (FLAG_hydrogen_stats) { 140 if (FLAG_hydrogen_stats) {
141 isolate()->GetHStatistics()->IncrementFullCodeGen(timer.Elapsed()); 141 isolate()->GetHStatistics()->IncrementFullCodeGen(timer.Elapsed());
142 } 142 }
143 } 143 }
144 DCHECK(info()->shared_info()->has_deoptimization_support()); 144 DCHECK(info()->shared_info()->has_deoptimization_support());
145 DCHECK(!info()->shared_info()->never_compiled());
146 145
147 // Check the whitelist for Crankshaft. 146 // Check the whitelist for Crankshaft.
148 if (!info()->shared_info()->PassesFilter(FLAG_hydrogen_filter)) { 147 if (!info()->shared_info()->PassesFilter(FLAG_hydrogen_filter)) {
149 return AbortOptimization(kHydrogenFilter); 148 return AbortOptimization(kHydrogenFilter);
150 } 149 }
151 150
152 Scope* scope = info()->scope(); 151 Scope* scope = info()->scope();
153 if (LUnallocated::TooManyParameters(scope->num_parameters())) { 152 if (LUnallocated::TooManyParameters(scope->num_parameters())) {
154 // Crankshaft would require too many Lithium operands. 153 // Crankshaft would require too many Lithium operands.
155 return AbortOptimization(kTooManyParameters); 154 return AbortOptimization(kTooManyParameters);
(...skipping 12883 matching lines...) Expand 10 before | Expand all | Expand 10 after
13039 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); 13038 isolate()->GetHTracer()->TraceHydrogen(name(), graph_);
13040 } 13039 }
13041 13040
13042 #ifdef DEBUG 13041 #ifdef DEBUG
13043 graph_->Verify(false); // No full verify. 13042 graph_->Verify(false); // No full verify.
13044 #endif 13043 #endif
13045 } 13044 }
13046 13045
13047 } // namespace internal 13046 } // namespace internal
13048 } // namespace v8 13047 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler.cc ('k') | src/debug/debug.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698