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

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

Issue 19563005: Add a new Dart API call Dart_GetNativeFieldOfArgument (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 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 | « no previous file | runtime/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 /* 1 /*
2 * Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 2 * Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
3 * for details. All rights reserved. Use of this source code is governed by a 3 * for details. All rights reserved. Use of this source code is governed by a
4 * BSD-style license that can be found in the LICENSE file. 4 * BSD-style license that can be found in the LICENSE file.
5 */ 5 */
6 6
7 #ifndef INCLUDE_DART_API_H_ 7 #ifndef INCLUDE_DART_API_H_
8 #define INCLUDE_DART_API_H_ 8 #define INCLUDE_DART_API_H_
9 9
10 /** \mainpage Dart Embedding API Reference 10 /** \mainpage Dart Embedding API Reference
(...skipping 1950 matching lines...) Expand 10 before | Expand all | Expand 10 after
1961 DART_EXPORT Dart_Handle Dart_GetNativeArgument(Dart_NativeArguments args, 1961 DART_EXPORT Dart_Handle Dart_GetNativeArgument(Dart_NativeArguments args,
1962 int index); 1962 int index);
1963 /* TODO(turnidge): Specify the behavior of an out-of-bounds access. */ 1963 /* TODO(turnidge): Specify the behavior of an out-of-bounds access. */
1964 1964
1965 /** 1965 /**
1966 * Gets the number of native arguments. 1966 * Gets the number of native arguments.
1967 */ 1967 */
1968 DART_EXPORT int Dart_GetNativeArgumentCount(Dart_NativeArguments args); 1968 DART_EXPORT int Dart_GetNativeArgumentCount(Dart_NativeArguments args);
1969 1969
1970 /** 1970 /**
1971 * Gets the native instance field of the native argument at some index.
1972 */
1973 DART_EXPORT Dart_Handle Dart_GetNativeFieldOfArgument(Dart_NativeArguments args,
1974 int arg_index,
1975 int fld_index,
1976 intptr_t* value);
1977
1978 /**
1971 * Sets the return value for a native function. 1979 * Sets the return value for a native function.
1972 */ 1980 */
1973 DART_EXPORT void Dart_SetReturnValue(Dart_NativeArguments args, 1981 DART_EXPORT void Dart_SetReturnValue(Dart_NativeArguments args,
1974 Dart_Handle retval); 1982 Dart_Handle retval);
1975 1983
1976 /** 1984 /**
1977 * A native function. 1985 * A native function.
1978 */ 1986 */
1979 typedef void (*Dart_NativeFunction)(Dart_NativeArguments arguments); 1987 typedef void (*Dart_NativeFunction)(Dart_NativeArguments arguments);
1980 1988
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
2199 * 2207 *
2200 * \param object An object. 2208 * \param object An object.
2201 * \param peer A value to store in the peer field. 2209 * \param peer A value to store in the peer field.
2202 * 2210 *
2203 * \return Returns an error if 'object' is a subtype of Null, num, or 2211 * \return Returns an error if 'object' is a subtype of Null, num, or
2204 * bool. 2212 * bool.
2205 */ 2213 */
2206 DART_EXPORT Dart_Handle Dart_SetPeer(Dart_Handle object, void* peer); 2214 DART_EXPORT Dart_Handle Dart_SetPeer(Dart_Handle object, void* peer);
2207 2215
2208 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */ 2216 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/dart_api_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698