| 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 5767 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5778 DCHECK(IsValidFunctionKind(kind)); | 5778 DCHECK(IsValidFunctionKind(kind)); |
| 5779 int hints = compiler_hints(); | 5779 int hints = compiler_hints(); |
| 5780 hints = FunctionKindBits::update(hints, kind); | 5780 hints = FunctionKindBits::update(hints, kind); |
| 5781 set_compiler_hints(hints); | 5781 set_compiler_hints(hints); |
| 5782 } | 5782 } |
| 5783 | 5783 |
| 5784 | 5784 |
| 5785 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, uses_super_property, | 5785 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, uses_super_property, |
| 5786 kUsesSuperProperty) | 5786 kUsesSuperProperty) |
| 5787 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, native, kNative) | 5787 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, native, kNative) |
| 5788 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, inline_builtin, | 5788 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, force_inline, kForceInline) |
| 5789 kInlineBuiltin) | |
| 5790 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, | 5789 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, |
| 5791 name_should_print_as_anonymous, | 5790 name_should_print_as_anonymous, |
| 5792 kNameShouldPrintAsAnonymous) | 5791 kNameShouldPrintAsAnonymous) |
| 5793 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, bound, kBoundFunction) | 5792 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, bound, kBoundFunction) |
| 5794 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_anonymous, kIsAnonymous) | 5793 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_anonymous, kIsAnonymous) |
| 5795 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_function, kIsFunction) | 5794 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_function, kIsFunction) |
| 5796 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, dont_cache, kDontCache) | 5795 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, dont_cache, kDontCache) |
| 5797 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, dont_flush, kDontFlush) | 5796 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, dont_flush, kDontFlush) |
| 5798 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_arrow, kIsArrow) | 5797 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_arrow, kIsArrow) |
| 5799 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_generator, kIsGenerator) | 5798 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_generator, kIsGenerator) |
| (...skipping 1833 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7633 #undef READ_SHORT_FIELD | 7632 #undef READ_SHORT_FIELD |
| 7634 #undef WRITE_SHORT_FIELD | 7633 #undef WRITE_SHORT_FIELD |
| 7635 #undef READ_BYTE_FIELD | 7634 #undef READ_BYTE_FIELD |
| 7636 #undef WRITE_BYTE_FIELD | 7635 #undef WRITE_BYTE_FIELD |
| 7637 #undef NOBARRIER_READ_BYTE_FIELD | 7636 #undef NOBARRIER_READ_BYTE_FIELD |
| 7638 #undef NOBARRIER_WRITE_BYTE_FIELD | 7637 #undef NOBARRIER_WRITE_BYTE_FIELD |
| 7639 | 7638 |
| 7640 } } // namespace v8::internal | 7639 } } // namespace v8::internal |
| 7641 | 7640 |
| 7642 #endif // V8_OBJECTS_INL_H_ | 7641 #endif // V8_OBJECTS_INL_H_ |
| OLD | NEW |