OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 11 matching lines...) Expand all Loading... |
22 // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | 22 // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
23 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 23 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
24 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 24 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
25 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 25 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
27 | 27 |
28 #include "v8.h" | 28 #include "v8.h" |
29 | 29 |
30 #include "macro-assembler.h" | 30 #include "macro-assembler.h" |
31 #include "mark-compact.h" | 31 #include "mark-compact.h" |
| 32 #include "msan.h" |
32 #include "platform.h" | 33 #include "platform.h" |
33 | 34 |
34 namespace v8 { | 35 namespace v8 { |
35 namespace internal { | 36 namespace internal { |
36 | 37 |
37 | 38 |
38 // ---------------------------------------------------------------------------- | 39 // ---------------------------------------------------------------------------- |
39 // HeapObjectIterator | 40 // HeapObjectIterator |
40 | 41 |
41 HeapObjectIterator::HeapObjectIterator(PagedSpace* space) { | 42 HeapObjectIterator::HeapObjectIterator(PagedSpace* space) { |
(...skipping 668 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
710 } | 711 } |
711 | 712 |
712 MemoryChunk* result = MemoryChunk::Initialize(heap, | 713 MemoryChunk* result = MemoryChunk::Initialize(heap, |
713 base, | 714 base, |
714 chunk_size, | 715 chunk_size, |
715 area_start, | 716 area_start, |
716 area_end, | 717 area_end, |
717 executable, | 718 executable, |
718 owner); | 719 owner); |
719 result->set_reserved_memory(&reservation); | 720 result->set_reserved_memory(&reservation); |
| 721 MSAN_MEMORY_IS_INITIALIZED(base, chunk_size); |
720 return result; | 722 return result; |
721 } | 723 } |
722 | 724 |
723 | 725 |
724 void Page::ResetFreeListStatistics() { | 726 void Page::ResetFreeListStatistics() { |
725 non_available_small_blocks_ = 0; | 727 non_available_small_blocks_ = 0; |
726 available_in_small_free_list_ = 0; | 728 available_in_small_free_list_ = 0; |
727 available_in_medium_free_list_ = 0; | 729 available_in_medium_free_list_ = 0; |
728 available_in_large_free_list_ = 0; | 730 available_in_large_free_list_ = 0; |
729 available_in_huge_free_list_ = 0; | 731 available_in_huge_free_list_ = 0; |
(...skipping 2491 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3221 object->ShortPrint(); | 3223 object->ShortPrint(); |
3222 PrintF("\n"); | 3224 PrintF("\n"); |
3223 } | 3225 } |
3224 printf(" --------------------------------------\n"); | 3226 printf(" --------------------------------------\n"); |
3225 printf(" Marked: %x, LiveCount: %x\n", mark_size, LiveBytes()); | 3227 printf(" Marked: %x, LiveCount: %x\n", mark_size, LiveBytes()); |
3226 } | 3228 } |
3227 | 3229 |
3228 #endif // DEBUG | 3230 #endif // DEBUG |
3229 | 3231 |
3230 } } // namespace v8::internal | 3232 } } // namespace v8::internal |
OLD | NEW |