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

Issue 9403012: Add utility functions for creating and accessing Dart_CObject structures (Closed)

Created:
8 years, 10 months ago by Søren Gjesse
Modified:
8 years, 10 months ago
Reviewers:
Mads Ager (google)
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Add utility functions for creating and accessing Dart_CObject structures All allocation is done using Dart_ScopeAllocate, so no explicit feeing is required. This also means that these utilities require an active ApiZone. R=ager@google.com BUG= TEST= Committed: https://code.google.com/p/dart/source/detail?r=4388

Patch Set 1 #

Patch Set 2 : Minor fixes #

Patch Set 3 : Fixed issue discovered bu Windows compile #

Patch Set 4 : Added some required const #

Patch Set 5 : Changed Dart_ZoneAllocate to Dart_ScopeAllocate #

Total comments: 16

Patch Set 6 : Addressed review comments from ager@ #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+220 lines, -3 lines) Patch
M runtime/bin/dartutils.h View 1 2 3 4 5 1 chunk +133 lines, -0 lines 2 comments Download
M runtime/bin/dartutils.cc View 1 2 3 4 5 2 chunks +87 lines, -3 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Søren Gjesse
8 years, 10 months ago (2012-02-15 15:10:32 UTC) #1
Mads Ager (google)
http://codereview.chromium.org/9403012/diff/9001/runtime/bin/dartutils.cc File runtime/bin/dartutils.cc (right): http://codereview.chromium.org/9403012/diff/9001/runtime/bin/dartutils.cc#newcode271 runtime/bin/dartutils.cc:271: // Statically allocated Dart_Cobject instances for immutable Dart_CObject? http://codereview.chromium.org/9403012/diff/9001/runtime/bin/dartutils.cc#newcode273 ...
8 years, 10 months ago (2012-02-20 12:38:38 UTC) #2
Søren Gjesse
PTAL http://codereview.chromium.org/9403012/diff/9001/runtime/bin/dartutils.cc File runtime/bin/dartutils.cc (right): http://codereview.chromium.org/9403012/diff/9001/runtime/bin/dartutils.cc#newcode271 runtime/bin/dartutils.cc:271: // Statically allocated Dart_Cobject instances for immutable On ...
8 years, 10 months ago (2012-02-21 08:24:25 UTC) #3
Mads Ager (google)
LGTM We can put this back as is. We should do a follow-up change to ...
8 years, 10 months ago (2012-02-21 08:51:19 UTC) #4
Søren Gjesse
8 years, 10 months ago (2012-02-21 09:07:22 UTC) #5
http://codereview.chromium.org/9403012/diff/13001/runtime/bin/dartutils.h
File runtime/bin/dartutils.h (right):

http://codereview.chromium.org/9403012/diff/13001/runtime/bin/dartutils.h#new...
runtime/bin/dartutils.h:108: class CObject {
On 2012/02/21 08:51:20, Mads Ager wrote:
> As discussed offline I think we should get rid of the actual wrapping here. We
> could have just a collection of static helper methods here that directly
return
> the Dart_CObjects. Then we don't allocate the wrappers and we don't have to
> explicitly call AsApiCObject.

Will do.

Powered by Google App Engine
This is Rietveld 408576698