Index: src/objects.h |
diff --git a/src/objects.h b/src/objects.h |
index 58b110f07800ce07418324e0e4386f61c499610a..1b0ded0aa82eaf2254a3742bc2d07aacefaf9f38 100644 |
--- a/src/objects.h |
+++ b/src/objects.h |
@@ -4401,9 +4401,9 @@ |
// Properties of scopes. |
class ScopeTypeField : public BitField<ScopeType, 0, 4> {}; |
class CallsEvalField : public BitField<bool, ScopeTypeField::kNext, 1> {}; |
- STATIC_ASSERT(LANGUAGE_END == 2); |
+ STATIC_ASSERT(LANGUAGE_END == 3); |
class LanguageModeField |
- : public BitField<LanguageMode, CallsEvalField::kNext, 1> {}; |
+ : public BitField<LanguageMode, CallsEvalField::kNext, 2> {}; |
class DeclarationScopeField |
: public BitField<bool, LanguageModeField::kNext, 1> {}; |
class ReceiverVariableField |
@@ -7581,6 +7581,8 @@ |
kIsDeclaration, |
kCompilerHintsCount, // Pseudo entry |
}; |
+ // Add hints for other modes when they're added. |
+ STATIC_ASSERT(LANGUAGE_END == 3); |
// kFunctionKind has to be byte-aligned |
STATIC_ASSERT((kFunctionKind % kBitsPerByte) == 0); |
// Make sure that FunctionKind and byte 2 are in sync: |