Flutter Engine
The Flutter Engine
Classes | Namespaces | Macros
token_position.h File Reference
#include "platform/utils.h"
#include "vm/allocation.h"

Go to the source code of this file.

Classes

class  dart::TokenPosition
 

Namespaces

namespace  dart
 

Macros

#define SENTINEL_TOKEN_DESCRIPTORS(V)
 
#define DECLARE_VALUES(name, value)
 
#define CHECK_VALUES(name, value)
 

Macro Definition Documentation

◆ CHECK_VALUES

#define CHECK_VALUES (   name,
  value 
)
Value:
static_assert(k##name##Pos < 0, "Non-negative sentinel descriptor"); \
static_assert( \
k##name##Pos == kNoSourcePos || k##name##Pos <= kBoxPos, \
"Box sentinel descriptor is not greatest classifying sentinel value"); \
static_assert(kLastPos <= k##name##Pos, \
"Last sentinel descriptor is not least sentinel valu"); \
SENTINEL_TOKEN_DESCRIPTORS(CHECK_VALUES);
DEF_SWITCHES_START aot vmservice shared library name
Definition: switches.h:32
#define CHECK_VALUES(name, value)

Definition at line 142 of file token_position.h.

◆ DECLARE_VALUES

#define DECLARE_VALUES (   name,
  value 
)
Value:
static constexpr int32_t k##name##Pos = value; \
static const TokenPosition k##name;
uint8_t value

Definition at line 136 of file token_position.h.

◆ SENTINEL_TOKEN_DESCRIPTORS

#define SENTINEL_TOKEN_DESCRIPTORS (   V)
Value:
V(NoSource, -1) \
V(Box, -2) \
V(ParallelMove, -3) \
V(TempMove, -4) \
V(Constant, -5) \
V(MoveArgument, -6) \
V(ControlFlow, -7) \
V(Context, -8) \
V(MethodExtractor, -9) \
V(DeferredSlowPath, -10) \
V(DeferredDeoptInfo, -11) \
V(DartCodePrologue, -12) \
V(DartCodeEpilogue, -13) \
V(Last, -14)
#define V(name)
Definition: raw_object.h:125

Definition at line 43 of file token_position.h.