Flutter Engine
The Flutter Engine
Classes | Namespaces | Macros | Typedefs | Functions | Variables
globals.h File Reference
#include <arpa/inet.h>
#include <unistd.h>
#include <float.h>
#include <inttypes.h>
#include <limits.h>
#include <math.h>
#include <stdarg.h>
#include <stddef.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <cassert>
#include "platform/floating_point.h"

Go to the source code of this file.

Classes

struct  dart::simd128_value_t
 

Namespaces

namespace  dart
 

Macros

#define FALL_THROUGH   ((void)0)
 
#define NDEBUG
 
#define __STDC_FORMAT_MACROS
 
#define DEBUG_ONLY(code)
 
#define LIKELY(cond)   cond
 
#define UNLIKELY(cond)   cond
 
#define DART_UNUSED
 
#define DART_USED
 
#define Pd   PRIdPTR
 
#define Pu   PRIuPTR
 
#define Px   PRIxPTR
 
#define PX   PRIXPTR
 
#define Pd32   PRId32
 
#define Pu32   PRIu32
 
#define Px32   PRIx32
 
#define PX32   PRIX32
 
#define Pd64   PRId64
 
#define Pu64   PRIu64
 
#define Px64   PRIx64
 
#define PX64   PRIX64
 
#define Pp   "016" PRIxPTR
 
#define DART_INT64_C(x)   x##LL
 
#define DART_UINT64_C(x)   x##ULL
 
#define DART_2PART_UINT64_C(a, b)    (((static_cast<uint64_t>(a) << kBitsPerInt32) + 0x##b##u))
 
#define DISALLOW_COPY_AND_ASSIGN(TypeName)
 
#define DISALLOW_IMPLICIT_CONSTRUCTORS(TypeName)
 
#define DISALLOW_ALLOCATION()
 
#define PRINTF_ATTRIBUTE(string_index, first_to_check)
 
#define PATH_MAX   MAX_PATH
 
#define INCLUDE_IL_PRINTER   1
 
#define FORCE_INCLUDE_DISASSEMBLER   1
 
#define DART_ENABLE_HEAP_SNAPSHOT_WRITER   1
 

Typedefs

typedef intptr_t dart::word
 
typedef uintptr_t dart::uword
 
typedef int32_t dart::classid_t
 

Functions

constexpr intptr_t dart::RoundWordsToKB (intptr_t size_in_words)
 
constexpr intptr_t dart::RoundWordsToMB (intptr_t size_in_words)
 
constexpr intptr_t dart::RoundWordsToGB (intptr_t size_in_words)
 
constexpr double dart::WordsToMB (intptr_t size_in_words)
 
constexpr double dart::MicrosecondsToSeconds (int64_t micros)
 
constexpr double dart::MicrosecondsToMilliseconds (int64_t micros)
 
template<typename T >
static void dart::USE (T &&)
 
template<class D , class S >
DART_FORCE_INLINE D dart::bit_cast (const S &source)
 
template<class D , class S >
DART_FORCE_INLINE D dart::bit_copy (const S &source)
 

Variables

constexpr intptr_t dart::kInt8SizeLog2 = 0
 
constexpr intptr_t dart::kInt8Size = 1 << kInt8SizeLog2
 
constexpr intptr_t dart::kInt16SizeLog2 = 1
 
constexpr intptr_t dart::kInt16Size = 1 << kInt16SizeLog2
 
constexpr intptr_t dart::kInt32SizeLog2 = 2
 
constexpr intptr_t dart::kInt32Size = 1 << kInt32SizeLog2
 
constexpr intptr_t dart::kInt64SizeLog2 = 3
 
constexpr intptr_t dart::kInt64Size = 1 << kInt64SizeLog2
 
constexpr intptr_t dart::kDoubleSize = sizeof(double)
 
constexpr intptr_t dart::kFloatSize = sizeof(float)
 
constexpr intptr_t dart::kQuadSize = 4 * kFloatSize
 
constexpr intptr_t dart::kSimd128Size = sizeof(simd128_value_t)
 
constexpr intptr_t dart::kBitsPerByteLog2 = 3
 
constexpr intptr_t dart::kBitsPerByte = 1 << kBitsPerByteLog2
 
constexpr intptr_t dart::kBitsPerInt8 = kInt8Size * kBitsPerByte
 
constexpr intptr_t dart::kBitsPerInt16 = kInt16Size * kBitsPerByte
 
constexpr intptr_t dart::kBitsPerInt32 = kInt32Size * kBitsPerByte
 
