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

Unified Diff: runtime/vm/flow_graph_inliner.cc

Issue 286363005: Fixed broken pub build by temporarily disabling inlining in checked mode, (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 7 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/flow_graph_inliner.cc
===================================================================
--- runtime/vm/flow_graph_inliner.cc (revision 36517)
+++ runtime/vm/flow_graph_inliner.cc (working copy)
@@ -51,11 +51,12 @@
"Inline recursive calls.");
DEFINE_FLAG(bool, print_inlining_tree, false, "Print inlining tree");
+DECLARE_FLAG(bool, compiler_stats);
+DECLARE_FLAG(bool, enable_type_checks);
+DECLARE_FLAG(int, deoptimization_counter_threshold);
DECLARE_FLAG(bool, print_flow_graph);
DECLARE_FLAG(bool, print_flow_graph_optimized);
-DECLARE_FLAG(int, deoptimization_counter_threshold);
DECLARE_FLAG(bool, verify_compiler);
-DECLARE_FLAG(bool, compiler_stats);
#define TRACE_INLINING(statement) \
do { \
@@ -1666,6 +1667,11 @@
return;
}
+ if (FLAG_enable_type_checks) {
+ // TODO(srdjan): Fix out-of-memory crash in checked mode.
+ return;
+ }
+
TRACE_INLINING(OS::Print("Inlining calls in %s\n", top.ToCString()));
if (FLAG_trace_inlining &&
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698