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

Side by Side Diff: src/heap.cc

Issue 3087001: Revert r5147 due to failing assert, with no simple solution. Issue 808. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 10 years, 4 months 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/heap.h ('k') | src/objects.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 2009 the V8 project authors. All rights reserved. 1 // Copyright 2009 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 552 matching lines...) Expand 10 before | Expand all | Expand 10 after
563 }; 563 };
564 564
565 565
566 void Heap::ClearJSFunctionResultCaches() { 566 void Heap::ClearJSFunctionResultCaches() {
567 if (Bootstrapper::IsActive()) return; 567 if (Bootstrapper::IsActive()) return;
568 ClearThreadJSFunctionResultCachesVisitor visitor; 568 ClearThreadJSFunctionResultCachesVisitor visitor;
569 ThreadManager::IterateArchivedThreads(&visitor); 569 ThreadManager::IterateArchivedThreads(&visitor);
570 } 570 }
571 571
572 572
573 class ClearThreadNormalizedMapCachesVisitor: public ThreadVisitor {
574 virtual void VisitThread(ThreadLocalTop* top) {
575 Context* context = top->context_;
576 if (context == NULL) return;
577 context->global()->global_context()->normalized_map_cache()->Clear();
578 }
579 };
580
581
582 void Heap::ClearNormalizedMapCaches() {
583 if (Bootstrapper::IsActive()) return;
584 ClearThreadNormalizedMapCachesVisitor visitor;
585 ThreadManager::IterateArchivedThreads(&visitor);
586 }
587
588
589 #ifdef DEBUG 573 #ifdef DEBUG
590 574
591 enum PageWatermarkValidity { 575 enum PageWatermarkValidity {
592 ALL_VALID, 576 ALL_VALID,
593 ALL_INVALID 577 ALL_INVALID
594 }; 578 };
595 579
596 static void VerifyPageWatermarkValidity(PagedSpace* space, 580 static void VerifyPageWatermarkValidity(PagedSpace* space,
597 PageWatermarkValidity validity) { 581 PageWatermarkValidity validity) {
598 PageIterator it(space, PageIterator::PAGES_IN_USE); 582 PageIterator it(space, PageIterator::PAGES_IN_USE);
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
769 DescriptorLookupCache::Clear(); 753 DescriptorLookupCache::Clear();
770 754
771 CompilationCache::MarkCompactPrologue(); 755 CompilationCache::MarkCompactPrologue();
772 756
773 Top::MarkCompactPrologue(is_compacting); 757 Top::MarkCompactPrologue(is_compacting);
774 ThreadManager::MarkCompactPrologue(is_compacting); 758 ThreadManager::MarkCompactPrologue(is_compacting);
775 759
776 CompletelyClearInstanceofCache(); 760 CompletelyClearInstanceofCache();
777 761
778 if (is_compacting) FlushNumberStringCache(); 762 if (is_compacting) FlushNumberStringCache();
779
780 ClearNormalizedMapCaches();
781 } 763 }
782 764
783 765
784 void Heap::MarkCompactEpilogue(bool is_compacting) { 766 void Heap::MarkCompactEpilogue(bool is_compacting) {
785 Top::MarkCompactEpilogue(is_compacting); 767 Top::MarkCompactEpilogue(is_compacting);
786 ThreadManager::MarkCompactEpilogue(is_compacting); 768 ThreadManager::MarkCompactEpilogue(is_compacting);
787 } 769 }
788 770
789 771
790 Object* Heap::FindCodeObject(Address a) { 772 Object* Heap::FindCodeObject(Address a) {
(...skipping 4212 matching lines...) Expand 10 before | Expand all | Expand 10 after
5003 void ExternalStringTable::TearDown() { 4985 void ExternalStringTable::TearDown() {
5004 new_space_strings_.Free(); 4986 new_space_strings_.Free();
5005 old_space_strings_.Free(); 4987 old_space_strings_.Free();
5006 } 4988 }
5007 4989
5008 4990
5009 List<Object*> ExternalStringTable::new_space_strings_; 4991 List<Object*> ExternalStringTable::new_space_strings_;
5010 List<Object*> ExternalStringTable::old_space_strings_; 4992 List<Object*> ExternalStringTable::old_space_strings_;
5011 4993
5012 } } // namespace v8::internal 4994 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/heap.h ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698