OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 4657 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4668 kDontOptimize) | 4668 kDontOptimize) |
4669 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, dont_inline, kDontInline) | 4669 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, dont_inline, kDontInline) |
4670 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, dont_cache, kDontCache) | 4670 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, dont_cache, kDontCache) |
4671 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_generator, kIsGenerator) | 4671 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_generator, kIsGenerator) |
4672 | 4672 |
4673 void SharedFunctionInfo::BeforeVisitingPointers() { | 4673 void SharedFunctionInfo::BeforeVisitingPointers() { |
4674 if (IsInobjectSlackTrackingInProgress()) DetachInitialMap(); | 4674 if (IsInobjectSlackTrackingInProgress()) DetachInitialMap(); |
4675 } | 4675 } |
4676 | 4676 |
4677 | 4677 |
4678 void SharedFunctionInfo::ClearOptimizedCodeMap() { | |
4679 set_optimized_code_map(Smi::FromInt(0)); | |
4680 } | |
4681 | |
4682 | |
4683 ACCESSORS(CodeCache, default_cache, FixedArray, kDefaultCacheOffset) | 4678 ACCESSORS(CodeCache, default_cache, FixedArray, kDefaultCacheOffset) |
4684 ACCESSORS(CodeCache, normal_type_cache, Object, kNormalTypeCacheOffset) | 4679 ACCESSORS(CodeCache, normal_type_cache, Object, kNormalTypeCacheOffset) |
4685 | 4680 |
4686 ACCESSORS(PolymorphicCodeCache, cache, Object, kCacheOffset) | 4681 ACCESSORS(PolymorphicCodeCache, cache, Object, kCacheOffset) |
4687 | 4682 |
4688 bool Script::HasValidSource() { | 4683 bool Script::HasValidSource() { |
4689 Object* src = this->source(); | 4684 Object* src = this->source(); |
4690 if (!src->IsString()) return true; | 4685 if (!src->IsString()) return true; |
4691 String* src_str = String::cast(src); | 4686 String* src_str = String::cast(src); |
4692 if (!StringShape(src_str).IsExternal()) return true; | 4687 if (!StringShape(src_str).IsExternal()) return true; |
(...skipping 1521 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6214 #undef WRITE_UINT32_FIELD | 6209 #undef WRITE_UINT32_FIELD |
6215 #undef READ_SHORT_FIELD | 6210 #undef READ_SHORT_FIELD |
6216 #undef WRITE_SHORT_FIELD | 6211 #undef WRITE_SHORT_FIELD |
6217 #undef READ_BYTE_FIELD | 6212 #undef READ_BYTE_FIELD |
6218 #undef WRITE_BYTE_FIELD | 6213 #undef WRITE_BYTE_FIELD |
6219 | 6214 |
6220 | 6215 |
6221 } } // namespace v8::internal | 6216 } } // namespace v8::internal |
6222 | 6217 |
6223 #endif // V8_OBJECTS_INL_H_ | 6218 #endif // V8_OBJECTS_INL_H_ |
OLD | NEW |