| Index: src/objects-inl.h
 | 
| diff --git a/src/objects-inl.h b/src/objects-inl.h
 | 
| index 328a8739d8189d9cc5fb261c9a573357e7b63ece..6096cf86b38ec72bda862ee3d186dd771729fda1 100644
 | 
| --- a/src/objects-inl.h
 | 
| +++ b/src/objects-inl.h
 | 
| @@ -5132,39 +5132,21 @@ int SharedFunctionInfo::profiler_ticks() {
 | 
|  }
 | 
|  
 | 
|  
 | 
| -LanguageMode SharedFunctionInfo::language_mode() {
 | 
| -  int hints = compiler_hints();
 | 
| -  if (BooleanBit::get(hints, kExtendedModeFunction)) {
 | 
| -    ASSERT(BooleanBit::get(hints, kStrictModeFunction));
 | 
| -    return EXTENDED_MODE;
 | 
| -  }
 | 
| -  return BooleanBit::get(hints, kStrictModeFunction)
 | 
| -      ? STRICT_MODE : SLOPPY_MODE;
 | 
| +StrictMode SharedFunctionInfo::strict_mode() {
 | 
| +  return BooleanBit::get(compiler_hints(), kStrictModeFunction)
 | 
| +      ? STRICT : SLOPPY;
 | 
|  }
 | 
|  
 | 
|  
 | 
| -void SharedFunctionInfo::set_language_mode(LanguageMode language_mode) {
 | 
| -  // We only allow language mode transitions that go set the same language mode
 | 
| -  // again or go up in the chain:
 | 
| -  //   SLOPPY_MODE -> STRICT_MODE -> EXTENDED_MODE.
 | 
| -  ASSERT(this->language_mode() == SLOPPY_MODE ||
 | 
| -         this->language_mode() == language_mode ||
 | 
| -         language_mode == EXTENDED_MODE);
 | 
| +void SharedFunctionInfo::set_strict_mode(StrictMode strict_mode) {
 | 
| +  // We only allow mode transitions from sloppy to strict.
 | 
| +  ASSERT(this->strict_mode() == SLOPPY || this->strict_mode() == strict_mode);
 | 
|    int hints = compiler_hints();
 | 
| -  hints = BooleanBit::set(
 | 
| -      hints, kStrictModeFunction, language_mode != SLOPPY_MODE);
 | 
| -  hints = BooleanBit::set(
 | 
| -      hints, kExtendedModeFunction, language_mode == EXTENDED_MODE);
 | 
| +  hints = BooleanBit::set(hints, kStrictModeFunction, strict_mode == STRICT);
 | 
|    set_compiler_hints(hints);
 | 
|  }
 | 
|  
 | 
|  
 | 
| -bool SharedFunctionInfo::is_sloppy_mode() {
 | 
| -  return !BooleanBit::get(compiler_hints(), kStrictModeFunction);
 | 
| -}
 | 
| -
 | 
| -BOOL_GETTER(SharedFunctionInfo, compiler_hints, is_extended_mode,
 | 
| -            kExtendedModeFunction)
 | 
|  BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, native, kNative)
 | 
|  BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, inline_builtin,
 | 
|                 kInlineBuiltin)
 | 
| 
 |