28#define BUILTIN_NATIVE_LIST(V) V(Builtin_PrintString, 1)
32static struct NativeEntries {
47 bool* auto_setup_scope) {
54 ASSERT(auto_setup_scope !=
nullptr);
55 *auto_setup_scope =
true;
56 int num_entries =
sizeof(
BuiltinEntries) /
sizeof(
struct NativeEntries);
57 for (
int i = 0;
i < num_entries;
i++) {
73 int num_entries =
sizeof(
BuiltinEntries) /
sizeof(
struct NativeEntries);
74 for (
int i = 0;
i < num_entries;
i++) {
77 return reinterpret_cast<const uint8_t*
>(entry->name_);
92 intptr_t new_length =
length + 1;
102 intptr_t res = fwrite(chars, 1, new_length, stdout);
103 ASSERT(res == new_length);
#define FUNCTION_NAME(name)
struct _Dart_Handle * Dart_Handle
struct _Dart_NativeArguments * Dart_NativeArguments
void(* Dart_NativeFunction)(Dart_NativeArguments arguments)
G_BEGIN_DECLS G_MODULE_EXPORT FlValue * args
#define REGISTER_FUNCTION(name, count)
#define DECLARE_FUNCTION(name, count)
bool ShouldCaptureStdout()
BUILTIN_NATIVE_LIST(DECLARE_FUNCTION)
static struct dart::bin::NativeEntries BuiltinEntries[]
const uint8_t * IONativeSymbol(Dart_NativeFunction nf)
Dart_NativeFunction IONativeLookup(Dart_Handle name, int argument_count, bool *auto_setup_scope)
void Builtin_DummyNative(Dart_NativeArguments args)
void FUNCTION_NAME() Builtin_PrintString(Dart_NativeArguments args)
DART_EXPORT void Dart_PropagateError(Dart_Handle handle)
DART_EXPORT uint8_t * Dart_ScopeAllocate(intptr_t size)
DART_EXPORT bool Dart_IsError(Dart_Handle handle)
DART_EXPORT char * Dart_ServiceSendDataEvent(const char *stream_id, const char *event_kind, const uint8_t *bytes, intptr_t bytes_length)
DART_EXPORT Dart_Handle Dart_CopyUTF8EncodingOfString(Dart_Handle str, uint8_t *utf8_array, intptr_t length)
DART_EXPORT Dart_Handle Dart_GetNativeArgument(Dart_NativeArguments args, int index)
const char *const function_name
DART_EXPORT Dart_Handle Dart_StringToCString(Dart_Handle object, const char **cstr)
DART_EXPORT Dart_Handle Dart_StringUTF8Length(Dart_Handle str, intptr_t *len)
Dart_NativeFunction function_