OLD | NEW |
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/scopeinfo.h" | 9 #include "src/ast/scopeinfo.h" |
10 #include "src/base/bits.h" | 10 #include "src/base/bits.h" |
(...skipping 2867 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2878 isolate_->keyed_lookup_cache()->Clear(); | 2878 isolate_->keyed_lookup_cache()->Clear(); |
2879 | 2879 |
2880 // Initialize context slot cache. | 2880 // Initialize context slot cache. |
2881 isolate_->context_slot_cache()->Clear(); | 2881 isolate_->context_slot_cache()->Clear(); |
2882 | 2882 |
2883 // Initialize descriptor cache. | 2883 // Initialize descriptor cache. |
2884 isolate_->descriptor_lookup_cache()->Clear(); | 2884 isolate_->descriptor_lookup_cache()->Clear(); |
2885 | 2885 |
2886 // Initialize compilation cache. | 2886 // Initialize compilation cache. |
2887 isolate_->compilation_cache()->Clear(); | 2887 isolate_->compilation_cache()->Clear(); |
2888 | |
2889 CreateFixedStubs(); | |
2890 } | 2888 } |
2891 | 2889 |
2892 bool Heap::RootCanBeWrittenAfterInitialization(Heap::RootListIndex root_index) { | 2890 bool Heap::RootCanBeWrittenAfterInitialization(Heap::RootListIndex root_index) { |
2893 switch (root_index) { | 2891 switch (root_index) { |
2894 case kNumberStringCacheRootIndex: | 2892 case kNumberStringCacheRootIndex: |
2895 case kInstanceofCacheFunctionRootIndex: | 2893 case kInstanceofCacheFunctionRootIndex: |
2896 case kInstanceofCacheMapRootIndex: | 2894 case kInstanceofCacheMapRootIndex: |
2897 case kInstanceofCacheAnswerRootIndex: | 2895 case kInstanceofCacheAnswerRootIndex: |
2898 case kCodeStubsRootIndex: | 2896 case kCodeStubsRootIndex: |
2899 case kEmptyScriptRootIndex: | 2897 case kEmptyScriptRootIndex: |
(...skipping 3547 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6447 } | 6445 } |
6448 | 6446 |
6449 | 6447 |
6450 // static | 6448 // static |
6451 int Heap::GetStaticVisitorIdForMap(Map* map) { | 6449 int Heap::GetStaticVisitorIdForMap(Map* map) { |
6452 return StaticVisitorBase::GetVisitorId(map); | 6450 return StaticVisitorBase::GetVisitorId(map); |
6453 } | 6451 } |
6454 | 6452 |
6455 } // namespace internal | 6453 } // namespace internal |
6456 } // namespace v8 | 6454 } // namespace v8 |
OLD | NEW |