OLD | NEW |
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 Loading... |
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 12873 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
13029 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); | 13028 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); |
13030 } | 13029 } |
13031 | 13030 |
13032 #ifdef DEBUG | 13031 #ifdef DEBUG |
13033 graph_->Verify(false); // No full verify. | 13032 graph_->Verify(false); // No full verify. |
13034 #endif | 13033 #endif |
13035 } | 13034 } |
13036 | 13035 |
13037 } // namespace internal | 13036 } // namespace internal |
13038 } // namespace v8 | 13037 } // namespace v8 |
OLD | NEW |