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 2858 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2869 isolate_->keyed_lookup_cache()->Clear(); | 2869 isolate_->keyed_lookup_cache()->Clear(); |
2870 | 2870 |
2871 // Initialize context slot cache. | 2871 // Initialize context slot cache. |
2872 isolate_->context_slot_cache()->Clear(); | 2872 isolate_->context_slot_cache()->Clear(); |
2873 | 2873 |
2874 // Initialize descriptor cache. | 2874 // Initialize descriptor cache. |
2875 isolate_->descriptor_lookup_cache()->Clear(); | 2875 isolate_->descriptor_lookup_cache()->Clear(); |
2876 | 2876 |
2877 // Initialize compilation cache. | 2877 // Initialize compilation cache. |
2878 isolate_->compilation_cache()->Clear(); | 2878 isolate_->compilation_cache()->Clear(); |
2879 | |
2880 CreateFixedStubs(); | |
2881 } | 2879 } |
2882 | 2880 |
2883 bool Heap::RootCanBeWrittenAfterInitialization(Heap::RootListIndex root_index) { | 2881 bool Heap::RootCanBeWrittenAfterInitialization(Heap::RootListIndex root_index) { |
2884 switch (root_index) { | 2882 switch (root_index) { |
2885 case kNumberStringCacheRootIndex: | 2883 case kNumberStringCacheRootIndex: |
2886 case kInstanceofCacheFunctionRootIndex: | 2884 case kInstanceofCacheFunctionRootIndex: |
2887 case kInstanceofCacheMapRootIndex: | 2885 case kInstanceofCacheMapRootIndex: |
2888 case kInstanceofCacheAnswerRootIndex: | 2886 case kInstanceofCacheAnswerRootIndex: |
2889 case kCodeStubsRootIndex: | 2887 case kCodeStubsRootIndex: |
2890 case kEmptyScriptRootIndex: | 2888 case kEmptyScriptRootIndex: |
(...skipping 3547 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6438 } | 6436 } |
6439 | 6437 |
6440 | 6438 |
6441 // static | 6439 // static |
6442 int Heap::GetStaticVisitorIdForMap(Map* map) { | 6440 int Heap::GetStaticVisitorIdForMap(Map* map) { |
6443 return StaticVisitorBase::GetVisitorId(map); | 6441 return StaticVisitorBase::GetVisitorId(map); |
6444 } | 6442 } |
6445 | 6443 |
6446 } // namespace internal | 6444 } // namespace internal |
6447 } // namespace v8 | 6445 } // namespace v8 |
OLD | NEW |