7#include <zircon/syscalls.h>
17#include "third_party/dart/runtime/include/dart_api.h"
46 bool* auto_setup_scope) {
54 *auto_setup_scope =
true;
56 g_natives = InitNatives();
62 g_natives = InitNatives();
63 return g_natives->
GetSymbol(native_function);
76 std::unique_ptr<tonic::DartClassProvider> zircon_class_provider(
78 dart_state->class_library().add_provider(
"zircon",
79 std::move(zircon_class_provider));
const uint8_t * GetSymbol(Dart_NativeFunction native_function)
Dart_NativeFunction GetNativeFunction(Dart_Handle name, int argument_count, bool *auto_setup_scope)
static DartState * Current()
static void RegisterNatives(tonic::DartLibraryNatives *natives)
static void RegisterNatives(tonic::DartLibraryNatives *natives)
static void RegisterNatives(tonic::DartLibraryNatives *natives)
static void RegisterNatives(tonic::DartLibraryNatives *natives)
DART_EXPORT Dart_Handle Dart_SetNativeResolver(Dart_Handle library, Dart_NativeEntryResolver resolver, Dart_NativeEntrySymbol symbol)
struct _Dart_Handle * Dart_Handle
DART_EXPORT void Dart_PropagateError(Dart_Handle handle)
DART_EXPORT Dart_Handle Dart_LookupLibrary(Dart_Handle url)
DART_EXPORT Dart_Handle Dart_StringToCString(Dart_Handle str, const char **cstr)
void(* Dart_NativeFunction)(Dart_NativeArguments arguments)
DART_EXPORT bool Dart_IsError(Dart_Handle handle)
#define FML_CHECK(condition)
#define FML_DCHECK(condition)
static Dart_NativeFunction NativeLookup(Dart_Handle name, int argc, bool *auto_setup_scope)
const char *const function_name
DEF_SWITCHES_START aot vmservice shared library name
Dart_Handle ToDart(const T &object)
bool CheckAndHandleError(Dart_Handle handle)