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

Issue 9594028: Add a first class GrowableObjectArray type in the VM and use it internally in the VM at all spots w… (Closed)

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

Description

Add a first class GrowableObjectArray type in the VM and use it internally in the VM at all spots were we use GrowableArray first and then copy the contents into an Array object. Next step is to use this type in growable_array.dart Committed: https://code.google.com/p/dart/source/detail?r=5109

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 35

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+745 lines, -286 lines) Patch
M vm/class_finalizer.h View 1 2 3 5 chunks +5 lines, -7 lines 0 comments Download
M vm/class_finalizer.cc View 1 2 3 12 chunks +49 lines, -59 lines 0 comments Download
M vm/class_finalizer_test.cc View 1 2 3 4 chunks +28 lines, -13 lines 0 comments Download
M vm/object.h View 1 2 3 2 chunks +89 lines, -0 lines 0 comments Download
M vm/object.cc View 1 2 3 15 chunks +223 lines, -70 lines 0 comments Download
M vm/object_store.h View 1 2 3 5 chunks +15 lines, -3 lines 0 comments Download
M vm/object_store.cc View 1 2 3 4 chunks +5 lines, -1 line 0 comments Download
M vm/object_test.cc View 1 2 3 1 chunk +101 lines, -0 lines 0 comments Download
M vm/parser.h View 1 2 3 1 chunk +3 lines, -3 lines 0 comments Download
M vm/parser.cc View 1 2 3 36 chunks +155 lines, -130 lines 0 comments Download
M vm/raw_object.h View 1 2 3 3 chunks +18 lines, -0 lines 0 comments Download
M vm/raw_object.cc View 1 2 3 1 chunk +7 lines, -0 lines 0 comments Download
M vm/raw_object_snapshot.cc View 1 2 3 1 chunk +39 lines, -0 lines 0 comments Download
M vm/snapshot.h View 1 2 3 2 chunks +2 lines, -0 lines 0 comments Download
M vm/snapshot.cc View 1 2 3 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
siva
8 years, 9 months ago (2012-03-05 23:25:58 UTC) #1
hausner
The main issue i have is with handle allocation for each array element access. Otherwise ...
8 years, 9 months ago (2012-03-06 00:30:46 UTC) #2
cshapiro
Where is TwoByteGrowableObjectArray and FourByteGrowableObjectArray? :-) https://chromiumcodereview.appspot.com/9594028/diff/13003/vm/class_finalizer.cc File vm/class_finalizer.cc (right): https://chromiumcodereview.appspot.com/9594028/diff/13003/vm/class_finalizer.cc#newcode49 vm/class_finalizer.cc:49: class_array = object_store->pending_classes(); ...
8 years, 9 months ago (2012-03-06 00:56:31 UTC) #3
siva
Addressed review comments, PTAL. https://chromiumcodereview.appspot.com/9594028/diff/13003/vm/class_finalizer.cc File vm/class_finalizer.cc (right): https://chromiumcodereview.appspot.com/9594028/diff/13003/vm/class_finalizer.cc#newcode49 vm/class_finalizer.cc:49: class_array = object_store->pending_classes(); pending_classes is ...
8 years, 9 months ago (2012-03-06 23:32:33 UTC) #4
hausner
LVGTM. https://chromiumcodereview.appspot.com/9594028/diff/13003/vm/object.h File vm/object.h (right): https://chromiumcodereview.appspot.com/9594028/diff/13003/vm/object.h#newcode3357 vm/object.h:3357: const Array& contents = Array::Handle(data()); Nice, thank you. ...
8 years, 9 months ago (2012-03-06 23:53:58 UTC) #5
cshapiro
lgtm consider revising the comment in object.h https://chromiumcodereview.appspot.com/9594028/diff/13003/vm/object.h File vm/object.h (right): https://chromiumcodereview.appspot.com/9594028/diff/13003/vm/object.h#newcode3302 vm/object.h:3302: // Make ...
8 years, 9 months ago (2012-03-07 00:12:53 UTC) #6
siva
8 years, 9 months ago (2012-03-08 00:51:56 UTC) #7
https://chromiumcodereview.appspot.com/9594028/diff/13003/vm/object.h
File vm/object.h (right):

https://chromiumcodereview.appspot.com/9594028/diff/13003/vm/object.h#newcode...
vm/object.h:3302: // Make an Array object from a growable Array by truncating it
to the
On 2012/03/07 00:12:53, cshapiro wrote:
> This is much better, however it does not mention that the backing array is
> returned.  I would modify the second sentence to say, 
> 
>   This is done by first truncating the Growable Object Array's backing array
to
> the currently used size and then returning the truncated backing array.

Done.

Powered by Google App Engine
This is Rietveld 408576698