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

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

Issue 1410223007: Add non-script SharedFunctionInfos to the Iterator. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: REBASE. Created 5 years, 1 month 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/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 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/base/bits.h" 9 #include "src/base/bits.h"
10 #include "src/base/once.h" 10 #include "src/base/once.h"
(...skipping 2790 matching lines...) Expand 10 before | Expand all | Expand 10 after
2801 Handle<PropertyCell> cell = factory->NewPropertyCell(); 2801 Handle<PropertyCell> cell = factory->NewPropertyCell();
2802 cell->set_value(Smi::FromInt(Isolate::kArrayProtectorValid)); 2802 cell->set_value(Smi::FromInt(Isolate::kArrayProtectorValid));
2803 set_array_protector(*cell); 2803 set_array_protector(*cell);
2804 2804
2805 cell = factory->NewPropertyCell(); 2805 cell = factory->NewPropertyCell();
2806 cell->set_value(the_hole_value()); 2806 cell->set_value(the_hole_value());
2807 set_empty_property_cell(*cell); 2807 set_empty_property_cell(*cell);
2808 2808
2809 set_weak_stack_trace_list(Smi::FromInt(0)); 2809 set_weak_stack_trace_list(Smi::FromInt(0));
2810 2810
2811 set_noscript_shared_function_infos(Smi::FromInt(0));
2812
2811 // Will be filled in by Interpreter::Initialize(). 2813 // Will be filled in by Interpreter::Initialize().
2812 set_interpreter_table( 2814 set_interpreter_table(
2813 *interpreter::Interpreter::CreateUninitializedInterpreterTable( 2815 *interpreter::Interpreter::CreateUninitializedInterpreterTable(
2814 isolate())); 2816 isolate()));
2815 2817
2816 set_allocation_sites_scratchpad( 2818 set_allocation_sites_scratchpad(
2817 *factory->NewFixedArray(kAllocationSiteScratchpadSize, TENURED)); 2819 *factory->NewFixedArray(kAllocationSiteScratchpadSize, TENURED));
2818 InitializeAllocationSitesScratchpad(); 2820 InitializeAllocationSitesScratchpad();
2819 2821
2820 // Initialize keyed lookup cache. 2822 // Initialize keyed lookup cache.
(...skipping 22 matching lines...) Expand all
2843 case kPolymorphicCodeCacheRootIndex: 2845 case kPolymorphicCodeCacheRootIndex:
2844 case kEmptyScriptRootIndex: 2846 case kEmptyScriptRootIndex:
2845 case kSymbolRegistryRootIndex: 2847 case kSymbolRegistryRootIndex:
2846 case kScriptListRootIndex: 2848 case kScriptListRootIndex:
2847 case kMaterializedObjectsRootIndex: 2849 case kMaterializedObjectsRootIndex:
2848 case kAllocationSitesScratchpadRootIndex: 2850 case kAllocationSitesScratchpadRootIndex:
2849 case kMicrotaskQueueRootIndex: 2851 case kMicrotaskQueueRootIndex:
2850 case kDetachedContextsRootIndex: 2852 case kDetachedContextsRootIndex:
2851 case kWeakObjectToCodeTableRootIndex: 2853 case kWeakObjectToCodeTableRootIndex:
2852 case kRetainedMapsRootIndex: 2854 case kRetainedMapsRootIndex:
2855 case kNoScriptSharedFunctionInfosRootIndex:
2853 case kWeakStackTraceListRootIndex: 2856 case kWeakStackTraceListRootIndex:
2854 // Smi values 2857 // Smi values
2855 #define SMI_ENTRY(type, name, Name) case k##Name##RootIndex: 2858 #define SMI_ENTRY(type, name, Name) case k##Name##RootIndex:
2856 SMI_ROOT_LIST(SMI_ENTRY) 2859 SMI_ROOT_LIST(SMI_ENTRY)
2857 #undef SMI_ENTRY 2860 #undef SMI_ENTRY
2858 // String table 2861 // String table
2859 case kStringTableRootIndex: 2862 case kStringTableRootIndex:
2860 return true; 2863 return true;
2861 2864
2862 default: 2865 default:
(...skipping 3261 matching lines...) Expand 10 before | Expand all | Expand 10 after
6124 } 6127 }
6125 6128
6126 6129
6127 // static 6130 // static
6128 int Heap::GetStaticVisitorIdForMap(Map* map) { 6131 int Heap::GetStaticVisitorIdForMap(Map* map) {
6129 return StaticVisitorBase::GetVisitorId(map); 6132 return StaticVisitorBase::GetVisitorId(map);
6130 } 6133 }
6131 6134
6132 } // namespace internal 6135 } // namespace internal
6133 } // namespace v8 6136 } // namespace v8
OLDNEW
« no previous file with comments | « src/heap/heap.h ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698