Flutter Engine
The Flutter Engine
Classes | Namespaces | Macros | Typedefs | Functions | Variables
ffi_test_functions_vmspecific.cc File Reference
#include <stddef.h>
#include <stdlib.h>
#include <sys/types.h>
#include <csignal>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include "platform/globals.h"
#include "platform/memory_sanitizer.h"
#include <unistd.h>
#include <condition_variable>
#include <functional>
#include <mutex>
#include <queue>
#include <thread>
#include <setjmp.h>
#include <signal.h>
#include <iostream>
#include <limits>
#include "include/dart_api.h"
#include "include/dart_native_api.h"
#include "include/dart_api_dl.h"

Go to the source code of this file.

Classes

struct  dart::HelperThreadState
 
struct  dart::CallbackTestData
 
class  dart::SimulateWork
 
class  dart::PendingCall
 
class  dart::SimulateWork2
 

Namespaces

namespace  dart
 

Macros

#define CHECK(X)
 
#define CHECK_EQ(X, Y)   CHECK((X) == (Y))
 
#define ENSURE(X)
 
#define FATAL(error)   Fatal(__FILE__, __LINE__, error)
 
#define CHECK_STRING(o)
 

Typedefs

typedef std::function< void()> dart::Work
 

Functions

DART_EXPORT int64_t dart::MinInt64 ()
 
DART_EXPORT int64_t dart::MinInt32 ()
 
DART_EXPORT double dart::SmallDouble ()
 
DART_EXPORT void * dart::LargePointer ()
 
DART_EXPORT void dart::TriggerGC (uint64_t count)
 
DART_EXPORT void dart::CollectOnNthAllocation (intptr_t num_allocations)
 
DART_EXPORT void dart::Regress37069 (uint64_t a, uint64_t b, uint64_t c, uint64_t d, uint64_t e, uint64_t f, uint64_t g, uint64_t h, uint64_t i, uint64_t j, uint64_t k)
 
DART_EXPORT uint8_t dart::IsThreadInGenerated ()
 
DART_EXPORT void * dart::UnprotectCodeOtherThread (void *isolate, std::condition_variable *var, std::mutex *mut)
 
DART_EXPORT void * dart::TestUnprotectCode (void(*fn)(void *))
 
DART_EXPORT void dart::WaitForHelper (HelperThreadState *helper)
 
void dart::ClobberAndCall (void(*fn)())
 
DART_EXPORT intptr_t dart::TestGC (void(*do_gc)())
 
DART_EXPORT void dart::RestoreSIGPIPEHandler ()
 
DART_EXPORT void dart::IGH_MsanUnpoison (void *start, intptr_t length)
 
DART_EXPORT Dart_Isolate dart::IGH_CreateIsolate (const char *name, void *peer)
 
DART_EXPORT void dart::IGH_StartIsolate (Dart_Isolate child_isolate, int64_t main_isolate_port, const char *library_uri, const char *function_name, bool errors_are_fatal, Dart_Port on_error_port, Dart_Port on_exit_port)
 
DART_EXPORT intptr_t dart::InitDartApiDL (void *data)
 
void dart::Fatal (char const *file, int line, char const *error)
 
DART_EXPORT void dart::SleepOnAnyOS (intptr_t seconds)
 
void dart::NotifyDart (Dart_Port send_port, const Work *work)
 
intptr_t dart::MyCallbackBlocking (intptr_t a)
 
void dart::MyCallbackNonBlocking (intptr_t a)
 
void dart::Work1 ()
 
void dart::Work2 ()
 
DART_EXPORT void dart::RegisterMyCallbackBlocking (Dart_Port send_port, intptr_t(*callback1)(intptr_t))
 
DART_EXPORT void dart::RegisterMyCallbackNonBlocking (Dart_Port send_port, void(*callback)(intptr_t))
 
DART_EXPORT void dart::StartWorkSimulator ()
 
DART_EXPORT void dart::StopWorkSimulator ()
 
