Index: src/objects-inl.h |
diff --git a/src/objects-inl.h b/src/objects-inl.h |
index db9e2ef7b10f95e01cfce86773eed94bd6a6ce32..a729db49b8863c10a79b429fc607054b53430ee2 100644 |
--- a/src/objects-inl.h |
+++ b/src/objects-inl.h |
@@ -2984,6 +2984,18 @@ void SharedFunctionInfo::set_optimization_disabled(bool disable) { |
} |
+bool SharedFunctionInfo::strict_mode() { |
+ return BooleanBit::get(compiler_hints(), kStrictModeFunction); |
+} |
+ |
+ |
+void SharedFunctionInfo::set_strict_mode(bool value) { |
+ set_compiler_hints(BooleanBit::set(compiler_hints(), |
+ kStrictModeFunction, |
+ value)); |
+} |
+ |
+ |
ACCESSORS(CodeCache, default_cache, FixedArray, kDefaultCacheOffset) |
ACCESSORS(CodeCache, normal_type_cache, Object, kNormalTypeCacheOffset) |