| Index: runtime/vm/globals.h
|
| diff --git a/runtime/vm/globals.h b/runtime/vm/globals.h
|
| index f9a5d278d25ba8d94d59a9529ae7981cde92eb16..69c8d62afe65b3110eb052474978febd2d5656db 100644
|
| --- a/runtime/vm/globals.h
|
| +++ b/runtime/vm/globals.h
|
| @@ -55,6 +55,13 @@ const intptr_t kOffsetOfPtr = 32;
|
| (reinterpret_cast<intptr_t>( \
|
| (reinterpret_cast<type*>(kOffsetOfPtr)->accessor())) - kOffsetOfPtr)
|
|
|
| +#define OPEN_ARRAY_START(type, align) \
|
| + do { \
|
| + const uword result = reinterpret_cast<uword>(this) + sizeof(*this); \
|
| + ASSERT(Utils::IsAligned(result, sizeof(align))); \
|
| + return reinterpret_cast<type*>(result); \
|
| + } while (0)
|
| +
|
|
|
| // A type large enough to contain the value of the C++ vtable. This is needed
|
| // to support the handle operations.
|
|
|