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

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

Issue 2686063002: [debugger] add precise mode for code coverage. (Closed)
Patch Set: fix flag Created 3 years, 10 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 | « src/heap/heap.h ('k') | src/isolate.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 // 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/heap/heap.h" 5 #include "src/heap/heap.h"
6 6
7 #include "src/accessors.h" 7 #include "src/accessors.h"
8 #include "src/api.h" 8 #include "src/api.h"
9 #include "src/ast/context-slot-cache.h" 9 #include "src/ast/context-slot-cache.h"
10 #include "src/base/bits.h" 10 #include "src/base/bits.h"
(...skipping 2761 matching lines...) Expand 10 before | Expand all | Expand 10 after
2772 set_retained_maps(ArrayList::cast(empty_fixed_array())); 2772 set_retained_maps(ArrayList::cast(empty_fixed_array()));
2773 2773
2774 set_weak_object_to_code_table( 2774 set_weak_object_to_code_table(
2775 *WeakHashTable::New(isolate(), 16, USE_DEFAULT_MINIMUM_CAPACITY, 2775 *WeakHashTable::New(isolate(), 16, USE_DEFAULT_MINIMUM_CAPACITY,
2776 TENURED)); 2776 TENURED));
2777 2777
2778 set_weak_new_space_object_to_code_list( 2778 set_weak_new_space_object_to_code_list(
2779 ArrayList::cast(*(factory->NewFixedArray(16, TENURED)))); 2779 ArrayList::cast(*(factory->NewFixedArray(16, TENURED))));
2780 weak_new_space_object_to_code_list()->SetLength(0); 2780 weak_new_space_object_to_code_list()->SetLength(0);
2781 2781
2782 set_code_coverage_list(undefined_value());
2783
2782 set_script_list(Smi::kZero); 2784 set_script_list(Smi::kZero);
2783 2785
2784 Handle<SeededNumberDictionary> slow_element_dictionary = 2786 Handle<SeededNumberDictionary> slow_element_dictionary =
2785 SeededNumberDictionary::New(isolate(), 0, TENURED); 2787 SeededNumberDictionary::New(isolate(), 0, TENURED);
2786 slow_element_dictionary->set_requires_slow_elements(); 2788 slow_element_dictionary->set_requires_slow_elements();
2787 set_empty_slow_element_dictionary(*slow_element_dictionary); 2789 set_empty_slow_element_dictionary(*slow_element_dictionary);
2788 2790
2789 set_materialized_objects(*factory->NewFixedArray(0, TENURED)); 2791 set_materialized_objects(*factory->NewFixedArray(0, TENURED));
2790 2792
2791 // Handling of script id generation is in Heap::NextScriptId(). 2793 // Handling of script id generation is in Heap::NextScriptId().
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
2894 case kInstanceofCacheAnswerRootIndex: 2896 case kInstanceofCacheAnswerRootIndex:
2895 case kCodeStubsRootIndex: 2897 case kCodeStubsRootIndex:
2896 case kEmptyScriptRootIndex: 2898 case kEmptyScriptRootIndex:
2897 case kScriptListRootIndex: 2899 case kScriptListRootIndex:
2898 case kMaterializedObjectsRootIndex: 2900 case kMaterializedObjectsRootIndex:
2899 case kMicrotaskQueueRootIndex: 2901 case kMicrotaskQueueRootIndex:
2900 case kDetachedContextsRootIndex: 2902 case kDetachedContextsRootIndex:
2901 case kWeakObjectToCodeTableRootIndex: 2903 case kWeakObjectToCodeTableRootIndex:
2902 case kWeakNewSpaceObjectToCodeListRootIndex: 2904 case kWeakNewSpaceObjectToCodeListRootIndex:
2903 case kRetainedMapsRootIndex: 2905 case kRetainedMapsRootIndex:
2906 case kCodeCoverageListRootIndex:
2904 case kNoScriptSharedFunctionInfosRootIndex: 2907 case kNoScriptSharedFunctionInfosRootIndex:
2905 case kWeakStackTraceListRootIndex: 2908 case kWeakStackTraceListRootIndex:
2906 case kSerializedTemplatesRootIndex: 2909 case kSerializedTemplatesRootIndex:
2907 case kSerializedGlobalProxySizesRootIndex: 2910 case kSerializedGlobalProxySizesRootIndex:
2908 case kPublicSymbolTableRootIndex: 2911 case kPublicSymbolTableRootIndex:
2909 case kApiSymbolTableRootIndex: 2912 case kApiSymbolTableRootIndex:
2910 case kApiPrivateSymbolTableRootIndex: 2913 case kApiPrivateSymbolTableRootIndex:
2911 // Smi values 2914 // Smi values
2912 #define SMI_ENTRY(type, name, Name) case k##Name##RootIndex: 2915 #define SMI_ENTRY(type, name, Name) case k##Name##RootIndex:
2913 SMI_ROOT_LIST(SMI_ENTRY) 2916 SMI_ROOT_LIST(SMI_ENTRY)
(...skipping 3638 matching lines...) Expand 10 before | Expand all | Expand 10 after
6552 } 6555 }
6553 6556
6554 6557
6555 // static 6558 // static
6556 int Heap::GetStaticVisitorIdForMap(Map* map) { 6559 int Heap::GetStaticVisitorIdForMap(Map* map) {
6557 return StaticVisitorBase::GetVisitorId(map); 6560 return StaticVisitorBase::GetVisitorId(map);
6558 } 6561 }
6559 6562
6560 } // namespace internal 6563 } // namespace internal
6561 } // namespace v8 6564 } // namespace v8
OLDNEW
« no previous file with comments | « src/heap/heap.h ('k') | src/isolate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698