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