OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 // | 4 // |
5 // Review notes: | 5 // Review notes: |
6 // | 6 // |
7 // - The use of macros in these inline functions may seem superfluous | 7 // - The use of macros in these inline functions may seem superfluous |
8 // but it is absolutely needed to make sure gcc generates optimal | 8 // but it is absolutely needed to make sure gcc generates optimal |
9 // code. gcc is not happy when attempting to inline too deep. | 9 // code. gcc is not happy when attempting to inline too deep. |
10 // | 10 // |
(...skipping 5835 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5846 void SharedFunctionInfo::set_kind(FunctionKind kind) { | 5846 void SharedFunctionInfo::set_kind(FunctionKind kind) { |
5847 DCHECK(IsValidFunctionKind(kind)); | 5847 DCHECK(IsValidFunctionKind(kind)); |
5848 int hints = compiler_hints(); | 5848 int hints = compiler_hints(); |
5849 hints = FunctionKindBits::update(hints, kind); | 5849 hints = FunctionKindBits::update(hints, kind); |
5850 set_compiler_hints(hints); | 5850 set_compiler_hints(hints); |
5851 } | 5851 } |
5852 | 5852 |
5853 | 5853 |
5854 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, uses_super_property, | 5854 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, uses_super_property, |
5855 kUsesSuperProperty) | 5855 kUsesSuperProperty) |
5856 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, uses_super_constructor_call, | |
5857 kUsesSuperConstructorCall) | |
5858 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, native, kNative) | 5856 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, native, kNative) |
5859 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, inline_builtin, | 5857 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, inline_builtin, |
5860 kInlineBuiltin) | 5858 kInlineBuiltin) |
5861 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, | 5859 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, |
5862 name_should_print_as_anonymous, | 5860 name_should_print_as_anonymous, |
5863 kNameShouldPrintAsAnonymous) | 5861 kNameShouldPrintAsAnonymous) |
5864 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, bound, kBoundFunction) | 5862 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, bound, kBoundFunction) |
5865 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_anonymous, kIsAnonymous) | 5863 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_anonymous, kIsAnonymous) |
5866 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_function, kIsFunction) | 5864 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_function, kIsFunction) |
5867 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, dont_cache, kDontCache) | 5865 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, dont_cache, kDontCache) |
(...skipping 1759 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7627 #undef READ_SHORT_FIELD | 7625 #undef READ_SHORT_FIELD |
7628 #undef WRITE_SHORT_FIELD | 7626 #undef WRITE_SHORT_FIELD |
7629 #undef READ_BYTE_FIELD | 7627 #undef READ_BYTE_FIELD |
7630 #undef WRITE_BYTE_FIELD | 7628 #undef WRITE_BYTE_FIELD |
7631 #undef NOBARRIER_READ_BYTE_FIELD | 7629 #undef NOBARRIER_READ_BYTE_FIELD |
7632 #undef NOBARRIER_WRITE_BYTE_FIELD | 7630 #undef NOBARRIER_WRITE_BYTE_FIELD |
7633 | 7631 |
7634 } } // namespace v8::internal | 7632 } } // namespace v8::internal |
7635 | 7633 |
7636 #endif // V8_OBJECTS_INL_H_ | 7634 #endif // V8_OBJECTS_INL_H_ |
OLD | NEW |