Index: runtime/include/dart_api.h |
diff --git a/runtime/include/dart_api.h b/runtime/include/dart_api.h |
index cd09095ba3ccfc41f9b5775bfe33cc3c06b87c5d..5cf4b764ad4b002235ea0f55b83d81f5eb9e1518 100755 |
--- a/runtime/include/dart_api.h |
+++ b/runtime/include/dart_api.h |
@@ -1753,6 +1753,16 @@ DART_EXPORT Dart_Handle Dart_New(Dart_Handle clazz, |
Dart_Handle* arguments); |
/** |
+ * Allocate a new object without invoking a constructor. |
+ * |
+ * \param clazz A class or an interface. |
siva
2013/06/18 00:52:14
Note:
Since we plan on moving all the invoke/new e
vsm
2013/06/19 14:55:12
Updated to accept Type as well.
On 2013/06/18 00:
|
+ * |
+ * \return The new object. If an error occurs during execution, then an |
+ * error handle is returned. |
+ */ |
+DART_EXPORT Dart_Handle Dart_Allocate(Dart_Handle clazz); |
+ |
+/** |
* Invokes a method or function. |
* |
* The 'target' parameter may be an object, class, or library. If |