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

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
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(Dart_Handle function,
2135 int64_t* fixed_param_count,
2136 int64_t* opt_param_count);
turnidge 2012/07/13 23:37:12 Reindent this function so that Dart_Handle functio
2137
2138 /**
2126 * Returns a list of the names of all variables declared in a library 2139 * Returns a list of the names of all variables declared in a library
2127 * or class. 2140 * or class.
2128 * 2141 *
2129 * \param target A library or class. 2142 * \param target A library or class.
2130 * 2143 *
2131 * \return If no error occurs, a list of strings is returned. 2144 * \return If no error occurs, a list of strings is returned.
2132 * Otherwise an erorr handle is returned. 2145 * Otherwise an erorr handle is returned.
2133 */ 2146 */
2134 DART_EXPORT Dart_Handle Dart_GetVariableNames(Dart_Handle target); 2147 DART_EXPORT Dart_Handle Dart_GetVariableNames(Dart_Handle target);
2135 2148
(...skipping 431 matching lines...) Expand 10 before | Expand all | Expand 10 after
2567 // information that can be used for better profile reports for 2580 // information that can be used for better profile reports for
2568 // dynamically generated code. 2581 // dynamically generated code.
2569 DART_EXPORT void Dart_InitPprofSupport(); 2582 DART_EXPORT void Dart_InitPprofSupport();
2570 DART_EXPORT void Dart_GetPprofSymbolInfo(void** buffer, int* buffer_size); 2583 DART_EXPORT void Dart_GetPprofSymbolInfo(void** buffer, int* buffer_size);
2571 2584
2572 // Support for generating flow graph compiler debugging output into a file. 2585 // Support for generating flow graph compiler debugging output into a file.
2573 typedef void (*FileWriterFunction)(const char* buffer, int64_t num_bytes); 2586 typedef void (*FileWriterFunction)(const char* buffer, int64_t num_bytes);
2574 DART_EXPORT void Dart_InitFlowGraphPrinting(FileWriterFunction function); 2587 DART_EXPORT void Dart_InitFlowGraphPrinting(FileWriterFunction function);
2575 2588
2576 #endif // INCLUDE_DART_API_H_ 2589 #endif // INCLUDE_DART_API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698