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

Issue 16968006: Add Dart_Allocate to the C++ API (Closed)

Created:
7 years, 6 months ago by vsm
Modified:
7 years, 6 months ago
Reviewers:
siva
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Add Dart_Allocate to the C++ API This change allows us to allocate Dart objects from C++ without invoking a constructor. In turn, it allows us to declare Dartium DOM types with no public generative constructor. Note, the current constructor has to be public as dart:html Element is subclassed by dart:svg SvgElement (and eventually by user defined custom elements as well). This leads to unfortunate holes such as: https://code.google.com/p/dart/issues/detail?id=11277 This should also give a modest boost in DOM perf as the existing constructor does absolutely nothing. BUG=11277 R=asiva@google.com Committed: https://code.google.com/p/dart/source/detail?r=24189

Patch Set 1 #

Total comments: 6

Patch Set 2 : Allow Type objects as well #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+46 lines, -0 lines) Patch
M runtime/include/dart_api.h View 1 1 chunk +10 lines, -0 lines 0 comments Download
M runtime/vm/dart_api_impl.cc View 1 1 chunk +27 lines, -0 lines 1 comment Download
M runtime/vm/dart_api_impl_test.cc View 1 1 chunk +9 lines, -0 lines 1 comment Download

Messages

Total messages: 5 (0 generated)
vsm
7 years, 6 months ago (2013-06-17 23:19:03 UTC) #1
siva
LGTM once comments are addressed. https://chromiumcodereview.appspot.com/16968006/diff/1/runtime/include/dart_api.h File runtime/include/dart_api.h (right): https://chromiumcodereview.appspot.com/16968006/diff/1/runtime/include/dart_api.h#newcode1758 runtime/include/dart_api.h:1758: * \param clazz A ...
7 years, 6 months ago (2013-06-18 00:52:14 UTC) #2
vsm
PTAL Updated to accept types and added a test. (In Dartium, we are still using ...
7 years, 6 months ago (2013-06-19 14:55:12 UTC) #3
siva
lgtm https://chromiumcodereview.appspot.com/16968006/diff/6001/runtime/vm/dart_api_impl.cc File runtime/vm/dart_api_impl.cc (right): https://chromiumcodereview.appspot.com/16968006/diff/6001/runtime/vm/dart_api_impl.cc#newcode2844 runtime/vm/dart_api_impl.cc:2844: // objects to invoke Dart_New is removed. invoke ...
7 years, 6 months ago (2013-06-19 15:36:24 UTC) #4
vsm
7 years, 6 months ago (2013-06-19 15:48:28 UTC) #5
Message was sent while issue was closed.
Committed patchset #2 manually as r24189 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698