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 5774 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5785 | 5785 |
5786 | 5786 |
5787 void SharedFunctionInfo::set_kind(FunctionKind kind) { | 5787 void SharedFunctionInfo::set_kind(FunctionKind kind) { |
5788 DCHECK(IsValidFunctionKind(kind)); | 5788 DCHECK(IsValidFunctionKind(kind)); |
5789 int hints = compiler_hints(); | 5789 int hints = compiler_hints(); |
5790 hints = FunctionKindBits::update(hints, kind); | 5790 hints = FunctionKindBits::update(hints, kind); |
5791 set_compiler_hints(hints); | 5791 set_compiler_hints(hints); |
5792 } | 5792 } |
5793 | 5793 |
5794 | 5794 |
5795 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, uses_super, kUsesSuper) | 5795 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, uses_super_property, |
| 5796 kUsesSuperProperty) |
| 5797 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, uses_super_constructor_call, |
| 5798 kUsesSuperConstructorCall) |
5796 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, native, kNative) | 5799 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, native, kNative) |
5797 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, inline_builtin, | 5800 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, inline_builtin, |
5798 kInlineBuiltin) | 5801 kInlineBuiltin) |
5799 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, | 5802 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, |
5800 name_should_print_as_anonymous, | 5803 name_should_print_as_anonymous, |
5801 kNameShouldPrintAsAnonymous) | 5804 kNameShouldPrintAsAnonymous) |
5802 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, bound, kBoundFunction) | 5805 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, bound, kBoundFunction) |
5803 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_anonymous, kIsAnonymous) | 5806 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_anonymous, kIsAnonymous) |
5804 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_function, kIsFunction) | 5807 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_function, kIsFunction) |
5805 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, dont_cache, kDontCache) | 5808 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, dont_cache, kDontCache) |
(...skipping 1682 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7488 #undef READ_SHORT_FIELD | 7491 #undef READ_SHORT_FIELD |
7489 #undef WRITE_SHORT_FIELD | 7492 #undef WRITE_SHORT_FIELD |
7490 #undef READ_BYTE_FIELD | 7493 #undef READ_BYTE_FIELD |
7491 #undef WRITE_BYTE_FIELD | 7494 #undef WRITE_BYTE_FIELD |
7492 #undef NOBARRIER_READ_BYTE_FIELD | 7495 #undef NOBARRIER_READ_BYTE_FIELD |
7493 #undef NOBARRIER_WRITE_BYTE_FIELD | 7496 #undef NOBARRIER_WRITE_BYTE_FIELD |
7494 | 7497 |
7495 } } // namespace v8::internal | 7498 } } // namespace v8::internal |
7496 | 7499 |
7497 #endif // V8_OBJECTS_INL_H_ | 7500 #endif // V8_OBJECTS_INL_H_ |
OLD | NEW |