| Index: src/objects-inl.h
|
| diff --git a/src/objects-inl.h b/src/objects-inl.h
|
| index f3a7fd3ce72bf9feeeba4c58f0fd4280abde914b..92282f8f52c9eff5174477b0bd2147e42502c63e 100644
|
| --- a/src/objects-inl.h
|
| +++ b/src/objects-inl.h
|
| @@ -3554,6 +3554,24 @@ BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints,
|
| kNameShouldPrintAsAnonymous)
|
| BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, bound, kBoundFunction)
|
| BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_anonymous, kIsAnonymous)
|
| +BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_primitive, kIsPrimitive)
|
| +BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_inlineable, kIsInlineable)
|
| +
|
| +
|
| +int SharedFunctionInfo::ast_node_count() {
|
| + return (compiler_hints() >> kAstNodeCountShift) & kAstNodeCountMask;
|
| +}
|
| +
|
| +
|
| +void SharedFunctionInfo::set_ast_node_count(int ast_node_count) {
|
| + if (ast_node_count > kAstNodeCountMask) {
|
| + ast_node_count = kAstNodeCountMask;
|
| + }
|
| + set_compiler_hints((compiler_hints() &
|
| + (~(kAstNodeCountMask << kAstNodeCountShift))) |
|
| + (ast_node_count << kAstNodeCountShift));
|
| +}
|
| +
|
|
|
| ACCESSORS(CodeCache, default_cache, FixedArray, kDefaultCacheOffset)
|
| ACCESSORS(CodeCache, normal_type_cache, Object, kNormalTypeCacheOffset)
|
|
|