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

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

Issue 10778005: Add a limited version of ParameterMirrors that can only tell whether they are (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
« no previous file with comments | « lib/mirrors/mirrors.dart ('k') | runtime/lib/mirrors.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 2105 matching lines...) Expand 10 before | Expand all | Expand 10 after
2116 * 2116 *
2117 * \param function A handle to a function or method declaration. 2117 * \param function A handle to a function or method declaration.
2118 * \param is_static Returns whether the function or method is a setter. 2118 * \param is_static Returns whether the function or method is a setter.
2119 * 2119 *
2120 * \return A valid handle if no error occurs during the operation. 2120 * \return A valid handle if no error occurs during the operation.
2121 */ 2121 */
2122 DART_EXPORT Dart_Handle Dart_FunctionIsSetter(Dart_Handle function, 2122 DART_EXPORT Dart_Handle Dart_FunctionIsSetter(Dart_Handle function,
2123 bool* is_setter); 2123 bool* is_setter);
2124 2124
2125 /** 2125 /**
2126 * Determines the number of required and optional parameters.
2127 *
2128 * \param function A handle to a function or method declaration.
2129 * \param fixed_param_count Returns the number of required parameters.
2130 * \param opt_param_count Returns the number of optional parameters.
2131 *
2132 * \return A valid handle if no error occurs during the operation.
2133 */
2134 DART_EXPORT Dart_Handle Dart_FunctionParameterCounts(
2135 Dart_Handle function,
2136 int64_t* fixed_param_count,
2137 int64_t* opt_param_count);
2138
2139 /**
2126 * Returns a list of the names of all variables declared in a library 2140 * Returns a list of the names of all variables declared in a library
2127 * or class. 2141 * or class.
2128 * 2142 *
2129 * \param target A library or class. 2143 * \param target A library or class.
2130 * 2144 *
2131 * \return If no error occurs, a list of strings is returned. 2145 * \return If no error occurs, a list of strings is returned.
2132 * Otherwise an erorr handle is returned. 2146 * Otherwise an erorr handle is returned.
2133 */ 2147 */
2134 DART_EXPORT Dart_Handle Dart_GetVariableNames(Dart_Handle target); 2148 DART_EXPORT Dart_Handle Dart_GetVariableNames(Dart_Handle target);
2135 2149
(...skipping 431 matching lines...) Expand 10 before | Expand all | Expand 10 after
2567 // information that can be used for better profile reports for 2581 // information that can be used for better profile reports for
2568 // dynamically generated code. 2582 // dynamically generated code.
2569 DART_EXPORT void Dart_InitPprofSupport(); 2583 DART_EXPORT void Dart_InitPprofSupport();
2570 DART_EXPORT void Dart_GetPprofSymbolInfo(void** buffer, int* buffer_size); 2584 DART_EXPORT void Dart_GetPprofSymbolInfo(void** buffer, int* buffer_size);
2571 2585
2572 // Support for generating flow graph compiler debugging output into a file. 2586 // Support for generating flow graph compiler debugging output into a file.
2573 typedef void (*FileWriterFunction)(const char* buffer, int64_t num_bytes); 2587 typedef void (*FileWriterFunction)(const char* buffer, int64_t num_bytes);
2574 DART_EXPORT void Dart_InitFlowGraphPrinting(FileWriterFunction function); 2588 DART_EXPORT void Dart_InitFlowGraphPrinting(FileWriterFunction function);
2575 2589
2576 #endif // INCLUDE_DART_API_H_ 2590 #endif // INCLUDE_DART_API_H_
OLDNEW
« no previous file with comments | « lib/mirrors/mirrors.dart ('k') | runtime/lib/mirrors.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698