| 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/assembler-inl.h" | 9 #include "src/assembler-inl.h" |
| 10 #include "src/ast/context-slot-cache.h" | 10 #include "src/ast/context-slot-cache.h" |
| (...skipping 2906 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2917 } | 2917 } |
| 2918 } | 2918 } |
| 2919 | 2919 |
| 2920 bool Heap::RootCanBeWrittenAfterInitialization(Heap::RootListIndex root_index) { | 2920 bool Heap::RootCanBeWrittenAfterInitialization(Heap::RootListIndex root_index) { |
| 2921 switch (root_index) { | 2921 switch (root_index) { |
| 2922 case kNumberStringCacheRootIndex: | 2922 case kNumberStringCacheRootIndex: |
| 2923 case kInstanceofCacheFunctionRootIndex: | 2923 case kInstanceofCacheFunctionRootIndex: |
| 2924 case kInstanceofCacheMapRootIndex: | 2924 case kInstanceofCacheMapRootIndex: |
| 2925 case kInstanceofCacheAnswerRootIndex: | 2925 case kInstanceofCacheAnswerRootIndex: |
| 2926 case kCodeStubsRootIndex: | 2926 case kCodeStubsRootIndex: |
| 2927 case kEmptyScriptRootIndex: |
| 2927 case kScriptListRootIndex: | 2928 case kScriptListRootIndex: |
| 2928 case kMaterializedObjectsRootIndex: | 2929 case kMaterializedObjectsRootIndex: |
| 2929 case kMicrotaskQueueRootIndex: | 2930 case kMicrotaskQueueRootIndex: |
| 2930 case kDetachedContextsRootIndex: | 2931 case kDetachedContextsRootIndex: |
| 2931 case kWeakObjectToCodeTableRootIndex: | 2932 case kWeakObjectToCodeTableRootIndex: |
| 2932 case kWeakNewSpaceObjectToCodeListRootIndex: | 2933 case kWeakNewSpaceObjectToCodeListRootIndex: |
| 2933 case kRetainedMapsRootIndex: | 2934 case kRetainedMapsRootIndex: |
| 2934 case kCodeCoverageListRootIndex: | 2935 case kCodeCoverageListRootIndex: |
| 2935 case kNoScriptSharedFunctionInfosRootIndex: | 2936 case kNoScriptSharedFunctionInfosRootIndex: |
| 2936 case kWeakStackTraceListRootIndex: | 2937 case kWeakStackTraceListRootIndex: |
| (...skipping 3459 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6396 } | 6397 } |
| 6397 | 6398 |
| 6398 | 6399 |
| 6399 // static | 6400 // static |
| 6400 int Heap::GetStaticVisitorIdForMap(Map* map) { | 6401 int Heap::GetStaticVisitorIdForMap(Map* map) { |
| 6401 return StaticVisitorBase::GetVisitorId(map); | 6402 return StaticVisitorBase::GetVisitorId(map); |
| 6402 } | 6403 } |
| 6403 | 6404 |
| 6404 } // namespace internal | 6405 } // namespace internal |
| 6405 } // namespace v8 | 6406 } // namespace v8 |
| OLD | NEW |