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

Unified Diff: vm/compiler.cc

Issue 10568007: Fix bailout from the optimizing-mode compiler and put SSA construction under a flag. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | vm/flow_graph_builder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vm/compiler.cc
===================================================================
--- vm/compiler.cc (revision 8766)
+++ vm/compiler.cc (working copy)
@@ -333,6 +333,12 @@
#endif
if (use_new_compiler) {
is_compiled = CompileWithNewCompiler(parsed_function, optimized);
+ if (!is_compiled && optimized) {
+ // When bailing out from the optimizing compiler, mark function as
+ // non-optimizable and return.
+ parsed_function.function().set_is_optimizable(false);
+ return;
+ }
}
if (!is_compiled) {
« no previous file with comments | « no previous file | vm/flow_graph_builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698