DART_EXPORT void dart::ExecuteCallback (Work *work_ptr)
 
DART_EXPORT void * dart::Calloc (size_t count, size_t size)
 
DART_EXPORT void dart::FreeFinalizer (void *, void *value)
 
uint8_t dart::MyCallback1 (uint8_t a)
 
void dart::MyCallback2 (uint8_t a)
 
void dart::Work1_2 ()
 
void dart::Work2_2 ()
 
DART_EXPORT void dart::RegisterSendPort (Dart_Port send_port)
 
DART_EXPORT void dart::StartWorkSimulator2 ()
 
DART_EXPORT void dart::StopWorkSimulator2 ()
 
DART_EXPORT void dart::ThreadPoolTest_BarrierSync (Dart_Isolate(*dart_current_isolate)(), void(*dart_enter_isolate)(Dart_Isolate), void(*dart_exit_isolate)(), intptr_t num_threads)
 
DART_EXPORT void dart::IsolateExitTest_LookupAndCallIsolateExit (int i)
 
static void dart::RunFinalizer (void *isolate_callback_data, void *peer)
 
DART_EXPORT Dart_Handle dart::PassObjectToC (Dart_Handle h)
 
DART_EXPORT void dart::ClosureCallbackThroughHandle (void(*callback)(Dart_Handle), Dart_Handle closureHandle)
 
DART_EXPORT Dart_Handle dart::ReturnHandleInCallback (Dart_Handle(*callback)())
 
DART_EXPORT Dart_Handle dart::HandleRecursion (Dart_Handle object, Dart_Handle(*callback)(int64_t), int64_t i)
 
DART_EXPORT int64_t dart::HandleReadFieldValue (Dart_Handle handle)
 
DART_EXPORT int64_t dart::PropagateErrorWithoutHandle (Dart_Handle(*callback)())
 
DART_EXPORT Dart_Handle dart::ThrowOnReturnOfError (Dart_Handle(*callback)())
 
DART_EXPORT Dart_Handle dart::TrueHandle ()
 
DART_EXPORT Dart_Handle dart::PassObjectToCUseDynamicLinking (Dart_Handle h)
 
DART_EXPORT void dart::RegisterClosureCallbackFP (void(*callback)(Dart_Handle))
 
DART_EXPORT void dart::RegisterClosureCallback (Dart_Handle h)
 
DART_EXPORT void dart::InvokeClosureCallback ()
 
DART_EXPORT void dart::ReleaseClosureCallback ()
 
DART_EXPORT void dart::SetArgumentTo42 (void *token)
 
DART_EXPORT Dart_Handle dart::GetRootLibraryUrl ()
 
intptr_t dart::ReturnIntPtr (intptr_t x)
 
intptr_t dart::PassAsHandle (Dart_Handle handle)
 
intptr_t dart::PassAsPointer (void *ptr)
 
intptr_t dart::PassAsPointerAndValue (void *ptr, intptr_t value)
 
intptr_t dart::PassAsValueAndPointer (intptr_t value, void *ptr)
 
intptr_t * dart::AllocateResource (intptr_t value)
 
void dart::DeleteResource (intptr_t *resource)
 
intptr_t dart::GetResourceValue (intptr_t *resource)
 
void dart::DummyResourceFinalizer (void *isolate_peer, void *peer)
 
void dart::SetResourceFinalizer (Dart_Handle handle, intptr_t *resource)
 
intptr_t dart::AddPtrAndInt (void *self, intptr_t x)
 
intptr_t dart::AddHandleFieldAndInt (Dart_Handle self, intptr_t x)
 
intptr_t dart::AddPtrAndPtr (void *self, void *other)
 
intptr_t dart::AddHandleFieldAndPtr (Dart_Handle self, void *other)
 
intptr_t dart::AddHandleFieldAndHandleField (Dart_Handle self, Dart_Handle other)
 
intptr_t dart::AddPtrAndHandleField (void *self, Dart_Handle other)
 
intptr_t dart::ReturnIntPtrMethod (Dart_Handle self, intptr_t value)
 
