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

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: First patch. 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
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 2787 matching lines...) Expand 10 before | Expand all | Expand 10 after
2798 Handle<PropertyCell> cell = factory->NewPropertyCell(); 2798 Handle<PropertyCell> cell = factory->NewPropertyCell();
2799 cell->set_value(Smi::FromInt(Isolate::kArrayProtectorValid)); 2799 cell->set_value(Smi::FromInt(Isolate::kArrayProtectorValid));
2800 set_array_protector(*cell); 2800 set_array_protector(*cell);
2801 2801
2802 cell = factory->NewPropertyCell(); 2802 cell = factory->NewPropertyCell();
2803 cell->set_value(the_hole_value()); 2803 cell->set_value(the_hole_value());
2804 set_empty_property_cell(*cell); 2804 set_empty_property_cell(*cell);
2805 2805
2806 set_weak_stack_trace_list(Smi::FromInt(0)); 2806 set_weak_stack_trace_list(Smi::FromInt(0));
2807 2807
2808 set_noscript_shared_function_infos(Smi::FromInt(0));
2809
2808 // Will be filled in by Interpreter::Initialize(). 2810 // Will be filled in by Interpreter::Initialize().
2809 set_interpreter_table( 2811 set_interpreter_table(
2810 *interpreter::Interpreter::CreateUninitializedInterpreterTable( 2812 *interpreter::Interpreter::CreateUninitializedInterpreterTable(
2811 isolate())); 2813 isolate()));
2812 2814
2813 set_allocation_sites_scratchpad( 2815 set_allocation_sites_scratchpad(
2814 *factory->NewFixedArray(kAllocationSiteScratchpadSize, TENURED)); 2816 *factory->NewFixedArray(kAllocationSiteScratchpadSize, TENURED));
2815 InitializeAllocationSitesScratchpad(); 2817 InitializeAllocationSitesScratchpad();
2816 2818
2817 // Initialize keyed lookup cache. 2819 // Initialize keyed lookup cache.
(...skipping 22 matching lines...) Expand all
2840 case kPolymorphicCodeCacheRootIndex: 2842 case kPolymorphicCodeCacheRootIndex:
2841 case kEmptyScriptRootIndex: 2843 case kEmptyScriptRootIndex:
2842 case kSymbolRegistryRootIndex: 2844 case kSymbolRegistryRootIndex:
2843 case kScriptListRootIndex: 2845 case kScriptListRootIndex:
2844 case kMaterializedObjectsRootIndex: 2846 case kMaterializedObjectsRootIndex:
2845 case kAllocationSitesScratchpadRootIndex: 2847 case kAllocationSitesScratchpadRootIndex:
2846 case kMicrotaskQueueRootIndex: 2848 case kMicrotaskQueueRootIndex:
2847 case kDetachedContextsRootIndex: 2849 case kDetachedContextsRootIndex:
2848 case kWeakObjectToCodeTableRootIndex: 2850 case kWeakObjectToCodeTableRootIndex:
2849 case kRetainedMapsRootIndex: 2851 case kRetainedMapsRootIndex:
2852 case kNoScriptSharedFunctionInfosRootIndex:
2850 case kWeakStackTraceListRootIndex: 2853 case kWeakStackTraceListRootIndex:
2851 // Smi values 2854 // Smi values
2852 #define SMI_ENTRY(type, name, Name) case k##Name##RootIndex: 2855 #define SMI_ENTRY(type, name, Name) case k##Name##RootIndex:
2853 SMI_ROOT_LIST(SMI_ENTRY) 2856 SMI_ROOT_LIST(SMI_ENTRY)
2854 #undef SMI_ENTRY 2857 #undef SMI_ENTRY
2855 // String table 2858 // String table
2856 case kStringTableRootIndex: 2859 case kStringTableRootIndex:
2857 return true; 2860 return true;
2858 2861
2859 default: 2862 default:
(...skipping 3261 matching lines...) Expand 10 before | Expand all | Expand 10 after
6121 } 6124 }
6122 6125
6123 6126
6124 // static 6127 // static
6125 int Heap::GetStaticVisitorIdForMap(Map* map) { 6128 int Heap::GetStaticVisitorIdForMap(Map* map) {
6126 return StaticVisitorBase::GetVisitorId(map); 6129 return StaticVisitorBase::GetVisitorId(map);
6127 } 6130 }
6128 6131
6129 } // namespace internal 6132 } // namespace internal
6130 } // namespace v8 6133 } // namespace v8
OLDNEW
« src/heap/heap.h ('K') | « src/heap/heap.h ('k') | src/heap/heap-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698