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

Issue 12094036: Fix clearing of dead dependent codes and verify weak embedded maps on full GC. (Closed)

Created:
7 years, 10 months ago by ulan
Modified:
7 years, 10 months ago
Reviewers:
Michael Starzinger
CC:
v8-dev
Visibility:
Public.

Description

Fix clearing of dead dependent codes and verify weak embedded maps on full GC. BUG=172488, 172489 R=mstarzinger@chromium.org Committed: https://code.google.com/p/v8/source/detail?r=13584

Patch Set 1 : #

Total comments: 18

Patch Set 2 : Address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+99 lines, -6 lines) Patch
M src/heap.h View 4 chunks +20 lines, -0 lines 0 comments Download
M src/heap.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M src/heap-inl.h View 1 chunk +12 lines, -0 lines 0 comments Download
M src/lithium.cc View 1 chunk +6 lines, -0 lines 0 comments Download
M src/mark-compact.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M src/mark-compact.cc View 1 5 chunks +25 lines, -4 lines 0 comments Download
M src/objects.h View 1 2 chunks +5 lines, -0 lines 0 comments Download
M src/objects.cc View 1 1 chunk +9 lines, -0 lines 0 comments Download
M src/objects-debug.cc View 1 2 chunks +16 lines, -0 lines 0 comments Download
M src/objects-visiting-inl.h View 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
ulan
Please take a look. The "weak embedded maps" flag is still set to false by ...
7 years, 10 months ago (2013-01-29 15:02:57 UTC) #1
Michael Starzinger
LGTM (with a couple of nits). https://chromiumcodereview.appspot.com/12094036/diff/2001/src/lithium.cc File src/lithium.cc (right): https://chromiumcodereview.appspot.com/12094036/diff/2001/src/lithium.cc#newcode459 src/lithium.cc:459: NoWeakEmbeddedMapsVerificationScope disable_verification_of_embedded_maps; On ...
7 years, 10 months ago (2013-01-31 14:27:50 UTC) #2
ulan
7 years, 10 months ago (2013-02-04 09:54:06 UTC) #3
Thanks, I uploaded new patch set.

https://chromiumcodereview.appspot.com/12094036/diff/2001/src/mark-compact.cc
File src/mark-compact.cc (right):

https://chromiumcodereview.appspot.com/12094036/diff/2001/src/mark-compact.cc...
src/mark-compact.cc:837: static void VerifyWeakEmbeddedMapsInOptimizedCode(Heap*
heap) {
On 2013/01/31 14:27:50, Michael Starzinger wrote:
> Move this function up to the other verifiers at the top of the file.

Done.

https://chromiumcodereview.appspot.com/12094036/diff/2001/src/mark-compact.cc...
src/mark-compact.cc:870: if (FLAG_collect_maps &&
FLAG_weak_embedded_maps_in_optimized_code &&
On 2013/01/31 14:27:50, Michael Starzinger wrote:
> Move this call into MarkCompactCollector::CollectGarbage() where the other
> verifiers are called.

Done.

https://chromiumcodereview.appspot.com/12094036/diff/2001/src/mark-compact.cc...
src/mark-compact.cc:2344: number_of_codes = codes->number_of_codes();
On 2013/01/31 14:27:50, Michael Starzinger wrote:
> This call seems to be obsolete.

Done.

https://chromiumcodereview.appspot.com/12094036/diff/2001/src/objects-inl.h
File src/objects-inl.h (right):

https://chromiumcodereview.appspot.com/12094036/diff/2001/src/objects-inl.h#n...
src/objects-inl.h:80: ASSERT(object->Is##type());                 \
On 2013/01/31 14:27:50, Michael Starzinger wrote:
> Unnecessary white-space change.

Done.

https://chromiumcodereview.appspot.com/12094036/diff/2001/src/objects.cc
File src/objects.cc (right):

https://chromiumcodereview.appspot.com/12094036/diff/2001/src/objects.cc#newc...
src/objects.cc:9212: void Code::VerifyEmbeddedMaps() {
On 2013/01/31 14:27:50, Michael Starzinger wrote:
> This whole implementation belongs into objects-debug.cc I guess.

Done.

https://chromiumcodereview.appspot.com/12094036/diff/2001/src/objects.cc#newc...
src/objects.cc:9218: Map* map = Map::cast(it.rinfo()->target_object());
On 2013/01/31 14:27:50, Michael Starzinger wrote:
> Indentation is off.

Done.

https://chromiumcodereview.appspot.com/12094036/diff/2001/src/objects.h
File src/objects.h (right):

https://chromiumcodereview.appspot.com/12094036/diff/2001/src/objects.h#newco...
src/objects.h:4549: void VerifyEmbeddedMaps();
On 2013/01/31 14:27:50, Michael Starzinger wrote:
> Let's call this "VerifyEmbeddedMapsDependency()".

Done.

Powered by Google App Engine
This is Rietveld 408576698