| 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 2916 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2927 // Initialize descriptor cache. | 2927 // Initialize descriptor cache. |
| 2928 isolate_->descriptor_lookup_cache()->Clear(); | 2928 isolate_->descriptor_lookup_cache()->Clear(); |
| 2929 | 2929 |
| 2930 // Initialize compilation cache. | 2930 // Initialize compilation cache. |
| 2931 isolate_->compilation_cache()->Clear(); | 2931 isolate_->compilation_cache()->Clear(); |
| 2932 } | 2932 } |
| 2933 | 2933 |
| 2934 | 2934 |
| 2935 bool Heap::RootCanBeWrittenAfterInitialization(Heap::RootListIndex root_index) { | 2935 bool Heap::RootCanBeWrittenAfterInitialization(Heap::RootListIndex root_index) { |
| 2936 switch (root_index) { | 2936 switch (root_index) { |
| 2937 case kStoreBufferTopRootIndex: | |
| 2938 case kNumberStringCacheRootIndex: | 2937 case kNumberStringCacheRootIndex: |
| 2939 case kInstanceofCacheFunctionRootIndex: | 2938 case kInstanceofCacheFunctionRootIndex: |
| 2940 case kInstanceofCacheMapRootIndex: | 2939 case kInstanceofCacheMapRootIndex: |
| 2941 case kInstanceofCacheAnswerRootIndex: | 2940 case kInstanceofCacheAnswerRootIndex: |
| 2942 case kCodeStubsRootIndex: | 2941 case kCodeStubsRootIndex: |
| 2943 case kNonMonomorphicCacheRootIndex: | 2942 case kNonMonomorphicCacheRootIndex: |
| 2944 case kPolymorphicCodeCacheRootIndex: | 2943 case kPolymorphicCodeCacheRootIndex: |
| 2945 case kEmptyScriptRootIndex: | 2944 case kEmptyScriptRootIndex: |
| 2946 case kSymbolRegistryRootIndex: | 2945 case kSymbolRegistryRootIndex: |
| 2947 case kScriptListRootIndex: | 2946 case kScriptListRootIndex: |
| (...skipping 3524 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6472 } | 6471 } |
| 6473 | 6472 |
| 6474 | 6473 |
| 6475 // static | 6474 // static |
| 6476 int Heap::GetStaticVisitorIdForMap(Map* map) { | 6475 int Heap::GetStaticVisitorIdForMap(Map* map) { |
| 6477 return StaticVisitorBase::GetVisitorId(map); | 6476 return StaticVisitorBase::GetVisitorId(map); |
| 6478 } | 6477 } |
| 6479 | 6478 |
| 6480 } // namespace internal | 6479 } // namespace internal |
| 6481 } // namespace v8 | 6480 } // namespace v8 |
| OLD | NEW |