OLD | NEW |
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 542 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
553 for (int i = 0; i < length; i++) { | 553 for (int i = 0; i < length; i++) { |
554 JSFunctionResultCache::cast(caches->get(i))->Clear(); | 554 JSFunctionResultCache::cast(caches->get(i))->Clear(); |
555 } | 555 } |
556 } | 556 } |
557 }; | 557 }; |
558 | 558 |
559 | 559 |
560 void Heap::ClearJSFunctionResultCaches() { | 560 void Heap::ClearJSFunctionResultCaches() { |
561 if (Bootstrapper::IsActive()) return; | 561 if (Bootstrapper::IsActive()) return; |
562 ClearThreadJSFunctionResultCachesVisitor visitor; | 562 ClearThreadJSFunctionResultCachesVisitor visitor; |
563 ThreadManager::IterateThreads(&visitor); | 563 ThreadManager::IterateArchivedThreads(&visitor); |
564 } | 564 } |
565 | 565 |
566 | 566 |
567 #ifdef DEBUG | 567 #ifdef DEBUG |
568 | 568 |
569 enum PageWatermarkValidity { | 569 enum PageWatermarkValidity { |
570 ALL_VALID, | 570 ALL_VALID, |
571 ALL_INVALID | 571 ALL_INVALID |
572 }; | 572 }; |
573 | 573 |
(...skipping 4079 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4653 void ExternalStringTable::TearDown() { | 4653 void ExternalStringTable::TearDown() { |
4654 new_space_strings_.Free(); | 4654 new_space_strings_.Free(); |
4655 old_space_strings_.Free(); | 4655 old_space_strings_.Free(); |
4656 } | 4656 } |
4657 | 4657 |
4658 | 4658 |
4659 List<Object*> ExternalStringTable::new_space_strings_; | 4659 List<Object*> ExternalStringTable::new_space_strings_; |
4660 List<Object*> ExternalStringTable::old_space_strings_; | 4660 List<Object*> ExternalStringTable::old_space_strings_; |
4661 | 4661 |
4662 } } // namespace v8::internal | 4662 } } // namespace v8::internal |
OLD | NEW |