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

Issue 10905251: Lazy peer API. (Closed)

Created:
8 years, 3 months ago by cshapiro
Modified:
8 years, 2 months ago
Reviewers:
turnidge, Anton Muhin, siva
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Visibility:
Public.

Description

Lazy peer API. This change provides getters and setters for a lazily allocated field associated with every heap allocated object. It is a generalization of the peer field of external string instances, external byte array instances, and the smrck field of closure instances. Committed: https://code.google.com/p/dart/source/detail?r=12511

Patch Set 1 #

Total comments: 41

Patch Set 2 : address review comments #

Patch Set 3 : remove an uneeded include #

Patch Set 4 : rebased #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+598 lines, -0 lines) Patch
M runtime/include/dart_api.h View 1 2 3 1 chunk +33 lines, -0 lines 0 comments Download
M runtime/vm/dart_api_impl.cc View 1 2 3 1 chunk +40 lines, -0 lines 3 comments Download
M runtime/vm/dart_api_impl_test.cc View 1 2 3 1 chunk +384 lines, -0 lines 0 comments Download
M runtime/vm/gc_marker.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M runtime/vm/gc_marker.cc View 1 2 chunks +18 lines, -0 lines 0 comments Download
M runtime/vm/heap.h View 1 1 chunk +11 lines, -0 lines 0 comments Download
M runtime/vm/heap.cc View 1 chunk +24 lines, -0 lines 0 comments Download
M runtime/vm/pages.h View 1 3 chunks +14 lines, -0 lines 0 comments Download
M runtime/vm/pages.cc View 1 1 chunk +20 lines, -0 lines 0 comments Download
M runtime/vm/scavenger.h View 1 3 chunks +13 lines, -0 lines 0 comments Download
M runtime/vm/scavenger.cc View 1 4 chunks +40 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
cshapiro
8 years, 3 months ago (2012-09-13 04:33:47 UTC) #1
Anton Muhin
Overall: given all the subtelities of iterating over the map and removing some elements, won't ...
8 years, 3 months ago (2012-09-13 06:27:07 UTC) #2
siva
http://codereview.chromium.org/10905251/diff/1/runtime/include/dart_api.h File runtime/include/dart_api.h (right): http://codereview.chromium.org/10905251/diff/1/runtime/include/dart_api.h#newcode2618 runtime/include/dart_api.h:2618: * its peer. Do we really want to allow ...
8 years, 3 months ago (2012-09-14 00:03:45 UTC) #3
cshapiro
PTAL http://codereview.chromium.org/10905251/diff/1/runtime/include/dart_api.h File runtime/include/dart_api.h (right): http://codereview.chromium.org/10905251/diff/1/runtime/include/dart_api.h#newcode2616 runtime/include/dart_api.h:2616: /** I will add a comment here that ...
8 years, 3 months ago (2012-09-15 01:23:41 UTC) #4
Anton Muhin
lgtm
8 years, 3 months ago (2012-09-17 14:23:36 UTC) #5
Anton Muhin
Apparently I've spotted a problem with this CL http://codereview.chromium.org/10905251/diff/11001/runtime/vm/dart_api_impl.cc File runtime/vm/dart_api_impl.cc (right): http://codereview.chromium.org/10905251/diff/11001/runtime/vm/dart_api_impl.cc#newcode4456 runtime/vm/dart_api_impl.cc:4456: const ...
8 years, 2 months ago (2012-10-10 14:54:07 UTC) #6
siva
http://codereview.chromium.org/10905251/diff/11001/runtime/vm/dart_api_impl.cc File runtime/vm/dart_api_impl.cc (right): http://codereview.chromium.org/10905251/diff/11001/runtime/vm/dart_api_impl.cc#newcode4456 runtime/vm/dart_api_impl.cc:4456: const Object& obj = Object::Handle(isolate, Api::UnwrapHandle(object)); Yes. And a ...
8 years, 2 months ago (2012-10-10 15:01:28 UTC) #7
siva
http://codereview.chromium.org/10905251/diff/11001/runtime/vm/dart_api_impl.cc File runtime/vm/dart_api_impl.cc (right): http://codereview.chromium.org/10905251/diff/11001/runtime/vm/dart_api_impl.cc#newcode4456 runtime/vm/dart_api_impl.cc:4456: const Object& obj = Object::Handle(isolate, Api::UnwrapHandle(object)); Yes. And a ...
8 years, 2 months ago (2012-10-10 15:01:28 UTC) #8
cshapiro
8 years, 2 months ago (2012-10-10 16:39:07 UTC) #9
http://codereview.chromium.org/10905251/diff/11001/runtime/vm/dart_api_impl.cc
File runtime/vm/dart_api_impl.cc (right):

http://codereview.chromium.org/10905251/diff/11001/runtime/vm/dart_api_impl.c...
runtime/vm/dart_api_impl.cc:4456: const Object& obj = Object::Handle(isolate,
Api::UnwrapHandle(object));
Thanks.  I will add that today to both GetPeer and SetPeer.

Powered by Google App Engine
This is Rietveld 408576698