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

Side by Side Diff: src/heap/spaces.cc

Issue 493923003: Nuke support for running MSan without a simulator. (Closed) Base URL: https://chromium.googlesource.com/external/v8.git@bleeding_edge
Patch Set: Created 6 years, 3 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
« no previous file with comments | « no previous file | src/msan.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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #include "src/base/platform/platform.h" 7 #include "src/base/platform/platform.h"
8 #include "src/full-codegen.h" 8 #include "src/full-codegen.h"
9 #include "src/heap/mark-compact.h" 9 #include "src/heap/mark-compact.h"
10 #include "src/macro-assembler.h" 10 #include "src/macro-assembler.h"
(...skipping 643 matching lines...) Expand 10 before | Expand all | Expand 10 after
654 654
655 LOG(isolate_, NewEvent("MemoryChunk", base, chunk_size)); 655 LOG(isolate_, NewEvent("MemoryChunk", base, chunk_size));
656 if (owner != NULL) { 656 if (owner != NULL) {
657 ObjectSpace space = static_cast<ObjectSpace>(1 << owner->identity()); 657 ObjectSpace space = static_cast<ObjectSpace>(1 << owner->identity());
658 PerformAllocationCallback(space, kAllocationActionAllocate, chunk_size); 658 PerformAllocationCallback(space, kAllocationActionAllocate, chunk_size);
659 } 659 }
660 660
661 MemoryChunk* result = MemoryChunk::Initialize( 661 MemoryChunk* result = MemoryChunk::Initialize(
662 heap, base, chunk_size, area_start, area_end, executable, owner); 662 heap, base, chunk_size, area_start, area_end, executable, owner);
663 result->set_reserved_memory(&reservation); 663 result->set_reserved_memory(&reservation);
664 MSAN_MEMORY_IS_INITIALIZED_IN_JIT(base, chunk_size);
665 return result; 664 return result;
666 } 665 }
667 666
668 667
669 void Page::ResetFreeListStatistics() { 668 void Page::ResetFreeListStatistics() {
670 non_available_small_blocks_ = 0; 669 non_available_small_blocks_ = 0;
671 available_in_small_free_list_ = 0; 670 available_in_small_free_list_ = 0;
672 available_in_medium_free_list_ = 0; 671 available_in_medium_free_list_ = 0;
673 available_in_large_free_list_ = 0; 672 available_in_large_free_list_ = 0;
674 available_in_huge_free_list_ = 0; 673 available_in_huge_free_list_ = 0;
(...skipping 2420 matching lines...) Expand 10 before | Expand all | Expand 10 after
3095 object->ShortPrint(); 3094 object->ShortPrint();
3096 PrintF("\n"); 3095 PrintF("\n");
3097 } 3096 }
3098 printf(" --------------------------------------\n"); 3097 printf(" --------------------------------------\n");
3099 printf(" Marked: %x, LiveCount: %x\n", mark_size, LiveBytes()); 3098 printf(" Marked: %x, LiveCount: %x\n", mark_size, LiveBytes());
3100 } 3099 }
3101 3100
3102 #endif // DEBUG 3101 #endif // DEBUG
3103 } 3102 }
3104 } // namespace v8::internal 3103 } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/msan.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698