Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Namespaces | Macros | Typedefs | Variables
globals.h File Reference
#include "platform/globals.h"

Go to the source code of this file.

Namespaces

namespace  dart
 

Macros

#define kPosInfinity   bit_cast<double>(DART_UINT64_C(0x7ff0000000000000))
 
#define kNegInfinity   bit_cast<double>(DART_UINT64_C(0xfff0000000000000))
 
#define ARRAY_SIZE(array)
 
#define NOT_IN_PRODUCT(code)   code
 
#define ONLY_IN_PRODUCT(code)
 
#define NOT_IN_PRECOMPILED(code)   code
 
#define ONLY_IN_PRECOMPILED(code)
 
#define NOT_IN_IA32(code)   code
 
#define NOT_IN_PRECOMPILED_RUNTIME(code)   code
 
#define SUPPORT_TIMELINE   1
 
#define OFFSET_OF(type, field)
 
#define OFFSET_OF_RETURNED_VALUE(type, accessor)
 
#define SIZE_OF_RETURNED_VALUE(type, method)    sizeof(reinterpret_cast<type*>(kOffsetOfPtr)->method())
 
#define SIZE_OF_DEREFERENCED_RETURNED_VALUE(type, method)    sizeof(*(reinterpret_cast<type*>(kOffsetOfPtr))->method())
 
#define OPEN_ARRAY_START(type, align)
 
#define ALIGN8   __attribute__((aligned(8)))
 
#define ALIGN16   __attribute__((aligned(16)))
 
#define COPY_FP_REGISTER(fp)    fp = reinterpret_cast<uintptr_t>(__builtin_frame_address(0));
 

Typedefs

typedef uintptr_t dart::compressed_uword
 
typedef intptr_t dart::compressed_word
 
typedef uword dart::cpp_vtable
 

Variables

const intptr_t dart::kSmiBits = kBitsPerWord - 2
 
const intptr_t dart::kSmiMax = (static_cast<intptr_t>(1) << kSmiBits) - 1
 
const intptr_t dart::kSmiMin = -(static_cast<intptr_t>(1) << kSmiBits)
 
const intptr_t dart::kSmiBits32 = kBitsPerInt32 - 2
 
const intptr_t dart::kSmiMax32 = (static_cast<intptr_t>(1) << kSmiBits32) - 1
 
const intptr_t dart::kSmiMin32 = -(static_cast<intptr_t>(1) << kSmiBits32)
 
static constexpr intptr_t dart::kCompressedWordSize = kWordSize
 
static constexpr intptr_t dart::kCompressedWordSizeLog2 = kWordSizeLog2
 
const intptr_t dart::kMaxAddrSpaceMB = (kWordSize <= 4) ? 4096 : 268435456
 
const intptr_t dart::kMaxAddrSpaceInWords
 
const intptr_t dart::kBytesPerBigIntDigit = 4
 
const intptr_t dart::kDefaultMaxOldGenHeapSize = (kWordSize <= 4) ? 1536 : 30720
 
const intptr_t dart::kDefaultNewGenSemiMaxSize = (kWordSize <= 4) ? 8 : 16
 
const intptr_t dart::kOffsetOfPtr = 32
 
static constexpr uword dart::kZapUninitializedWord = 0xabababababababab
 
static constexpr intptr_t dart::kAllocationCanary = 123
 

Macro Definition Documentation

◆ ALIGN16

#define ALIGN16   __attribute__((aligned(16)))

Definition at line 172 of file globals.h.

◆ ALIGN8

#define ALIGN8   __attribute__((aligned(8)))

Definition at line 171 of file globals.h.

◆ ARRAY_SIZE

#define ARRAY_SIZE (   array)
Value:
((sizeof(array) / sizeof(*(array))) / \
static_cast<intptr_t>(!(sizeof(array) % sizeof(*(array)))))

Definition at line 72 of file globals.h.

◆ COPY_FP_REGISTER

#define COPY_FP_REGISTER (   fp)     fp = reinterpret_cast<uintptr_t>(__builtin_frame_address(0));

Definition at line 200 of file globals.h.

◆ kNegInfinity

#define kNegInfinity   bit_cast<double>(DART_UINT64_C(0xfff0000000000000))

Definition at line 66 of file globals.h.

◆ kPosInfinity

#define kPosInfinity   bit_cast<double>(DART_UINT64_C(0x7ff0000000000000))

Definition at line 65 of file globals.h.

◆ NOT_IN_IA32

#define NOT_IN_IA32 (   code)    code

Definition at line 107 of file globals.h.

◆ NOT_IN_PRECOMPILED

#define NOT_IN_PRECOMPILED (   code)    code

Definition at line 100 of file globals.h.

◆ NOT_IN_PRECOMPILED_RUNTIME

#define NOT_IN_PRECOMPILED_RUNTIME (   code)    code

Definition at line 113 of file globals.h.

◆ NOT_IN_PRODUCT

#define NOT_IN_PRODUCT (   code )    code

Definition at line 84 of file globals.h.

◆ OFFSET_OF

#define OFFSET_OF (   type,
  field 
)
Value:
(reinterpret_cast<intptr_t>( \
&(reinterpret_cast<type*>(kOffsetOfPtr)->field)) - \
kOffsetOfPtr)

Definition at line 138 of file globals.h.

◆ OFFSET_OF_RETURNED_VALUE

#define OFFSET_OF_RETURNED_VALUE (   type,
  accessor 
)
Value:
(reinterpret_cast<intptr_t>( \
(reinterpret_cast<type*>(kOffsetOfPtr)->accessor())) - \
kOffsetOfPtr)

Definition at line 143 of file globals.h.

◆ ONLY_IN_PRECOMPILED

#define ONLY_IN_PRECOMPILED (   code)

Definition at line 101 of file globals.h.

◆ ONLY_IN_PRODUCT

#define ONLY_IN_PRODUCT (   code)

Definition at line 85 of file globals.h.

◆ OPEN_ARRAY_START

#define OPEN_ARRAY_START (   type,
  align 
)
Value:
do { \
const uword result = reinterpret_cast<uword>(this) + sizeof(*this); \
ASSERT(Utils::IsAligned(result, alignof(align))); \
return reinterpret_cast<type*>(result); \
} while (0)
GAsyncResult * result

Definition at line 154 of file globals.h.

155 { \
156 const uword result = reinterpret_cast<uword>(this) + sizeof(*this); \
157 ASSERT(Utils::IsAligned(result, alignof(align))); \
158 return reinterpret_cast<type*>(result); \
159 } while (0)
uintptr_t uword
Definition globals.h:501

◆ SIZE_OF_DEREFERENCED_RETURNED_VALUE

#define SIZE_OF_DEREFERENCED_RETURNED_VALUE (   type,
  method 
)     sizeof(*(reinterpret_cast<type*>(kOffsetOfPtr))->method())

Definition at line 151 of file globals.h.

◆ SIZE_OF_RETURNED_VALUE

#define SIZE_OF_RETURNED_VALUE (   type,
  method 
)     sizeof(reinterpret_cast<type*>(kOffsetOfPtr)->method())

Definition at line 148 of file globals.h.

◆ SUPPORT_TIMELINE

#define SUPPORT_TIMELINE   1

Definition at line 120 of file globals.h.