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 5210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5221 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, bound, kBoundFunction) | 5221 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, bound, kBoundFunction) |
5222 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_anonymous, kIsAnonymous) | 5222 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_anonymous, kIsAnonymous) |
5223 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_function, kIsFunction) | 5223 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_function, kIsFunction) |
5224 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, dont_optimize, | 5224 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, dont_optimize, |
5225 kDontOptimize) | 5225 kDontOptimize) |
5226 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, dont_inline, kDontInline) | 5226 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, dont_inline, kDontInline) |
5227 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, dont_cache, kDontCache) | 5227 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, dont_cache, kDontCache) |
5228 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, dont_flush, kDontFlush) | 5228 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, dont_flush, kDontFlush) |
5229 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_generator, kIsGenerator) | 5229 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_generator, kIsGenerator) |
5230 | 5230 |
5231 void SharedFunctionInfo::BeforeVisitingPointers() { | |
5232 } | |
5233 | |
5234 | |
5235 ACCESSORS(CodeCache, default_cache, FixedArray, kDefaultCacheOffset) | 5231 ACCESSORS(CodeCache, default_cache, FixedArray, kDefaultCacheOffset) |
5236 ACCESSORS(CodeCache, normal_type_cache, Object, kNormalTypeCacheOffset) | 5232 ACCESSORS(CodeCache, normal_type_cache, Object, kNormalTypeCacheOffset) |
5237 | 5233 |
5238 ACCESSORS(PolymorphicCodeCache, cache, Object, kCacheOffset) | 5234 ACCESSORS(PolymorphicCodeCache, cache, Object, kCacheOffset) |
5239 | 5235 |
5240 bool Script::HasValidSource() { | 5236 bool Script::HasValidSource() { |
5241 Object* src = this->source(); | 5237 Object* src = this->source(); |
5242 if (!src->IsString()) return true; | 5238 if (!src->IsString()) return true; |
5243 String* src_str = String::cast(src); | 5239 String* src_str = String::cast(src); |
5244 if (!StringShape(src_str).IsExternal()) return true; | 5240 if (!StringShape(src_str).IsExternal()) return true; |
(...skipping 1599 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6844 #undef READ_SHORT_FIELD | 6840 #undef READ_SHORT_FIELD |
6845 #undef WRITE_SHORT_FIELD | 6841 #undef WRITE_SHORT_FIELD |
6846 #undef READ_BYTE_FIELD | 6842 #undef READ_BYTE_FIELD |
6847 #undef WRITE_BYTE_FIELD | 6843 #undef WRITE_BYTE_FIELD |
6848 #undef NOBARRIER_READ_BYTE_FIELD | 6844 #undef NOBARRIER_READ_BYTE_FIELD |
6849 #undef NOBARRIER_WRITE_BYTE_FIELD | 6845 #undef NOBARRIER_WRITE_BYTE_FIELD |
6850 | 6846 |
6851 } } // namespace v8::internal | 6847 } } // namespace v8::internal |
6852 | 6848 |
6853 #endif // V8_OBJECTS_INL_H_ | 6849 #endif // V8_OBJECTS_INL_H_ |
OLD | NEW |