| Index: src/objects-inl.h
|
| diff --git a/src/objects-inl.h b/src/objects-inl.h
|
| index 7901f0892d94ea7361b23c22fc98877bfd3af666..8382b76571b36d856baba4299582686fd772bc0b 100644
|
| --- a/src/objects-inl.h
|
| +++ b/src/objects-inl.h
|
| @@ -3556,6 +3556,8 @@ SMI_ACCESSORS(SharedFunctionInfo, compiler_hints,
|
| SMI_ACCESSORS(SharedFunctionInfo, this_property_assignments_count,
|
| kThisPropertyAssignmentsCountOffset)
|
| SMI_ACCESSORS(SharedFunctionInfo, opt_count, kOptCountOffset)
|
| +SMI_ACCESSORS(SharedFunctionInfo, ast_node_count, kAstNodeCountOffset)
|
| +SMI_ACCESSORS(SharedFunctionInfo, deopt_counter, kDeoptCounterOffset)
|
| #else
|
|
|
| #define PSEUDO_SMI_ACCESSORS_LO(holder, name, offset) \
|
| @@ -3606,6 +3608,9 @@ PSEUDO_SMI_ACCESSORS_LO(SharedFunctionInfo,
|
| this_property_assignments_count,
|
| kThisPropertyAssignmentsCountOffset)
|
| PSEUDO_SMI_ACCESSORS_HI(SharedFunctionInfo, opt_count, kOptCountOffset)
|
| +
|
| +PSEUDO_SMI_ACCESSORS_LO(SharedFunctionInfo, ast_node_count, kAstNodeCountOffset)
|
| +PSEUDO_SMI_ACCESSORS_HI(SharedFunctionInfo, deopt_counter, kDeoptCounterOffset)
|
| #endif
|
|
|
|
|
| @@ -3688,6 +3693,9 @@ 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, dont_crankshaft,
|
| + kDontCrankshaft)
|
| +BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, dont_inline, kDontInline)
|
|
|
| ACCESSORS(CodeCache, default_cache, FixedArray, kDefaultCacheOffset)
|
| ACCESSORS(CodeCache, normal_type_cache, Object, kNormalTypeCacheOffset)
|
| @@ -3757,16 +3765,6 @@ void SharedFunctionInfo::set_scope_info(ScopeInfo* value,
|
| }
|
|
|
|
|
| -Smi* SharedFunctionInfo::deopt_counter() {
|
| - return reinterpret_cast<Smi*>(READ_FIELD(this, kDeoptCounterOffset));
|
| -}
|
| -
|
| -
|
| -void SharedFunctionInfo::set_deopt_counter(Smi* value) {
|
| - WRITE_FIELD(this, kDeoptCounterOffset, value);
|
| -}
|
| -
|
| -
|
| bool SharedFunctionInfo::is_compiled() {
|
| return code() !=
|
| Isolate::Current()->builtins()->builtin(Builtins::kLazyCompile);
|
|
|