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

Unified Diff: runtime/include/dart_api.h

Issue 16968006: Add Dart_Allocate to the C++ API (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | runtime/vm/dart_api_impl.cc » ('j') | runtime/vm/dart_api_impl.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « no previous file | runtime/vm/dart_api_impl.cc » ('j') | runtime/vm/dart_api_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698