static void * dart::FfiNativeResolver (const char *name, uintptr_t args_n)
 
DART_EXPORT void dart::SetFfiNativeResolverForTest (Dart_Handle url)
 
DART_EXPORT void dart::WaitUntilNThreadsEnterBarrier (intptr_t num_threads)
 
DART_EXPORT bool dart::IsNull (Dart_Handle object)
 
DART_EXPORT RefCountedResource * dart::AllocateRefcountedResource ()
 
DART_EXPORT void dart::IncreaseRefcount (RefCountedResource *peer)
 
DART_EXPORT void dart::DecreaseRefcount (void *peer)
 
DART_EXPORT void dart::TestDeprecatedSymbols ()
 
DART_EXPORT void dart::SemanticsUpdateBuilderUpdateNode (void *this_, int id, int flags, int actions, int maxValueLength, int currentValueLength, int textSelectionBase, int textSelectionExtent, int platformViewId, int scrollChildren, int scrollIndex, double scrollPosition, double scrollExtentMax, double scrollExtentMin, double left, double top, double right, double bottom, double elevation, double thickness, Dart_Handle label, Dart_Handle labelAttributes, Dart_Handle value, Dart_Handle valueAttributes, Dart_Handle increasedValue, Dart_Handle increasedValueAttributes, Dart_Handle decreasedValue, Dart_Handle decreasedValueAttributes, Dart_Handle hint, Dart_Handle hintAttributes, Dart_Handle tooltip, int textDirection, Dart_Handle transform, Dart_Handle childrenInTraversalOrder, Dart_Handle childrenInHitTestOrder, Dart_Handle localContextActions)
 
DART_EXPORT void dart::ManyHandles (Dart_Handle o0, Dart_Handle o1, Dart_Handle o2, Dart_Handle o3, Dart_Handle o4, Dart_Handle o5, Dart_Handle o6, Dart_Handle o7, Dart_Handle o8, Dart_Handle o9, Dart_Handle o10, Dart_Handle o11, Dart_Handle o12, Dart_Handle o13, Dart_Handle o14, Dart_Handle o15, Dart_Handle o16, Dart_Handle o17, Dart_Handle o18, Dart_Handle o19)
 

Variables

intptr_t(* dart::my_callback_blocking_fp_ )(intptr_t)
 
Dart_Port dart::my_callback_blocking_send_port_
 
void(* dart::my_callback_non_blocking_fp_ )(intptr_t)
 
Dart_Port dart::my_callback_non_blocking_send_port_
 
Dart_Port dart::send_port_
 
void(* dart::callback_ )(Dart_Handle)
 
Dart_PersistentHandle dart::closure_to_callback_
 
std::mutex dart::ref_counted_resource_mutex
 

Macro Definition Documentation

◆ CHECK

#define CHECK (   X)
Value:
if (!(X)) { \
fprintf(stderr, "%s\n", "Check failed: " #X); \
return 1; \
}
static const SkScalar X
Definition: StrokeBench.cpp:54

Definition at line 46 of file ffi_test_functions_vmspecific.cc.

◆ CHECK_EQ

#define CHECK_EQ (   X,
  Y 
)    CHECK((X) == (Y))

Definition at line 52 of file ffi_test_functions_vmspecific.cc.

◆ CHECK_STRING

#define CHECK_STRING (   o)
Value:
if (!Dart_IsString(o)) { \
FATAL("expected Dart_IsString"); \
}
DART_EXPORT bool Dart_IsString(Dart_Handle object)

◆ ENSURE

#define ENSURE (   X)
Value:
if (!(X)) { \
fprintf(stderr, "%s:%d: %s\n", __FILE__, __LINE__, "Check failed: " #X); \
exit(1); \
}

Definition at line 54 of file ffi_test_functions_vmspecific.cc.

◆ FATAL

#define FATAL (   error)    Fatal(__FILE__, __LINE__, error)

Definition at line 435 of file ffi_test_functions_vmspecific.cc.