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 5666 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5677 kNameShouldPrintAsAnonymous) | 5677 kNameShouldPrintAsAnonymous) |
5678 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, bound, kBoundFunction) | 5678 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, bound, kBoundFunction) |
5679 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_anonymous, kIsAnonymous) | 5679 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_anonymous, kIsAnonymous) |
5680 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_function, kIsFunction) | 5680 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_function, kIsFunction) |
5681 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, dont_cache, kDontCache) | 5681 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, dont_cache, kDontCache) |
5682 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, dont_flush, kDontFlush) | 5682 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, dont_flush, kDontFlush) |
5683 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_arrow, kIsArrow) | 5683 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_arrow, kIsArrow) |
5684 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_generator, kIsGenerator) | 5684 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_generator, kIsGenerator) |
5685 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_concise_method, | 5685 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_concise_method, |
5686 kIsConciseMethod) | 5686 kIsConciseMethod) |
| 5687 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_default_constructor, |
| 5688 kIsDefaultConstructor) |
| 5689 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, |
| 5690 is_default_constructor_call_super, |
| 5691 kIsDefaultConstructorCallSuper) |
5687 | 5692 |
5688 ACCESSORS(CodeCache, default_cache, FixedArray, kDefaultCacheOffset) | 5693 ACCESSORS(CodeCache, default_cache, FixedArray, kDefaultCacheOffset) |
5689 ACCESSORS(CodeCache, normal_type_cache, Object, kNormalTypeCacheOffset) | 5694 ACCESSORS(CodeCache, normal_type_cache, Object, kNormalTypeCacheOffset) |
5690 | 5695 |
5691 ACCESSORS(PolymorphicCodeCache, cache, Object, kCacheOffset) | 5696 ACCESSORS(PolymorphicCodeCache, cache, Object, kCacheOffset) |
5692 | 5697 |
5693 bool Script::HasValidSource() { | 5698 bool Script::HasValidSource() { |
5694 Object* src = this->source(); | 5699 Object* src = this->source(); |
5695 if (!src->IsString()) return true; | 5700 if (!src->IsString()) return true; |
5696 String* src_str = String::cast(src); | 5701 String* src_str = String::cast(src); |
(...skipping 1643 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7340 #undef READ_SHORT_FIELD | 7345 #undef READ_SHORT_FIELD |
7341 #undef WRITE_SHORT_FIELD | 7346 #undef WRITE_SHORT_FIELD |
7342 #undef READ_BYTE_FIELD | 7347 #undef READ_BYTE_FIELD |
7343 #undef WRITE_BYTE_FIELD | 7348 #undef WRITE_BYTE_FIELD |
7344 #undef NOBARRIER_READ_BYTE_FIELD | 7349 #undef NOBARRIER_READ_BYTE_FIELD |
7345 #undef NOBARRIER_WRITE_BYTE_FIELD | 7350 #undef NOBARRIER_WRITE_BYTE_FIELD |
7346 | 7351 |
7347 } } // namespace v8::internal | 7352 } } // namespace v8::internal |
7348 | 7353 |
7349 #endif // V8_OBJECTS_INL_H_ | 7354 #endif // V8_OBJECTS_INL_H_ |
OLD | NEW |