Go to the source code of this file.
|
#define | PRODUCT_DEF "!defined(PRODUCT)" |
|
#define | COMPRESSED_DEF "!defined(DART_COMPRESSED_POINTERS)" |
|
#define | PREPROCESSOR_CONDITION "#if " PRODUCT_DEF " && " ARCH_DEF_CPU " && " COMPRESSED_DEF |
|
#define | PREPROCESSOR_CONDITION_END |
|
#define | PRINT_ARRAY_SIZEOF(Class, Name, ElementOffset) |
|
#define | PRINT_PAYLOAD_SIZEOF(Class, Name, HeaderSize) |
|
#define | PRINT_FIELD_OFFSET(Class, Name) |
|
#define | PRINT_ARRAY_LAYOUT(Class, Name) |
|
#define | PRINT_SIZEOF(Class, Name, What) |
|
#define | PRINT_RANGE(Class, Name, Type, First, Last, Filter) |
|
#define | PRINT_CONSTANT(Class, Name) |
|
◆ COMPRESSED_DEF
#define COMPRESSED_DEF "!defined(DART_COMPRESSED_POINTERS)" |
◆ PREPROCESSOR_CONDITION
#define PREPROCESSOR_CONDITION "#if " PRODUCT_DEF " && " ARCH_DEF_CPU " && " COMPRESSED_DEF |
◆ PREPROCESSOR_CONDITION_END
#define PREPROCESSOR_CONDITION_END |
◆ PRINT_ARRAY_LAYOUT
#define PRINT_ARRAY_LAYOUT |
( |
|
Class, |
|
|
|
Name |
|
) |
| |
Value: std::cout << "static constexpr dart::compiler::target::word " #Class \
"_elements_start_offset = 0x" \
<< Class::ArrayTraits::elements_start_offset() << ";\n"; \
std::cout << "static constexpr dart::compiler::target::word " #Class \
"_element_size = 0x" \
<< Class::ArrayTraits::kElementSize << ";\n";
◆ PRINT_ARRAY_SIZEOF
#define PRINT_ARRAY_SIZEOF |
( |
|
Class, |
|
|
|
Name, |
|
|
|
ElementOffset |
|
) |
| |
◆ PRINT_CONSTANT
#define PRINT_CONSTANT |
( |
|
Class, |
|
|
|
Name |
|
) |
| |
Value: std::cout << "static constexpr dart::compiler::target::word " #Class \
◆ PRINT_FIELD_OFFSET
#define PRINT_FIELD_OFFSET |
( |
|
Class, |
|
|
|
Name |
|
) |
| |
Value: std::cout << "static constexpr dart::compiler::target::word " #Class \
◆ PRINT_PAYLOAD_SIZEOF
#define PRINT_PAYLOAD_SIZEOF |
( |
|
Class, |
|
|
|
Name, |
|
|
|
HeaderSize |
|
) |
| |
◆ PRINT_RANGE
#define PRINT_RANGE |
( |
|
Class, |
|
|
|
Name, |
|
|
|
Type, |
|
|
|
First, |
|
|
|
Last, |
|
|
|
Filter |
|
) |
| |
Value: { \
bool comma = false; \
std::cout << "static constexpr dart::compiler::target::word " #Class \
for (intptr_t
i =
static_cast<intptr_t
>(First); \
i <= static_cast<intptr_t>(Last);
i++) { \
auto v =
static_cast<Type>(
i); \
std::cout << (comma ? ", " : ""); \
if (filter(v)) { \
} else { \
std::cout << "-1"; \
} \
comma = true; \
} \
std::cout << "};\n"; \
}
GrSamplerState::Filter Filter
◆ PRINT_SIZEOF
#define PRINT_SIZEOF |
( |
|
Class, |
|
|
|
Name, |
|
|
|
What |
|
) |
| |
Value: std::cout << "static constexpr dart::compiler::target::word " #Class \
<< sizeof(What) << ";\n";
◆ PRODUCT_DEF
#define PRODUCT_DEF "!defined(PRODUCT)" |
◆ main()
int main |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
Definition at line 192 of file offsets_extractor.cc.
192 {
194#if !defined(TARGET_ARCH_IA32) || !defined(DART_PRECOMPILED_RUNTIME)
196#endif
198 return 0;
199}