DescriptionAdd 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
Messages
Total messages: 5 (0 generated)
|