constexpr intptr_t dart::kBitsPerInt64 = kInt64Size * kBitsPerByte
 
constexpr int8_t dart::kMinInt8 = 0x80
 
constexpr int8_t dart::kMaxInt8 = 0x7F
 
constexpr uint8_t dart::kMaxUint8 = 0xFF
 
constexpr int16_t dart::kMinInt16 = 0x8000
 
constexpr int16_t dart::kMaxInt16 = 0x7FFF
 
constexpr uint16_t dart::kMaxUint16 = 0xFFFF
 
constexpr int32_t dart::kMinInt32 = 0x80000000
 
constexpr int32_t dart::kMaxInt32 = 0x7FFFFFFF
 
constexpr uint32_t dart::kMaxUint32 = 0xFFFFFFFF
 
constexpr int64_t dart::kMinInt64 = DART_INT64_C(0x8000000000000000)
 
constexpr int64_t dart::kMaxInt64 = DART_INT64_C(0x7FFFFFFFFFFFFFFF)
 
constexpr uint64_t dart::kMaxUint64 = DART_2PART_UINT64_C(0xFFFFFFFF, FFFFFFFF)
 
constexpr int dart::kMinInt = INT_MIN
 
constexpr int dart::kMaxInt = INT_MAX
 
constexpr int dart::kMaxUint = UINT_MAX
 
constexpr int64_t dart::kMinInt64RepresentableAsDouble = kMinInt64
 
constexpr int64_t dart::kMaxInt64RepresentableAsDouble
 
constexpr int64_t dart::kSignBitDouble = DART_INT64_C(0x8000000000000000)
 
constexpr intptr_t dart::kWordSizeLog2 = kInt64SizeLog2
 
constexpr intptr_t dart::kWordSize = 1 << kWordSizeLog2
 
constexpr intptr_t dart::kBitsPerWordLog2 = kWordSizeLog2 + kBitsPerByteLog2
 
constexpr intptr_t dart::kBitsPerWord = 1 << kBitsPerWordLog2
 
constexpr word dart::kWordMin = static_cast<uword>(1) << (kBitsPerWord - 1)
 
constexpr word dart::kWordMax = (static_cast<uword>(1) << (kBitsPerWord - 1)) - 1
 
constexpr uword dart::kUwordMax = static_cast<uword>(-1)
 
constexpr intptr_t dart::KBLog2 = 10
 
constexpr intptr_t dart::KB = 1 << KBLog2
 
constexpr intptr_t dart::MBLog2 = KBLog2 + KBLog2
 
constexpr intptr_t dart::MB = 1 << MBLog2
 
constexpr intptr_t dart::GBLog2 = MBLog2 + KBLog2
 
constexpr intptr_t dart::GB = 1 << GBLog2
 
constexpr intptr_t dart::KBInWordsLog2 = KBLog2 - kWordSizeLog2
 
constexpr intptr_t dart::KBInWords = 1 << KBInWordsLog2
 
constexpr intptr_t dart::MBInWordsLog2 = KBLog2 + KBInWordsLog2
 
constexpr intptr_t dart::MBInWords = 1 << MBInWordsLog2
 
constexpr intptr_t dart::GBInWordsLog2 = MBLog2 + KBInWordsLog2
 
constexpr intptr_t dart::GBInWords = 1 << GBInWordsLog2
 
constexpr intptr_t dart::kIntptrOne = 1
 
constexpr intptr_t dart::kIntptrMin = (kIntptrOne << (kBitsPerWord - 1))
 
constexpr intptr_t dart::kIntptrMax = ~kIntptrMin
 
constexpr intptr_t dart::kMillisecondsPerSecond = 1000
 
constexpr intptr_t dart::kMicrosecondsPerMillisecond = 1000
 
constexpr intptr_t dart::kMicrosecondsPerSecond
 
constexpr intptr_t dart::kNanosecondsPerMicrosecond = 1000
 
constexpr intptr_t dart::kNanosecondsPerMillisecond
 
constexpr intptr_t dart::kNanosecondsPerSecond
 

Macro Definition Documentation

◆ __STDC_FORMAT_MACROS

#define __STDC_FORMAT_MACROS

Definition at line 33 of file globals.h.

◆ DART_2PART_UINT64_C

