Flutter Engine
dart_runtime_hooks.cc File Reference
#include "flutter/lib/ui/dart_runtime_hooks.h"
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <sstream>
#include "flutter/common/settings.h"
#include "flutter/fml/build_config.h"
#include "flutter/fml/logging.h"
#include "flutter/lib/ui/plugins/callback_cache.h"
#include "flutter/lib/ui/ui_dart_state.h"
#include "third_party/dart/runtime/include/bin/dart_io_api.h"
#include "third_party/dart/runtime/include/dart_api.h"
#include "third_party/dart/runtime/include/dart_tools_api.h"
#include "third_party/tonic/converter/dart_converter.h"
#include "third_party/tonic/dart_library_natives.h"
#include "third_party/tonic/dart_microtask_queue.h"
#include "third_party/tonic/dart_state.h"
#include "third_party/tonic/logging/dart_error.h"
#include "third_party/tonic/logging/dart_invoke.h"
#include "third_party/tonic/scopes/dart_api_scope.h"
#include "third_party/tonic/scopes/dart_isolate_scope.h"

Go to the source code of this file.

Namespaces

 flutter
 

Macros

#define REGISTER_FUNCTION(name, count)   {"" #name, name, count, true},
 
#define DECLARE_FUNCTION(name, count)   extern void name(Dart_NativeArguments args);
 
#define BUILTIN_NATIVE_LIST(V)
 

Functions

 flutter::BUILTIN_NATIVE_LIST (DECLARE_FUNCTION)
 
static void flutter::PropagateIfError (Dart_Handle result)
 
static Dart_Handle flutter::InvokeFunction (Dart_Handle builtin_library, const char *name)
 
static void flutter::InitDartInternal (Dart_Handle builtin_library, bool is_ui_isolate)
 
static void flutter::InitDartCore (Dart_Handle builtin, const std::string &script_uri)
 
static void flutter::InitDartAsync (Dart_Handle builtin_library, bool is_ui_isolate)
 
static void flutter::InitDartIO (Dart_Handle builtin_library, const std::string &script_uri)
 
void flutter::Logger_PrintDebugString (Dart_NativeArguments args)
 
void flutter::Logger_PrintString (Dart_NativeArguments args)
 
void flutter::SaveCompilationTrace (Dart_NativeArguments args)
 
void flutter::ScheduleMicrotask (Dart_NativeArguments args)
 
static std::string flutter::GetFunctionLibraryUrl (Dart_Handle closure)
 
static std::string flutter::GetFunctionClassName (Dart_Handle closure)
 
static std::string flutter::GetFunctionName (Dart_Handle func)
 
void flutter::GetCallbackHandle (Dart_NativeArguments args)
 
void flutter::GetCallbackFromHandle (Dart_NativeArguments args)
 

Macro Definition Documentation

◆ BUILTIN_NATIVE_LIST

#define BUILTIN_NATIVE_LIST (   V)
Value:
void SaveCompilationTrace(Dart_NativeArguments args)
void Logger_PrintString(Dart_NativeArguments args)
void ScheduleMicrotask(Dart_NativeArguments args)
void Logger_PrintDebugString(Dart_NativeArguments args)
void GetCallbackHandle(Dart_NativeArguments args)
void GetCallbackFromHandle(Dart_NativeArguments args)

Definition at line 49 of file dart_runtime_hooks.cc.

◆ DECLARE_FUNCTION

#define DECLARE_FUNCTION (   name,
  count 
)    extern void name(Dart_NativeArguments args);

Definition at line 46 of file dart_runtime_hooks.cc.

◆ REGISTER_FUNCTION

#define REGISTER_FUNCTION (   name,
  count 
)    {"" #name, name, count, true},

Definition at line 45 of file dart_runtime_hooks.cc.

Referenced by flutter::DartRuntimeHooks::RegisterNatives().