Flutter Engine
The Flutter Engine
Namespaces | Macros | Functions | Variables
ffi.cc File Reference
#include "include/dart_api.h"
#include "include/dart_api_dl.h"
#include "include/dart_version.h"
#include "include/internal/dart_api_dl_impl.h"
#include "platform/globals.h"
#include "vm/bootstrap_natives.h"
#include "vm/exceptions.h"
#include "vm/flags.h"
#include "vm/heap/gc_shared.h"
#include "vm/log.h"
#include "vm/native_arguments.h"
#include "vm/native_entry.h"
#include "vm/object.h"
#include "vm/object_store.h"
#include "vm/symbols.h"
#include "vm/compiler/assembler/assembler.h"
#include "vm/compiler/ffi/callback.h"
#include "vm/compiler/ffi/marshaller.h"
#include "vm/compiler/jit/compiler.h"

Go to the source code of this file.

Namespaces

namespace  dart
 

Macros

#define RETURN_FUNCTION_ADDRESS(function_name, R, A)
 
#define ENTRY(name, R, A)    DartApiEntry{#name, reinterpret_cast<void (*)()>(name)},
 

Functions

 dart::DEFINE_NATIVE_ENTRY (Ffi_createNativeCallableListener, 1, 2)
 
 dart::DEFINE_NATIVE_ENTRY (Ffi_createNativeCallableIsolateLocal, 1, 3)
 
 dart::DEFINE_NATIVE_ENTRY (Ffi_deleteNativeCallable, 1, 1)
 
 dart::DEFINE_NATIVE_ENTRY (Ffi_updateNativeCallableKeepIsolateAliveCounter, 1, 1)
 
 dart::DEFINE_NATIVE_ENTRY (DartNativeApiFunctionPointer, 0, 1)
 
 dart::DEFINE_NATIVE_ENTRY (DartApiDLMajorVersion, 0, 0)
 
 dart::DEFINE_NATIVE_ENTRY (DartApiDLMinorVersion, 0, 0)
 
 dart::DEFINE_NATIVE_ENTRY (DartApiDLInitializeData, 0, 0)
 
 dart::DEFINE_FFI_NATIVE_ENTRY (FinalizerEntry_SetExternalSize, void,(Dart_Handle entry_handle, intptr_t external_size))
 
 dart::DEFINE_FFI_NATIVE_ENTRY (Pointer_asTypedListFinalizerAllocateData, void *,())
 
void dart::AsTypedListFinalizerCallback (void *peer)
 
 dart::DEFINE_FFI_NATIVE_ENTRY (Pointer_asTypedListFinalizerCallbackPointer, void *,())
 

Variables

static const DartApiEntry dart::dart_api_entries []
 
static const DartApi dart::dart_api_data
 

Macro Definition Documentation

◆ ENTRY

#define ENTRY (   name,
  R,
  A 
)     DartApiEntry{#name, reinterpret_cast<void (*)()>(name)},

◆ RETURN_FUNCTION_ADDRESS

#define RETURN_FUNCTION_ADDRESS (   function_name,
  R,
  A 
)
Value:
if (strcmp(name, #function_name) == 0) { \
return Integer::New(reinterpret_cast<intptr_t>(function_name)); \
}
const char *const function_name
DEF_SWITCHES_START aot vmservice shared library name
Definition: switches.h:32