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

Issue 9347040: Add API function Dart_ZoneAllocate (Closed)

Created:
8 years, 10 months ago by Søren Gjesse
Modified:
8 years, 10 months ago
Reviewers:
turnidge, Ivan Posva
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Add API function Dart_ZoneAllocate This provides the embedder with the option for allocating temporary C objects in the current ApiZone. Zone allocation is especially useful when building a graph of Dart_CObject structures for posting using Dart_PostCObject. R=iposva@google.com, turnidge@google.com BUG= TEST= Committed: https://code.google.com/p/dart/source/detail?r=4348

Patch Set 1 #

Total comments: 2

Patch Set 2 : Addressed review comments from iposva@ #

Total comments: 3

Patch Set 3 : Addressed review comments from turnidge@ #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+84 lines, -15 lines) Patch
M runtime/include/dart_api.h View 1 2 1 chunk +24 lines, -0 lines 1 comment Download
M runtime/vm/dart_api_impl.cc View 1 2 3 chunks +19 lines, -2 lines 0 comments Download
M runtime/vm/dart_api_impl_test.cc View 1 2 2 chunks +10 lines, -8 lines 0 comments Download
M runtime/vm/dart_api_state.h View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M runtime/vm/snapshot_test.cc View 1 2 2 chunks +29 lines, -3 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
Søren Gjesse
8 years, 10 months ago (2012-02-15 11:09:00 UTC) #1
Ivan Posva
LGTM, but please wait for Todd's feedback as well. -Ivan http://codereview.chromium.org/9347040/diff/1/runtime/vm/dart_api_state.h File runtime/vm/dart_api_state.h (right): http://codereview.chromium.org/9347040/diff/1/runtime/vm/dart_api_state.h#newcode540 ...
8 years, 10 months ago (2012-02-15 16:08:46 UTC) #2
Søren Gjesse
http://codereview.chromium.org/9347040/diff/1/runtime/vm/dart_api_state.h File runtime/vm/dart_api_state.h (right): http://codereview.chromium.org/9347040/diff/1/runtime/vm/dart_api_state.h#newcode540 runtime/vm/dart_api_state.h:540: ApiZone& zone() { return zone_; } On 2012/02/15 16:08:46, ...
8 years, 10 months ago (2012-02-15 16:42:03 UTC) #3
turnidge
LGTM, with some comments below... https://chromiumcodereview.appspot.com/9347040/diff/2002/runtime/include/dart_api.h File runtime/include/dart_api.h (right): https://chromiumcodereview.appspot.com/9347040/diff/2002/runtime/include/dart_api.h#newcode1833 runtime/include/dart_api.h:1833: DART_EXPORT uint8_t* Dart_ZoneAllocate(intptr_t size); ...
8 years, 10 months ago (2012-02-16 17:54:55 UTC) #4
Søren Gjesse
Thanks for the review http://codereview.chromium.org/9347040/diff/2002/runtime/include/dart_api.h File runtime/include/dart_api.h (right): http://codereview.chromium.org/9347040/diff/2002/runtime/include/dart_api.h#newcode1833 runtime/include/dart_api.h:1833: DART_EXPORT uint8_t* Dart_ZoneAllocate(intptr_t size); On ...
8 years, 10 months ago (2012-02-17 07:43:09 UTC) #5
turnidge
8 years, 10 months ago (2012-02-17 19:27:52 UTC) #6
https://chromiumcodereview.appspot.com/9347040/diff/9001/runtime/include/dart...
File runtime/include/dart_api.h (right):

https://chromiumcodereview.appspot.com/9347040/diff/9001/runtime/include/dart...
runtime/include/dart_api.h:677: * The Dart VM uses "zone allocation" for
temporary structures. Zones
We should probably change the word zone to scope in the comment as well.

Powered by Google App Engine
This is Rietveld 408576698