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

Issue 10837247: use bit fields for class state and field type values. This shrinks the snapshot (Closed)

Created:
8 years, 4 months ago by siva
Modified:
8 years, 4 months ago
Reviewers:
srdjan, cshapiro
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Visibility:
Public.

Description

use bit fields for class state and field type values. This shrinks the snapshot size by about 4k Committed: https://code.google.com/p/dart/source/detail?r=10696

Patch Set 1 #

Patch Set 2 : #

Total comments: 6

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+78 lines, -63 lines) Patch
M vm/heap_profiler.cc View 1 2 5 chunks +5 lines, -5 lines 0 comments Download
M vm/object.h View 1 2 7 chunks +47 lines, -19 lines 0 comments Download
M vm/object.cc View 1 2 5 chunks +20 lines, -14 lines 0 comments Download
M vm/raw_object.h View 1 2 2 chunks +2 lines, -7 lines 0 comments Download
M vm/raw_object_snapshot.cc View 1 2 4 chunks +4 lines, -18 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
siva
8 years, 4 months ago (2012-08-14 21:48:53 UTC) #1
cshapiro
DBC https://chromiumcodereview.appspot.com/10837247/diff/5001/vm/object.h File vm/object.h (right): https://chromiumcodereview.appspot.com/10837247/diff/5001/vm/object.h#newcode718 vm/object.h:718: kStateTagBit, kStateTagSize> {}; // NOLINT This seems to ...
8 years, 4 months ago (2012-08-14 22:05:13 UTC) #2
siva
https://chromiumcodereview.appspot.com/10837247/diff/5001/vm/object.h File vm/object.h (right): https://chromiumcodereview.appspot.com/10837247/diff/5001/vm/object.h#newcode718 vm/object.h:718: kStateTagBit, kStateTagSize> {}; // NOLINT On 2012/08/14 22:05:13, cshapiro ...
8 years, 4 months ago (2012-08-14 22:40:18 UTC) #3
srdjan
LGTM https://chromiumcodereview.appspot.com/10837247/diff/5001/vm/object.h File vm/object.h (right): https://chromiumcodereview.appspot.com/10837247/diff/5001/vm/object.h#newcode711 vm/object.h:711: kInterfaceBit, The partial numeration is confusing. I would ...
8 years, 4 months ago (2012-08-14 22:40:44 UTC) #4
siva
8 years, 4 months ago (2012-08-15 00:17:16 UTC) #5
https://chromiumcodereview.appspot.com/10837247/diff/5001/vm/object.h
File vm/object.h (right):

https://chromiumcodereview.appspot.com/10837247/diff/5001/vm/object.h#newcode711
vm/object.h:711: kInterfaceBit,
On 2012/08/14 22:40:44, srdjan wrote:
> The partial numeration is confusing. I would numerate them all, especially
since
> it is not consecutive.

Done.

Powered by Google App Engine
This is Rietveld 408576698