Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(210)

Side by Side Diff: src/objects-inl.h

Issue 11458011: Clear optimized code map during incremental marking. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/objects.cc ('k') | src/objects-visiting-inl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 4261 matching lines...) Expand 10 before | Expand all | Expand 10 after
4272 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, bound, kBoundFunction) 4272 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, bound, kBoundFunction)
4273 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_anonymous, kIsAnonymous) 4273 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_anonymous, kIsAnonymous)
4274 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_function, kIsFunction) 4274 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_function, kIsFunction)
4275 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, dont_optimize, 4275 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, dont_optimize,
4276 kDontOptimize) 4276 kDontOptimize)
4277 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, dont_inline, kDontInline) 4277 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, dont_inline, kDontInline)
4278 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, dont_cache, kDontCache) 4278 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, dont_cache, kDontCache)
4279 4279
4280 void SharedFunctionInfo::BeforeVisitingPointers() { 4280 void SharedFunctionInfo::BeforeVisitingPointers() {
4281 if (IsInobjectSlackTrackingInProgress()) DetachInitialMap(); 4281 if (IsInobjectSlackTrackingInProgress()) DetachInitialMap();
4282 }
4282 4283
4283 // Flush optimized code map on major GC. 4284
4284 // Note: we may experiment with rebuilding it or retaining entries 4285 void SharedFunctionInfo::ClearOptimizedCodeMap() {
4285 // which should survive as we iterate through optimized functions
4286 // anyway.
4287 set_optimized_code_map(Smi::FromInt(0)); 4286 set_optimized_code_map(Smi::FromInt(0));
4288 } 4287 }
4289 4288
4290 4289
4291 ACCESSORS(CodeCache, default_cache, FixedArray, kDefaultCacheOffset) 4290 ACCESSORS(CodeCache, default_cache, FixedArray, kDefaultCacheOffset)
4292 ACCESSORS(CodeCache, normal_type_cache, Object, kNormalTypeCacheOffset) 4291 ACCESSORS(CodeCache, normal_type_cache, Object, kNormalTypeCacheOffset)
4293 4292
4294 ACCESSORS(PolymorphicCodeCache, cache, Object, kCacheOffset) 4293 ACCESSORS(PolymorphicCodeCache, cache, Object, kCacheOffset)
4295 4294
4296 bool Script::HasValidSource() { 4295 bool Script::HasValidSource() {
(...skipping 1442 matching lines...) Expand 10 before | Expand all | Expand 10 after
5739 #undef WRITE_UINT32_FIELD 5738 #undef WRITE_UINT32_FIELD
5740 #undef READ_SHORT_FIELD 5739 #undef READ_SHORT_FIELD
5741 #undef WRITE_SHORT_FIELD 5740 #undef WRITE_SHORT_FIELD
5742 #undef READ_BYTE_FIELD 5741 #undef READ_BYTE_FIELD
5743 #undef WRITE_BYTE_FIELD 5742 #undef WRITE_BYTE_FIELD
5744 5743
5745 5744
5746 } } // namespace v8::internal 5745 } } // namespace v8::internal
5747 5746
5748 #endif // V8_OBJECTS_INL_H_ 5747 #endif // V8_OBJECTS_INL_H_
OLDNEW
« no previous file with comments | « src/objects.cc ('k') | src/objects-visiting-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698