71 {
72 const char* url_string = nullptr;
76 }
80 return library_url;
81 }
82 const char* library_url_string = nullptr;
86 }
89 if (is_dart_scheme_url || is_dart_library) {
90 return url;
91 }
92 const char* url_cstr;
96 }
98 if (!resolved_uri) {
100 __FUNCTION__, url_cstr);
101 }
104 }
105#if !defined(DART_PRECOMPILED_RUNTIME)
107 uint8_t* kernel_buffer = nullptr;
108 intptr_t kernel_buffer_size = 0;
110 &kernel_buffer_size)) {
112 }
114 }
117
118 char*
error =
nullptr;
119 int exit_code = 0;
120 uint8_t* kernel_buffer = nullptr;
121 intptr_t kernel_buffer_size = -1;
123 &
error, &exit_code,
nullptr,
124 false, true);
125 if (exit_code == 0) {
132 } else {
136 }
137 }
139#else
141#endif
142}
bool TryReadKernelFile(const char *script_uri, const AppSnapshot *app_snapshot, uint8_t **kernel_buffer, intptr_t *kernel_buffer_size, bool decode_uri=true, std::shared_ptr< uint8_t > *kernel_blob_ptr=nullptr)
void CompileAndReadScript(const char *script_uri, uint8_t **kernel_buffer, intptr_t *kernel_buffer_size, char **error, int *exit_code, const char *package_config, bool for_snapshot, bool embed_sources)
bool CanUseDartFrontend() const
bool UseDartFrontend() const
static Dart_Handle NewError(const char *format,...)
static bool IsDartSchemeURL(const char *url_name)
const uint8_t uint32_t uint32_t GError ** error
constexpr int kCompilationErrorExitCode
static Dart_Handle WrapMallocedKernelBuffer(uint8_t *kernel_buffer, intptr_t kernel_buffer_size)
CAllocUniquePtr< char > CStringUniquePtr
DART_EXPORT bool Dart_IsError(Dart_Handle handle)
CStringUniquePtr ResolveUri(const char *ref_uri, const char *base_uri)
DART_EXPORT Dart_Handle Dart_LoadLibrary(Dart_Handle kernel_buffer)
DART_EXPORT Dart_Handle Dart_NewApiError(const char *error)
DART_EXPORT Dart_Handle Dart_NewCompilationError(const char *error)
DART_EXPORT Dart_Handle Dart_LibraryUrl(Dart_Handle library)
DART_EXPORT Dart_Handle Dart_StringToCString(Dart_Handle object, const char **cstr)
DART_EXPORT Dart_Handle Dart_NewStringFromCString(const char *str)