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

Issue 10332087: Merge SetObjectNames extra pass into the main pass. (Closed)

Created:
8 years, 7 months ago by alexeif
Modified:
8 years, 7 months ago
CC:
v8-dev
Visibility:
Public.

Description

Merge SetObjectNames extra pass into the main pass. Because heap snapshotting is now performed in a single pass it is safe to make calls to GetConstructorName and further to LocalLookupRealNamedProperty right within that main pass. Committed: https://code.google.com/p/v8/source/detail?r=11535

Patch Set 1 #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -38 lines) Patch
M src/profile-generator.h View 3 chunks +0 lines, -3 lines 0 comments Download
M src/profile-generator.cc View 3 chunks +10 lines, -35 lines 5 comments Download

Messages

Total messages: 6 (0 generated)
alexeif
8 years, 7 months ago (2012-05-10 09:04:20 UTC) #1
mnaganov (inactive)
lgtm
8 years, 7 months ago (2012-05-10 09:15:39 UTC) #2
yurys
https://chromiumcodereview.appspot.com/10332087/diff/1/src/profile-generator.cc File src/profile-generator.cc (right): https://chromiumcodereview.appspot.com/10332087/diff/1/src/profile-generator.cc#newcode1681 src/profile-generator.cc:1681: const char* tag = objects_tags_.GetTag(object); How can we be ...
8 years, 7 months ago (2012-05-10 12:13:52 UTC) #3
mnaganov (inactive)
https://chromiumcodereview.appspot.com/10332087/diff/1/src/profile-generator.cc File src/profile-generator.cc (right): https://chromiumcodereview.appspot.com/10332087/diff/1/src/profile-generator.cc#newcode1681 src/profile-generator.cc:1681: const char* tag = objects_tags_.GetTag(object); On 2012/05/10 12:13:52, Yury ...
8 years, 7 months ago (2012-05-10 12:15:56 UTC) #4
yurys
https://chromiumcodereview.appspot.com/10332087/diff/1/src/profile-generator.cc File src/profile-generator.cc (right): https://chromiumcodereview.appspot.com/10332087/diff/1/src/profile-generator.cc#newcode1681 src/profile-generator.cc:1681: const char* tag = objects_tags_.GetTag(object); On 2012/05/10 12:15:56, Mikhail ...
8 years, 7 months ago (2012-05-10 12:23:31 UTC) #5
alexeif
8 years, 7 months ago (2012-05-10 13:40:24 UTC) #6
https://chromiumcodereview.appspot.com/10332087/diff/1/src/profile-generator.cc
File src/profile-generator.cc (right):

https://chromiumcodereview.appspot.com/10332087/diff/1/src/profile-generator....
src/profile-generator.cc:1681: const char* tag = objects_tags_.GetTag(object);
On 2012/05/10 12:23:31, Yury Semikhatsky wrote:
> On 2012/05/10 12:15:56, Mikhail Naganov (Chromium) wrote:
> > On 2012/05/10 12:13:52, Yury Semikhatsky wrote:
> > > How can we be sure that the object has already been tagged at this point?
> > 
> > Global objects tagging is always done before snapshot taking, because it can
> > modify the heap state. Perhaps, add a comment about this?
> I think a comment would be helpful here. Also what about non-global objects,
do
> we care about their tags?
Yep, looks like non-global objects, i.e. arrays those names are setup near line
1713 may miss their tags. This happens if the array is processed before its
retainer. It needs to be fixed. Btw it is not related to this patch, which is
about setting JSGlobalObject tags only.

Powered by Google App Engine
This is Rietveld 408576698