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

Issue 6321007: Disable aggressive optimizations on the last optimization attempt. (Closed)

Created:
9 years, 11 months ago by Vitaly Repeshko
Modified:
9 years, 7 months ago
CC:
v8-dev
Visibility:
Public.

Description

Disable aggressive optimizations on the last optimization attempt. Only has effect on the loop invariant code motion and Check instructions for now. Committed: http://code.google.com/p/v8/source/detail?r=6363

Patch Set 1 #

Total comments: 6

Patch Set 2 : Review fixes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+41 lines, -6 lines) Patch
M src/compiler.h View 1 1 chunk +7 lines, -3 lines 0 comments Download
M src/compiler.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M src/hydrogen.h View 1 chunk +3 lines, -0 lines 0 comments Download
M src/hydrogen.cc View 1 2 chunks +11 lines, -2 lines 0 comments Download
M src/hydrogen-instructions.h View 1 8 chunks +18 lines, -0 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Vitaly Repeshko
9 years, 11 months ago (2011-01-18 07:00:24 UTC) #1
fschneider
LGTM. http://codereview.chromium.org/6321007/diff/1/src/hydrogen-instructions.h File src/hydrogen-instructions.h (right): http://codereview.chromium.org/6321007/diff/1/src/hydrogen-instructions.h#newcode778 src/hydrogen-instructions.h:778: virtual bool CanDeoptimize() const { return false; } ...
9 years, 11 months ago (2011-01-18 10:45:51 UTC) #2
Kevin Millikin (Chromium)
A couple of drive by comments. http://codereview.chromium.org/6321007/diff/1/src/hydrogen-instructions.h File src/hydrogen-instructions.h (right): http://codereview.chromium.org/6321007/diff/1/src/hydrogen-instructions.h#newcode777 src/hydrogen-instructions.h:777: // deoptimize. Allowed ...
9 years, 11 months ago (2011-01-18 11:18:39 UTC) #3
Vitaly Repeshko
9 years, 11 months ago (2011-01-18 12:24:56 UTC) #4
http://codereview.chromium.org/6321007/diff/1/src/hydrogen-instructions.h
File src/hydrogen-instructions.h (right):

http://codereview.chromium.org/6321007/diff/1/src/hydrogen-instructions.h#new...
src/hydrogen-instructions.h:777: // deoptimize. Allowed to have false positives.
On 2011/01/18 11:18:39, Kevin Millikin wrote:
> The comment is also confusing.  The predicate has false negatives (not every
> instruction that can deoptimize says true).

I renamed the function and the comment is much clearer now.

http://codereview.chromium.org/6321007/diff/1/src/hydrogen-instructions.h#new...
src/hydrogen-instructions.h:778: virtual bool CanDeoptimize() const { return
false; }
On 2011/01/18 10:45:51, fschneider wrote:
> I'd rather name this predicate IsCheckInstruction() because 
> in the long run we want the logic for deciding if an instructions can
deoptimize
> factored out into a platform-specific part.

Done.

http://codereview.chromium.org/6321007/diff/1/src/v8globals.h
File src/v8globals.h (right):

http://codereview.chromium.org/6321007/diff/1/src/v8globals.h#newcode110
src/v8globals.h:110: const int kDefaultMaxOptCount = 10;
On 2011/01/18 11:18:39, Kevin Millikin wrote:
> This should probably go in class Compiler instead of here.

Done.

Powered by Google App Engine
This is Rietveld 408576698