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

Issue 8343024: Wrong condition caused repeated deoptimizations and performance degradation especially on Meteor. (Closed)

Created:
9 years, 2 months ago by srdjan
Modified:
9 years, 2 months ago
Reviewers:
ngeoffray
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Wrong condition caused repeated deoptimizations and performance degradation especially on Meteor. Committed: https://code.google.com/p/dart/source/detail?r=546

Patch Set 1 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -1 line) Patch
M runtime/vm/code_generator.cc View 1 chunk +1 line, -1 line 3 comments Download

Messages

Total messages: 4 (0 generated)
srdjan
TBR
9 years, 2 months ago (2011-10-19 08:27:26 UTC) #1
ngeoffray
http://codereview.chromium.org/8343024/diff/1/runtime/vm/code_generator.cc File runtime/vm/code_generator.cc (right): http://codereview.chromium.org/8343024/diff/1/runtime/vm/code_generator.cc#newcode921 runtime/vm/code_generator.cc:921: // was already deoptimized. Shouldn't you also change the ...
9 years, 2 months ago (2011-10-19 08:30:51 UTC) #2
srdjan
http://codereview.chromium.org/8343024/diff/1/runtime/vm/code_generator.cc File runtime/vm/code_generator.cc (right): http://codereview.chromium.org/8343024/diff/1/runtime/vm/code_generator.cc#newcode921 runtime/vm/code_generator.cc:921: // was already deoptimized. On 2011/10/19 08:30:51, ngeoffray wrote: ...
9 years, 2 months ago (2011-10-19 08:43:24 UTC) #3
ngeoffray
9 years, 2 months ago (2011-10-19 08:49:40 UTC) #4
LGTM

http://codereview.chromium.org/8343024/diff/1/runtime/vm/code_generator.cc
File runtime/vm/code_generator.cc (right):

http://codereview.chromium.org/8343024/diff/1/runtime/vm/code_generator.cc#ne...
runtime/vm/code_generator.cc:921: // was already deoptimized.
On 2011/10/19 08:43:25, srdjan wrote:
> On 2011/10/19 08:30:51, ngeoffray wrote:
> > Shouldn't you also change the comment?
> 
> The comment is correct, the code was wrong: now we skip if the function's code
> is already deoptimized (is_optimized == false).

I see, thanks. Maybe a 'If the method is deoptimized, ...' at the beginning of
the comment would be clearer. Your call.

Powered by Google App Engine
This is Rietveld 408576698