5#ifndef RUNTIME_BIN_PLATFORM_H_
6#define RUNTIME_BIN_PLATFORM_H_
14#if defined(DART_HOST_OS_MACOS)
72 executable_name_ = executable_name;
76 if (resolved_executable_name_.
load() ==
nullptr) {
79 if (resolved_name !=
nullptr) {
81 const char* expect_old_is_null =
nullptr;
83 expect_old_is_null, resolved_name_copy)) {
84 free(resolved_name_copy);
88 return resolved_executable_name_.
load();
93 script_index_ = script_index;
101 DART_NORETURN
static void Exit(
int exit_code);
102 DART_NORETURN
static void _Exit(
int exit_code);
106#if defined(DART_HOST_OS_FUCHSIA)
107 static zx_handle_t GetVMEXResource();
112 static const char* executable_name_;
120 static int script_index_;
123 DISALLOW_ALLOCATION();
T load(std::memory_order order=std::memory_order_acquire) const
bool compare_exchange_strong(T &expected, T desired, std::memory_order success_order=std::memory_order_acq_rel, std::memory_order failure_order=std::memory_order_acquire)
static char * StrDup(const char *s)
static const uint8_t buffer[]