#define DART_2PART_UINT64_C (   a,
  b 
)     (((static_cast<uint64_t>(a) << kBitsPerInt32) + 0x##b##u))

Definition at line 472 of file globals.h.

◆ DART_ENABLE_HEAP_SNAPSHOT_WRITER

#define DART_ENABLE_HEAP_SNAPSHOT_WRITER   1

Definition at line 729 of file globals.h.

◆ DART_INT64_C

#define DART_INT64_C (   x)    x##LL

Definition at line 433 of file globals.h.

◆ DART_UINT64_C

#define DART_UINT64_C (   x)    x##ULL

Definition at line 434 of file globals.h.

◆ DART_UNUSED

#define DART_UNUSED

Definition at line 269 of file globals.h.

◆ DART_USED

#define DART_USED

Definition at line 277 of file globals.h.

◆ DEBUG_ONLY

#define DEBUG_ONLY (   code)

Definition at line 141 of file globals.h.

◆ DISALLOW_ALLOCATION

#define DISALLOW_ALLOCATION ( )
Value:
public: \
void operator delete(void* pointer) { \
fprintf(stderr, "unreachable code\n"); \
abort(); \
} \
\
private: \
void* operator new(size_t size);
it will be possible to load the file into Perfetto s trace viewer disable asset Prevents usage of any non test fonts unless they were explicitly Loaded via prefetched default font Indicates whether the embedding started a prefetch of the default font manager before creating the engine run In non interactive keep the shell running after the Dart script has completed enable serial On low power devices with low core running concurrent GC tasks on threads can cause them to contend with the UI thread which could potentially lead to jank This option turns off all concurrent GC activities domain network JSON encoded network policy per domain This overrides the DisallowInsecureConnections switch Embedder can specify whether to allow or disallow insecure connections at a domain level old gen heap size
Definition: switches.h:259

Definition at line 604 of file globals.h.

◆ DISALLOW_COPY_AND_ASSIGN

#define DISALLOW_COPY_AND_ASSIGN (   TypeName)
Value:
private: \
TypeName(const TypeName&) = delete; \
void operator=(const TypeName&) = delete

Definition at line 581 of file globals.h.

◆ DISALLOW_IMPLICIT_CONSTRUCTORS

#define DISALLOW_IMPLICIT_CONSTRUCTORS (   TypeName)
Value:
private: \
TypeName() = delete; \
DISALLOW_COPY_AND_ASSIGN(TypeName)

Definition at line 593 of file globals.h.

◆ FALL_THROUGH

#define FALL_THROUGH   ((void)0)

Definition at line 15 of file globals.h.

◆ FORCE_INCLUDE_DISASSEMBLER

#define FORCE_INCLUDE_DISASSEMBLER   1

Definition at line 723 of file globals.h.

◆ INCLUDE_IL_PRINTER

#define INCLUDE_IL_PRINTER   1

Definition at line 721 of file globals.h.

◆ LIKELY

#define LIKELY (   cond)    cond

Definition at line 260 of file globals.h.

◆ NDEBUG

#define NDEBUG

Definition at line 26 of file globals.h.

◆ PATH_MAX

#define PATH_MAX   MAX_PATH

Definition at line 708 of file globals.h.

◆ Pd

#define Pd   PRIdPTR

Definition at line 408 of file globals.h.

◆ Pd32

#define Pd32   PRId32

Definition at line 412 of file globals.h.

◆ Pd64

#define Pd64   PRId64

Definition at line 416 of file globals.h.

◆ Pp

#define Pp   "016" PRIxPTR

Definition at line 425 of file globals.h.

◆ PRINTF_ATTRIBUTE

#define PRINTF_ATTRIBUTE (   string_index,
  first_to_check 
)

Definition at line 697 of file globals.h.

◆ Pu

#define Pu   PRIuPTR

Definition at line 409 of file globals.h.

◆ Pu32

#define Pu32   PRIu32

Definition at line 413 of file globals.h.

◆ Pu64

#define Pu64   PRIu64

Definition at line 417 of file globals.h.

◆ Px

#define Px   PRIxPTR

Definition at line 410 of file globals.h.

◆ PX

#define PX   PRIXPTR

Definition at line 411 of file globals.h.

◆ Px32

#define Px32   PRIx32

Definition at line 414 of file globals.h.

◆ PX32

#define PX32   PRIX32

Definition at line 415 of file globals.h.

◆ Px64

#define Px64   PRIx64

Definition at line 418 of file globals.h.

◆ PX64

#define PX64   PRIX64

Definition at line 419 of file globals.h.

◆ UNLIKELY

#define UNLIKELY (   cond)    cond

Definition at line 261 of file globals.h.