| 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 5585 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5596 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, | 5596 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, |
| 5597 name_should_print_as_anonymous, | 5597 name_should_print_as_anonymous, |
| 5598 kNameShouldPrintAsAnonymous) | 5598 kNameShouldPrintAsAnonymous) |
| 5599 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, bound, kBoundFunction) | 5599 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, bound, kBoundFunction) |
| 5600 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_anonymous, kIsAnonymous) | 5600 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_anonymous, kIsAnonymous) |
| 5601 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_function, kIsFunction) | 5601 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_function, kIsFunction) |
| 5602 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, dont_cache, kDontCache) | 5602 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, dont_cache, kDontCache) |
| 5603 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, dont_flush, kDontFlush) | 5603 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, dont_flush, kDontFlush) |
| 5604 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_generator, kIsGenerator) | 5604 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_generator, kIsGenerator) |
| 5605 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_arrow, kIsArrow) | 5605 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_arrow, kIsArrow) |
| 5606 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_concise_method, |
| 5607 kIsConciseMethod) |
| 5606 | 5608 |
| 5607 ACCESSORS(CodeCache, default_cache, FixedArray, kDefaultCacheOffset) | 5609 ACCESSORS(CodeCache, default_cache, FixedArray, kDefaultCacheOffset) |
| 5608 ACCESSORS(CodeCache, normal_type_cache, Object, kNormalTypeCacheOffset) | 5610 ACCESSORS(CodeCache, normal_type_cache, Object, kNormalTypeCacheOffset) |
| 5609 | 5611 |
| 5610 ACCESSORS(PolymorphicCodeCache, cache, Object, kCacheOffset) | 5612 ACCESSORS(PolymorphicCodeCache, cache, Object, kCacheOffset) |
| 5611 | 5613 |
| 5612 bool Script::HasValidSource() { | 5614 bool Script::HasValidSource() { |
| 5613 Object* src = this->source(); | 5615 Object* src = this->source(); |
| 5614 if (!src->IsString()) return true; | 5616 if (!src->IsString()) return true; |
| 5615 String* src_str = String::cast(src); | 5617 String* src_str = String::cast(src); |
| (...skipping 1653 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7269 #undef READ_SHORT_FIELD | 7271 #undef READ_SHORT_FIELD |
| 7270 #undef WRITE_SHORT_FIELD | 7272 #undef WRITE_SHORT_FIELD |
| 7271 #undef READ_BYTE_FIELD | 7273 #undef READ_BYTE_FIELD |
| 7272 #undef WRITE_BYTE_FIELD | 7274 #undef WRITE_BYTE_FIELD |
| 7273 #undef NOBARRIER_READ_BYTE_FIELD | 7275 #undef NOBARRIER_READ_BYTE_FIELD |
| 7274 #undef NOBARRIER_WRITE_BYTE_FIELD | 7276 #undef NOBARRIER_WRITE_BYTE_FIELD |
| 7275 | 7277 |
| 7276 } } // namespace v8::internal | 7278 } } // namespace v8::internal |
| 7277 | 7279 |
| 7278 #endif // V8_OBJECTS_INL_H_ | 7280 #endif // V8_OBJECTS_INL_H_ |
| OLD | NEW |