Chromium Code Reviews| Index: runtime/include/dart_api.h |
| diff --git a/runtime/include/dart_api.h b/runtime/include/dart_api.h |
| index 9046ec822d57c4afd0c322fc590eced00dbd35db..e007bccc0cae57b644dfbb01d03f218c3e50304c 100755 |
| --- a/runtime/include/dart_api.h |
| +++ b/runtime/include/dart_api.h |
| @@ -2212,6 +2212,24 @@ typedef Dart_NativeFunction (*Dart_NativeEntryResolver)(Dart_Handle name, |
| /* TODO(turnidge): Consider renaming to NativeFunctionResolver or |
| * NativeResolver. */ |
| +/** |
| + * Native entry reverse resolution callback. |
|
siva
2014/04/08 16:27:54
Native entry symbol lookup callback.
Cutch
2014/04/09 17:40:59
Done.
|
| + * |
| + * For libraries and scripts which have native functions, the embedder |
| + * can provide a native entry reverse resolver. This callback is used to map |
|
siva
2014/04/08 16:27:54
can provide a callback for mapping a native entry
Cutch
2014/04/09 17:40:59
Done.
|
| + * a native function entry PC to the native function name. If no native entry |
| + * can be found, the callback should return NULL. |
| + * |
| + * The parameters to the native reverse resolver function are: |
| + * \param nf A Dart_NativeFunction. |
| + * |
| + * \return A const C string containing the name of the native function or NULL. |
| + * |
| + * See Dart_SetNativeResolver. |
| + */ |
| +typedef const char* (*Dart_NativeEntryReverseResolver)(Dart_NativeFunction nf); |
|
siva
2014/04/08 16:27:54
Should the return value be a const char* or a uint
Cutch
2014/04/09 17:40:59
UTF8.
|
| + |
| + |
| /* |
| * =========== |
| * Environment |
| @@ -2248,7 +2266,8 @@ DART_EXPORT Dart_Handle Dart_SetEnvironmentCallback( |
| */ |
| DART_EXPORT Dart_Handle Dart_SetNativeResolver( |
| Dart_Handle library, |
| - Dart_NativeEntryResolver resolver); |
| + Dart_NativeEntryResolver resolver, |
| + Dart_NativeEntryReverseResolver reverse_resolver); |
|
siva
2014/04/08 16:27:54
Dart_NativeEntrySymbol
Cutch
2014/04/09 17:40:59
Done.
|
| /* TODO(turnidge): Rename to Dart_LibrarySetNativeResolver? */ |