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

Unified Diff: runtime/vm/code_generator.cc

Issue 8343024: Wrong condition caused repeated deoptimizations and performance degradation especially on Meteor. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 9 years, 2 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/code_generator.cc
===================================================================
--- runtime/vm/code_generator.cc (revision 545)
+++ runtime/vm/code_generator.cc (working copy)
@@ -919,7 +919,7 @@
// We have to skip the following otherwise the compiler will complain
// when it attempts to install unoptimized code into a function that
// was already deoptimized.
ngeoffray 2011/10/19 08:30:51 Shouldn't you also change the comment?
srdjan 2011/10/19 08:43:25 The comment is correct, the code was wrong: now we
ngeoffray 2011/10/19 08:49:40 I see, thanks. Maybe a 'If the method is deoptimiz
- if (!Code::Handle(function.code()).is_optimized()) {
+ if (Code::Handle(function.code()).is_optimized()) {
// Get unoptimized code. Compilation restores (reenables) the entry of
// unoptimized code.
Compiler::CompileFunction(function);
« 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