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

Side by Side Diff: runtime/include/dart_api.h

Issue 10800065: Added ClosureMirror to dart:mirrors. Added Dart_ClosureFunction to the (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 5 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
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 1922 matching lines...) Expand 10 before | Expand all | Expand 10 after
1933 double value); 1933 double value);
1934 1934
1935 // --- Closures --- 1935 // --- Closures ---
1936 1936
1937 /** 1937 /**
1938 * Is this object a Closure? 1938 * Is this object a Closure?
1939 */ 1939 */
1940 DART_EXPORT bool Dart_IsClosure(Dart_Handle object); 1940 DART_EXPORT bool Dart_IsClosure(Dart_Handle object);
1941 1941
1942 /** 1942 /**
1943 * Retrieves the function of a closure.
1944 *
1945 * \return A handle on the function of the closure, or an error handle if the
1946 * argument is not a closure.
1947 */
1948 DART_EXPORT Dart_Handle Dart_ClosureFunction(Dart_Handle closure);
1949
1950 /**
1943 * Invokes a Closure with the given arguments. 1951 * Invokes a Closure with the given arguments.
1944 * 1952 *
1945 * May generate an unhandled exception error. 1953 * May generate an unhandled exception error.
1946 * 1954 *
1947 * \return If no error occurs during execution, then the result of 1955 * \return If no error occurs during execution, then the result of
1948 * invoking the closure is returned. If an error occurs during 1956 * invoking the closure is returned. If an error occurs during
1949 * execution, then an error handle is returned. 1957 * execution, then an error handle is returned.
1950 */ 1958 */
1951 DART_EXPORT Dart_Handle Dart_InvokeClosure(Dart_Handle closure, 1959 DART_EXPORT Dart_Handle Dart_InvokeClosure(Dart_Handle closure,
1952 int number_of_arguments, 1960 int number_of_arguments,
(...skipping 628 matching lines...) Expand 10 before | Expand all | Expand 10 after
2581 // information that can be used for better profile reports for 2589 // information that can be used for better profile reports for
2582 // dynamically generated code. 2590 // dynamically generated code.
2583 DART_EXPORT void Dart_InitPprofSupport(); 2591 DART_EXPORT void Dart_InitPprofSupport();
2584 DART_EXPORT void Dart_GetPprofSymbolInfo(void** buffer, int* buffer_size); 2592 DART_EXPORT void Dart_GetPprofSymbolInfo(void** buffer, int* buffer_size);
2585 2593
2586 // Support for generating flow graph compiler debugging output into a file. 2594 // Support for generating flow graph compiler debugging output into a file.
2587 typedef void (*FileWriterFunction)(const char* buffer, int64_t num_bytes); 2595 typedef void (*FileWriterFunction)(const char* buffer, int64_t num_bytes);
2588 DART_EXPORT void Dart_InitFlowGraphPrinting(FileWriterFunction function); 2596 DART_EXPORT void Dart_InitFlowGraphPrinting(FileWriterFunction function);
2589 2597
2590 #endif // INCLUDE_DART_API_H_ 2598 #endif // INCLUDE_DART_API_H_
OLDNEW
« no previous file with comments | « lib/mirrors/mirrors.dart ('k') | runtime/lib/mirrors.cc » ('j') | runtime/lib/mirrors_impl.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698