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

Side by Side Diff: include/dart_api.h

Issue 10153002: Add Dart_New. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years, 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | vm/dart_api_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #ifndef INCLUDE_DART_API_H_ 5 #ifndef INCLUDE_DART_API_H_
6 #define INCLUDE_DART_API_H_ 6 #define INCLUDE_DART_API_H_
7 7
8 /** \mainpage Dart Embedding API Reference 8 /** \mainpage Dart Embedding API Reference
9 * 9 *
10 * Dart is a class-based programming language for creating structured 10 * Dart is a class-based programming language for creating structured
(...skipping 1680 matching lines...) Expand 10 before | Expand all | Expand 10 after
1691 DART_EXPORT Dart_Handle Dart_InvokeClosure(Dart_Handle closure, 1691 DART_EXPORT Dart_Handle Dart_InvokeClosure(Dart_Handle closure,
1692 int number_of_arguments, 1692 int number_of_arguments,
1693 Dart_Handle* arguments); 1693 Dart_Handle* arguments);
1694 1694
1695 // DEPRECATED: The API below is a temporary hack. 1695 // DEPRECATED: The API below is a temporary hack.
1696 DART_EXPORT int64_t Dart_ClosureSmrck(Dart_Handle object); 1696 DART_EXPORT int64_t Dart_ClosureSmrck(Dart_Handle object);
1697 1697
1698 // DEPRECATED: The API below is a temporary hack. 1698 // DEPRECATED: The API below is a temporary hack.
1699 DART_EXPORT void Dart_ClosureSetSmrck(Dart_Handle object, int64_t value); 1699 DART_EXPORT void Dart_ClosureSetSmrck(Dart_Handle object, int64_t value);
1700 1700
1701 // --- Methods and Fields --- 1701 // --- Constructors, Methods, and Fields ---
1702
1703 /**
1704 * Invokes a constructor, creating a new object.
1705 *
1706 * This function allows hidden constructors (constructors with leading
1707 * underscores) to be called.
1708 *
1709 * \param clazz A class or an interface.
1710 * \param constructor_name The name of the constructor to invoke. Use
1711 * Dart_Null() to invoke the unnamed constructor. This name should
1712 * not include the name of the class.
1713 * \param number_of_arguments Size of the arguments array.
1714 * \param arguments An array of arguments to the constructor.
1715 *
1716 * \return If the constructor is called and completes successfully,
1717 * then the new object. If an error occurs during execution, then an
1718 * error handle is returned.
1719 */
1720 DART_EXPORT Dart_Handle Dart_New(Dart_Handle clazz,
1721 Dart_Handle constructor_name,
1722 int number_of_arguments,
1723 Dart_Handle* arguments);
1702 1724
1703 /** 1725 /**
1704 * Invokes a method or function. 1726 * Invokes a method or function.
1705 * 1727 *
1706 * The 'target' parameter may be an object, class, or library. If 1728 * The 'target' parameter may be an object, class, or library. If
1707 * 'target' is an object, then this function will invoke an instance 1729 * 'target' is an object, then this function will invoke an instance
1708 * method. If 'target' is a class, then this function will invoke a 1730 * method. If 'target' is a class, then this function will invoke a
1709 * static method. If 'target' is a library, then this function will 1731 * static method. If 'target' is a library, then this function will
1710 * invoke a top-level function from that library. 1732 * invoke a top-level function from that library.
1711 * 1733 *
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after
1970 1992
1971 // --- Profiling support ---- 1993 // --- Profiling support ----
1972 1994
1973 // External pprof support for gathering and dumping symbolic 1995 // External pprof support for gathering and dumping symbolic
1974 // information that can be used for better profile reports for 1996 // information that can be used for better profile reports for
1975 // dynamically generated code. 1997 // dynamically generated code.
1976 DART_EXPORT void Dart_InitPprofSupport(); 1998 DART_EXPORT void Dart_InitPprofSupport();
1977 DART_EXPORT void Dart_GetPprofSymbolInfo(void** buffer, int* buffer_size); 1999 DART_EXPORT void Dart_GetPprofSymbolInfo(void** buffer, int* buffer_size);
1978 2000
1979 #endif // INCLUDE_DART_API_H_ 2001 #endif // INCLUDE_DART_API_H_
OLDNEW
« no previous file with comments | « no previous file | vm/dart_api_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698