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

Issue 2632003: Flushing of code from functions that we expect not to use again.... (Closed)

Created:
10 years, 6 months ago by Rico
Modified:
9 years, 6 months ago
CC:
v8-dev
Visibility:
Public.

Description

Flushing of code from functions that we expect not to use again. This adds an additional step to full gc, removing code from functions that are no longer in the compilation cache. The code is replaced with a lazy compile version enabling us to recompile the function in case we do actually need it again. Committed: http://code.google.com/p/v8/source/detail?r=4814

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 22

Patch Set 3 : '' #

Patch Set 4 : '' #

Total comments: 12

Patch Set 5 : '' #

Patch Set 6 : '' #

Patch Set 7 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+168 lines, -0 lines) Patch
M src/compilation-cache.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M src/compilation-cache.cc View 1 2 3 chunks +28 lines, -0 lines 0 comments Download
M src/compiler.cc View 1 chunk +1 line, -0 lines 0 comments Download
M src/heap.h View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M src/heap.cc View 1 2 3 4 5 2 chunks +82 lines, -0 lines 0 comments Download
M src/objects.h View 1 2 3 4 2 chunks +7 lines, -0 lines 0 comments Download
M src/objects-inl.h View 1 chunk +4 lines, -0 lines 0 comments Download
M test/cctest/test-heap.cc View 5 6 1 chunk +39 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
Rico
Mads and Slava, Could you have a look.
10 years, 6 months ago (2010-06-04 12:32:56 UTC) #1
Mads Ager (chromium)
http://codereview.chromium.org/2632003/diff/9001/10001 File src/compilation-cache.cc (right): http://codereview.chromium.org/2632003/diff/9001/10001#newcode219 src/compilation-cache.cc:219: CompilationCacheTable::cast(tables_[generation]); Four-space indent. http://codereview.chromium.org/2632003/diff/9001/10001#newcode221 src/compilation-cache.cc:221: Object* object = table->Lookup(String::cast(script->source())); ...
10 years, 6 months ago (2010-06-07 08:31:11 UTC) #2
Mads Ager (chromium)
Oh, and this looks great once the comments are addressed! :) On 2010/06/07 08:31:11, Mads ...
10 years, 6 months ago (2010-06-07 08:31:45 UTC) #3
Rico
All comments addressed. http://codereview.chromium.org/2632003/diff/9001/10001 File src/compilation-cache.cc (right): http://codereview.chromium.org/2632003/diff/9001/10001#newcode219 src/compilation-cache.cc:219: CompilationCacheTable::cast(tables_[generation]); On 2010/06/07 08:31:11, Mads Ager ...
10 years, 6 months ago (2010-06-07 12:16:58 UTC) #4
Mads Ager (chromium)
LGTM http://codereview.chromium.org/2632003/diff/24001/25004 File src/heap.cc (right): http://codereview.chromium.org/2632003/diff/24001/25004#newcode2225 src/heap.cc:2225: // Complete comment? http://codereview.chromium.org/2632003/diff/24001/25004#newcode2228 src/heap.cc:2228: // If this ...
10 years, 6 months ago (2010-06-07 12:25:36 UTC) #5
Vitaly Repeshko
LGTM with a few nits. http://codereview.chromium.org/2632003/diff/24001/25004 File src/heap.cc (right): http://codereview.chromium.org/2632003/diff/24001/25004#newcode2196 src/heap.cc:2196: for (StackFrameIterator it(top); !it.done(); ...
10 years, 6 months ago (2010-06-07 12:36:56 UTC) #6
Rico
Thanks for the additional comments Vitaly. I have addressed them and in addition I have ...
10 years, 6 months ago (2010-06-07 13:28:44 UTC) #7
Mads Ager (chromium)
10 years, 6 months ago (2010-06-07 14:12:42 UTC) #8
Still LGTM

Powered by Google App Engine
This is Rietveld 408576698