Index: src/objects-inl.h |
diff --git a/src/objects-inl.h b/src/objects-inl.h |
index 5eb3c7e560d7810d54239cb13b6cb96711a1bffe..3d82bf8205a895693d45fc1d1a27e3118c8959ec 100644 |
--- a/src/objects-inl.h |
+++ b/src/objects-inl.h |
@@ -6015,14 +6015,14 @@ |
LanguageMode SharedFunctionInfo::language_mode() { |
- STATIC_ASSERT(LAST_LANGUAGE_MODE == 1); |
+ STATIC_ASSERT(LANGUAGE_END == 2); |
return construct_language_mode( |
BooleanBit::get(compiler_hints(), kStrictModeFunction)); |
} |
void SharedFunctionInfo::set_language_mode(LanguageMode language_mode) { |
- STATIC_ASSERT(LAST_LANGUAGE_MODE == 1); |
+ STATIC_ASSERT(LANGUAGE_END == 2); |
// We only allow language mode transitions that set the same language mode |
// again or go up in the chain: |
DCHECK(is_sloppy(this->language_mode()) || is_strict(language_mode)); |