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

Unified Diff: runtime/vm/compiler.cc

Issue 11293038: Fix issue 6288, move DeoptimizeAll to top level parsing. Allow optimizing compiler to optimize even… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 1 month 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 | runtime/vm/dart_api_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/compiler.cc
===================================================================
--- runtime/vm/compiler.cc (revision 14410)
+++ runtime/vm/compiler.cc (working copy)
@@ -132,10 +132,7 @@
&CompilerStats::graphbuilder_timer,
isolate);
if (optimized) {
- // Transition to optimized code only from unoptimized code ...
- // for now.
ASSERT(parsed_function.function().HasCode());
- ASSERT(!parsed_function.function().HasOptimizedCode());
// Extract type feedback before the graph is built, as the graph
// builder uses it to attach it to nodes.
// Do not use type feedback to optimize a function that was
@@ -280,8 +277,8 @@
graph_compiler.FinalizeExceptionHandlers(code);
graph_compiler.FinalizeComments(code);
if (optimized) {
+ CodePatcher::PatchEntry(Code::Handle(function.CurrentCode()));
function.SetCode(code);
- CodePatcher::PatchEntry(Code::Handle(function.unoptimized_code()));
if (FLAG_trace_compiler) {
OS::Print("--> patching entry %#"Px"\n",
Code::Handle(function.unoptimized_code()).EntryPoint());
« no previous file with comments | « no previous file | runtime/vm/dart_api_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698