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

Unified Diff: runtime/vm/intermediate_language_ia32.cc

Issue 11780005: Allow optimized code when debugger is active (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 11 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 | « runtime/vm/flow_graph_compiler_x64.h ('k') | runtime/vm/intermediate_language_x64.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/intermediate_language_ia32.cc
===================================================================
--- runtime/vm/intermediate_language_ia32.cc (revision 16810)
+++ runtime/vm/intermediate_language_ia32.cc (working copy)
@@ -100,7 +100,7 @@
} else {
__ LoadObject(func_reg, function);
__ incl(FieldAddress(func_reg, Function::usage_counter_offset()));
- if (FlowGraphCompiler::CanOptimize() &&
+ if (compiler->CanOptimizeFunction() &&
compiler->parsed_function().function().is_optimizable()) {
// Do not optimize if usage count must be reported.
__ cmpl(FieldAddress(func_reg, Function::usage_counter_offset()),
« no previous file with comments | « runtime/vm/flow_graph_compiler_x64.h ('k') | runtime/vm/intermediate_language_x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698