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 5728 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5739 } | 5739 } |
5740 | 5740 |
5741 | 5741 |
5742 void SharedFunctionInfo::set_kind(FunctionKind kind) { | 5742 void SharedFunctionInfo::set_kind(FunctionKind kind) { |
5743 DCHECK(IsValidFunctionKind(kind)); | 5743 DCHECK(IsValidFunctionKind(kind)); |
5744 int hints = compiler_hints(); | 5744 int hints = compiler_hints(); |
5745 hints = FunctionKindBits::update(hints, kind); | 5745 hints = FunctionKindBits::update(hints, kind); |
5746 set_compiler_hints(hints); | 5746 set_compiler_hints(hints); |
5747 } | 5747 } |
5748 | 5748 |
| 5749 |
5749 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, needs_home_object, | 5750 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, needs_home_object, |
5750 kNeedsHomeObject) | 5751 kNeedsHomeObject) |
5751 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, native, kNative) | 5752 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, native, kNative) |
5752 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, force_inline, kForceInline) | 5753 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, force_inline, kForceInline) |
5753 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, | 5754 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, |
5754 name_should_print_as_anonymous, | 5755 name_should_print_as_anonymous, |
5755 kNameShouldPrintAsAnonymous) | 5756 kNameShouldPrintAsAnonymous) |
5756 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_anonymous_expression, | 5757 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_anonymous_expression, |
5757 kIsAnonymousExpression) | 5758 kIsAnonymousExpression) |
5758 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_function, kIsFunction) | 5759 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_function, kIsFunction) |
(...skipping 2041 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7800 #undef WRITE_INT64_FIELD | 7801 #undef WRITE_INT64_FIELD |
7801 #undef READ_BYTE_FIELD | 7802 #undef READ_BYTE_FIELD |
7802 #undef WRITE_BYTE_FIELD | 7803 #undef WRITE_BYTE_FIELD |
7803 #undef NOBARRIER_READ_BYTE_FIELD | 7804 #undef NOBARRIER_READ_BYTE_FIELD |
7804 #undef NOBARRIER_WRITE_BYTE_FIELD | 7805 #undef NOBARRIER_WRITE_BYTE_FIELD |
7805 | 7806 |
7806 } // namespace internal | 7807 } // namespace internal |
7807 } // namespace v8 | 7808 } // namespace v8 |
7808 | 7809 |
7809 #endif // V8_OBJECTS_INL_H_ | 7810 #endif // V8_OBJECTS_INL_H_ |
OLD | NEW |