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

Issue 10797008: Refine object stats for FixedArrays. (Closed)

Created:
8 years, 5 months ago by danno
Modified:
8 years, 5 months ago
Reviewers:
Yang
CC:
v8-dev
Visibility:
Public.

Description

Refine object stats for FixedArrays. R=yangguo@chromium.org Committed: https://code.google.com/p/v8/source/detail?r=12165

Patch Set 1 #

Patch Set 2 : Fix whitespace problems #

Total comments: 2

Patch Set 3 : Remove stray change #

Patch Set 4 : Remove stray change #

Patch Set 5 : Review feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+196 lines, -10 lines) Patch
M src/extensions/statistics-extension.cc View 1 2 3 4 2 chunks +11 lines, -1 line 0 comments Download
M src/heap.h View 1 2 3 4 2 chunks +8 lines, -1 line 0 comments Download
M src/heap.cc View 1 2 3 4 1 chunk +12 lines, -0 lines 0 comments Download
M src/mark-compact.cc View 1 2 3 4 2 chunks +118 lines, -8 lines 0 comments Download
M src/objects.h View 1 2 3 4 1 chunk +19 lines, -0 lines 0 comments Download
M src/v8-counters.h View 3 chunks +18 lines, -0 lines 0 comments Download
M src/v8-counters.cc View 1 chunk +10 lines, -0 lines 0 comments Download

Messages

Total messages: 2 (0 generated)
danno
8 years, 5 months ago (2012-07-18 13:56:32 UTC) #1
Yang
8 years, 5 months ago (2012-07-18 14:23:02 UTC) #2
LGTM with nits.

Also, can I suggest adding FIXED_ARRAY_SUB_INSTANCE_TYPE_LIST to
statistics-extension.cc to expose it using getV8Statistics()?

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

https://chromiumcodereview.appspot.com/10797008/diff/3001/src/mark-compact.cc...
src/mark-compact.cc:947: static void
ObjectStatsVisitCore(StaticVisitorBase::VisitorId id,
We sometimes call this sort of stuff *Base. Maybe better than *Core?

https://chromiumcodereview.appspot.com/10797008/diff/3001/src/mark-compact.cc...
src/mark-compact.cc:1552: FAST_PROPERTIES_SUB_TYPE);
This looks exactly the same as the case above. Since JSArray is a subclass of
JSObject, why the specialization? The accessors to elements and properties are
the same ones anyways.

Powered by Google App Engine
This is Rietveld 408576698