161 vfprintf(stdout, format, args);
167 va_start(args, format);
174 vfprintf(out, format, args);
182 va_start(args, format);
191 vfprintf(stderr, format, args);
201 int OS::VSNPrintF(
char* str,
size_t size,
const char* format, va_list args) {
253 void OS::Free(
void* buf,
const size_t length) {
259 void OS::Guard(
void* address,
const size_t size) {
343 class Thread::PlatformData :
public Malloced {
355 stack_size_(options.stack_size) {
356 set_name(options.
name);
362 : data_(new PlatformData()),
375 void Thread::set_name(
const char*
name) {
376 strncpy(name_, name,
sizeof(name_));
377 name_[
sizeof(name_) - 1] =
'\0';
445 return new NullMutex();
473 return new NullSemaphore(count);
485 ProfileSampler::ProfileSampler(
int interval) {
488 data_ =
new PlatformData();
489 interval_ = interval;
494 ProfileSampler::~ProfileSampler() {
501 void ProfileSampler::Start() {
506 void ProfileSampler::Stop() {
double fast_tan(double x)
static void * GetThreadLocal(LocalStorageKey key)
static void Free(void *address, const size_t size)
Thread(const Options &options)
static int VSNPrintF(Vector< char > str, const char *format, va_list args)
static void SignalCodeMovingGC()
static bool IsOutsideAllocatedSpace(void *pointer)
static const char * LocalTimezone(double time)
static int GetUserTime(uint32_t *secs, uint32_t *usecs)
static void VFPrint(FILE *out, const char *format, va_list args)
double fast_sin(double x)
static MemoryMappedFile * open(const char *name)
bool Guard(void *address)
static LocalStorageKey CreateThreadLocalKey()
static MemoryMappedFile * create(const char *name, int size, void *initial)
double fast_log(double x)
bool Commit(void *address, size_t size, bool is_executable)
static void VPrint(const char *format, va_list args)
static void Guard(void *address, const size_t size)
static void VPrintError(const char *format, va_list args)
double modulo(double x, double y)
static bool ArmCpuHasFeature(CpuFeature feature)
static Mutex * CreateMutex()
static double TimeCurrentMillis()
static CpuImplementer GetCpuImplementer()
static void DeleteThreadLocalKey(LocalStorageKey key)
static void Sleep(const int milliseconds)
static void Print(const char *format,...)
static int SNPrintF(Vector< char > str, const char *format,...)
static Semaphore * CreateSemaphore(int count)
static double nan_value()
static void SetThreadLocal(LocalStorageKey key, void *value)
static void * Allocate(const size_t requested, size_t *allocated, bool is_executable)
static int StackWalk(Vector< StackFrame > frames)
static void PrintError(const char *format,...)
static void LogSharedLibraryAddresses()
const char * name() const
static double DaylightSavingsOffset(double time)
static size_t AllocateAlignment()
activate correct semantics for inheriting readonliness enable harmony semantics for typeof enable harmony enable harmony proxies enable all harmony harmony_scoping harmony_proxies harmony_scoping tracks arrays with only smi values automatically unbox arrays of doubles use crankshaft use hydrogen range analysis use hydrogen global value numbering use function inlining maximum number of AST nodes considered for a single inlining loop invariant code motion print statistics for hydrogen trace generated IR for specified phases trace register allocator trace range analysis trace representation types environment for every instruction put a break point before deoptimizing polymorphic inlining perform array bounds checks elimination use dead code elimination trace on stack replacement optimize closures cache optimized code for closures functions with arguments object loop weight for representation inference allow uint32 values on optimize frames if they are used only in safe operations track parallel recompilation enable all profiler experiments number of stack frames inspected by the profiler call recompile stub directly when self optimizing trigger profiler ticks based on counting instead of timing weight back edges by jump distance for interrupt triggering percentage of ICs that must have type info to allow optimization watch_ic_patching retry_self_opt interrupt_at_exit extra verbose compilation tracing generate extra emit comments in code disassembly enable use of SSE3 instructions if available enable use of CMOV instruction if available enable use of SAHF instruction if enable use of VFP3 instructions if available this implies enabling ARMv7 and VFP2 enable use of VFP2 instructions if available enable use of SDIV and UDIV instructions if enable loading bit constant by means of movw movt instruction enable unaligned accesses for enable use of MIPS FPU instructions if NULL
static uint64_t CpuFeaturesImpliedByPlatform()
static int GetLastError()
static void FPrint(FILE *out, const char *format,...)
double fast_cos(double x)
static double LocalTimeOffset()
static bool ArmUsingHardFloat()
bool Uncommit(void *address, size_t size)
const char * name() const