| Index: src/globals.h
|
| diff --git a/src/globals.h b/src/globals.h
|
| index 445b3a7bf0efe00ae49654aa174e841badfc60bb..82831e27ad34808269e671892e880e3bcfb67aad 100644
|
| --- a/src/globals.h
|
| +++ b/src/globals.h
|
| @@ -214,6 +214,12 @@ const intptr_t kMapAlignmentBits = kObjectAlignmentBits + 3;
|
| const intptr_t kMapAlignment = (1 << kMapAlignmentBits);
|
| const intptr_t kMapAlignmentMask = kMapAlignment - 1;
|
|
|
| +// Desired alignment for generated code.
|
| +// Code entry points are aligned to 32 bytes (cache line size in some CPUs).
|
| +const int kCodeAlignmentBits = 5;
|
| +const intptr_t kCodeAlignment = 1 << kCodeAlignmentBits;
|
| +const intptr_t kCodeAlignmentMask = kCodeAlignment - 1;
|
| +
|
| // Tag information for Failure.
|
| const int kFailureTag = 3;
|
| const int kFailureTagSize = 2;
|
| @@ -589,6 +595,10 @@ enum StateTag {
|
| #define MAP_POINTER_ALIGN(value) \
|
| (((value) + kMapAlignmentMask) & ~kMapAlignmentMask)
|
|
|
| +// CODE_POINTER_ALIGN returns the value aligned as a generated code segment.
|
| +#define CODE_POINTER_ALIGN(value) \
|
| + (((value) + kCodeAlignmentMask) & ~kCodeAlignmentMask)
|
| +
|
| // The expression OFFSET_OF(type, field) computes the byte-offset
|
| // of the specified field relative to the containing type. This
|
| // corresponds to 'offsetof' (in stddef.h), except that it doesn't
|
|
|