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 4290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4301 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, bound, kBoundFunction) | 4301 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, bound, kBoundFunction) |
4302 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_anonymous, kIsAnonymous) | 4302 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_anonymous, kIsAnonymous) |
4303 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_function, kIsFunction) | 4303 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_function, kIsFunction) |
4304 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, dont_optimize, | 4304 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, dont_optimize, |
4305 kDontOptimize) | 4305 kDontOptimize) |
4306 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, dont_inline, kDontInline) | 4306 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, dont_inline, kDontInline) |
4307 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, dont_cache, kDontCache) | 4307 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, dont_cache, kDontCache) |
4308 | 4308 |
4309 void SharedFunctionInfo::BeforeVisitingPointers() { | 4309 void SharedFunctionInfo::BeforeVisitingPointers() { |
4310 if (IsInobjectSlackTrackingInProgress()) DetachInitialMap(); | 4310 if (IsInobjectSlackTrackingInProgress()) DetachInitialMap(); |
| 4311 } |
4311 | 4312 |
4312 // Flush optimized code map on major GC. | 4313 |
4313 // Note: we may experiment with rebuilding it or retaining entries | 4314 void SharedFunctionInfo::ClearOptimizedCodeMap() { |
4314 // which should survive as we iterate through optimized functions | |
4315 // anyway. | |
4316 set_optimized_code_map(Smi::FromInt(0)); | 4315 set_optimized_code_map(Smi::FromInt(0)); |
4317 } | 4316 } |
4318 | 4317 |
4319 | 4318 |
4320 ACCESSORS(CodeCache, default_cache, FixedArray, kDefaultCacheOffset) | 4319 ACCESSORS(CodeCache, default_cache, FixedArray, kDefaultCacheOffset) |
4321 ACCESSORS(CodeCache, normal_type_cache, Object, kNormalTypeCacheOffset) | 4320 ACCESSORS(CodeCache, normal_type_cache, Object, kNormalTypeCacheOffset) |
4322 | 4321 |
4323 ACCESSORS(PolymorphicCodeCache, cache, Object, kCacheOffset) | 4322 ACCESSORS(PolymorphicCodeCache, cache, Object, kCacheOffset) |
4324 | 4323 |
4325 bool Script::HasValidSource() { | 4324 bool Script::HasValidSource() { |
(...skipping 1442 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5768 #undef WRITE_UINT32_FIELD | 5767 #undef WRITE_UINT32_FIELD |
5769 #undef READ_SHORT_FIELD | 5768 #undef READ_SHORT_FIELD |
5770 #undef WRITE_SHORT_FIELD | 5769 #undef WRITE_SHORT_FIELD |
5771 #undef READ_BYTE_FIELD | 5770 #undef READ_BYTE_FIELD |
5772 #undef WRITE_BYTE_FIELD | 5771 #undef WRITE_BYTE_FIELD |
5773 | 5772 |
5774 | 5773 |
5775 } } // namespace v8::internal | 5774 } } // namespace v8::internal |
5776 | 5775 |
5777 #endif // V8_OBJECTS_INL_H_ | 5776 #endif // V8_OBJECTS_INL_H_ |
OLD | NEW |