| Index: src/objects-inl.h
|
| diff --git a/src/objects-inl.h b/src/objects-inl.h
|
| index 28082903c0b811b58c6e96353e6b15a3a71a9969..85667b90cd0973a4705270ee6a5df2a0c7be04c4 100644
|
| --- a/src/objects-inl.h
|
| +++ b/src/objects-inl.h
|
| @@ -645,8 +645,8 @@ bool Object::IsHashTable() {
|
|
|
|
|
| bool Object::IsDictionary() {
|
| - return IsHashTable() &&
|
| - this != HeapObject::cast(this)->GetHeap()->symbol_table();
|
| + return IsHashTable() && this !=
|
| + HeapObject::cast(this)->GetHeap()->symbol_table();
|
| }
|
|
|
|
|
| @@ -3288,22 +3288,13 @@ BOOL_ACCESSORS(SharedFunctionInfo, start_position_and_type, is_expression,
|
| kIsExpressionBit)
|
| BOOL_ACCESSORS(SharedFunctionInfo, start_position_and_type, is_toplevel,
|
| kIsTopLevelBit)
|
| -BOOL_GETTER(SharedFunctionInfo,
|
| - compiler_hints,
|
| +BOOL_GETTER(SharedFunctionInfo, compiler_hints,
|
| has_only_simple_this_property_assignments,
|
| kHasOnlySimpleThisPropertyAssignments)
|
| BOOL_ACCESSORS(SharedFunctionInfo,
|
| compiler_hints,
|
| allows_lazy_compilation,
|
| kAllowLazyCompilation)
|
| -BOOL_ACCESSORS(SharedFunctionInfo,
|
| - compiler_hints,
|
| - uses_arguments,
|
| - kUsesArguments)
|
| -BOOL_ACCESSORS(SharedFunctionInfo,
|
| - compiler_hints,
|
| - has_duplicate_parameters,
|
| - kHasDuplicateParameters)
|
|
|
|
|
| #if V8_HOST_ARCH_32_BIT
|
| @@ -3387,10 +3378,18 @@ void SharedFunctionInfo::set_construction_count(int value) {
|
| }
|
|
|
|
|
| -BOOL_ACCESSORS(SharedFunctionInfo,
|
| - compiler_hints,
|
| - live_objects_may_exist,
|
| - kLiveObjectsMayExist)
|
| +bool SharedFunctionInfo::live_objects_may_exist() {
|
| + return (compiler_hints() & (1 << kLiveObjectsMayExist)) != 0;
|
| +}
|
| +
|
| +
|
| +void SharedFunctionInfo::set_live_objects_may_exist(bool value) {
|
| + if (value) {
|
| + set_compiler_hints(compiler_hints() | (1 << kLiveObjectsMayExist));
|
| + } else {
|
| + set_compiler_hints(compiler_hints() & ~(1 << kLiveObjectsMayExist));
|
| + }
|
| +}
|
|
|
|
|
| bool SharedFunctionInfo::IsInobjectSlackTrackingInProgress() {
|
| @@ -3398,10 +3397,9 @@ bool SharedFunctionInfo::IsInobjectSlackTrackingInProgress() {
|
| }
|
|
|
|
|
| -BOOL_GETTER(SharedFunctionInfo,
|
| - compiler_hints,
|
| - optimization_disabled,
|
| - kOptimizationDisabled)
|
| +bool SharedFunctionInfo::optimization_disabled() {
|
| + return BooleanBit::get(compiler_hints(), kOptimizationDisabled);
|
| +}
|
|
|
|
|
| void SharedFunctionInfo::set_optimization_disabled(bool disable) {
|
| @@ -3416,10 +3414,16 @@ void SharedFunctionInfo::set_optimization_disabled(bool disable) {
|
| }
|
|
|
|
|
| -BOOL_ACCESSORS(SharedFunctionInfo,
|
| - compiler_hints,
|
| - strict_mode,
|
| - kStrictModeFunction)
|
| +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));
|
| +}
|
|
|
|
|
| bool SharedFunctionInfo::native() {
|
|
|