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 2748 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2759 // Allocate cache for string split and regexp-multiple. | 2759 // Allocate cache for string split and regexp-multiple. |
2760 set_string_split_cache(*factory->NewFixedArray( | 2760 set_string_split_cache(*factory->NewFixedArray( |
2761 RegExpResultsCache::kRegExpResultsCacheSize, TENURED)); | 2761 RegExpResultsCache::kRegExpResultsCacheSize, TENURED)); |
2762 set_regexp_multiple_cache(*factory->NewFixedArray( | 2762 set_regexp_multiple_cache(*factory->NewFixedArray( |
2763 RegExpResultsCache::kRegExpResultsCacheSize, TENURED)); | 2763 RegExpResultsCache::kRegExpResultsCacheSize, TENURED)); |
2764 | 2764 |
2765 // Allocate cache for external strings pointing to native source code. | 2765 // Allocate cache for external strings pointing to native source code. |
2766 set_natives_source_cache( | 2766 set_natives_source_cache( |
2767 *factory->NewFixedArray(Natives::GetBuiltinsCount())); | 2767 *factory->NewFixedArray(Natives::GetBuiltinsCount())); |
2768 | 2768 |
2769 set_experimental_natives_source_cache( | |
2770 *factory->NewFixedArray(ExperimentalNatives::GetBuiltinsCount())); | |
2771 | |
2772 set_extra_natives_source_cache( | 2769 set_extra_natives_source_cache( |
2773 *factory->NewFixedArray(ExtraNatives::GetBuiltinsCount())); | 2770 *factory->NewFixedArray(ExtraNatives::GetBuiltinsCount())); |
2774 | 2771 |
2775 set_experimental_extra_natives_source_cache( | 2772 set_experimental_extra_natives_source_cache( |
2776 *factory->NewFixedArray(ExperimentalExtraNatives::GetBuiltinsCount())); | 2773 *factory->NewFixedArray(ExperimentalExtraNatives::GetBuiltinsCount())); |
2777 | 2774 |
2778 set_undefined_cell(*factory->NewCell(factory->undefined_value())); | 2775 set_undefined_cell(*factory->NewCell(factory->undefined_value())); |
2779 | 2776 |
2780 // Microtask queue uses the empty fixed array as a sentinel for "empty". | 2777 // Microtask queue uses the empty fixed array as a sentinel for "empty". |
2781 // Number of queued microtasks stored in Isolate::pending_microtask_count(). | 2778 // Number of queued microtasks stored in Isolate::pending_microtask_count(). |
(...skipping 3592 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6374 } | 6371 } |
6375 | 6372 |
6376 | 6373 |
6377 // static | 6374 // static |
6378 int Heap::GetStaticVisitorIdForMap(Map* map) { | 6375 int Heap::GetStaticVisitorIdForMap(Map* map) { |
6379 return StaticVisitorBase::GetVisitorId(map); | 6376 return StaticVisitorBase::GetVisitorId(map); |
6380 } | 6377 } |
6381 | 6378 |
6382 } // namespace internal | 6379 } // namespace internal |
6383 } // namespace v8 | 6380 } // namespace v8 |
OLD | NEW |