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 2768 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2779 // Allocate cache for string split and regexp-multiple. | 2779 // Allocate cache for string split and regexp-multiple. |
2780 set_string_split_cache(*factory->NewFixedArray( | 2780 set_string_split_cache(*factory->NewFixedArray( |
2781 RegExpResultsCache::kRegExpResultsCacheSize, TENURED)); | 2781 RegExpResultsCache::kRegExpResultsCacheSize, TENURED)); |
2782 set_regexp_multiple_cache(*factory->NewFixedArray( | 2782 set_regexp_multiple_cache(*factory->NewFixedArray( |
2783 RegExpResultsCache::kRegExpResultsCacheSize, TENURED)); | 2783 RegExpResultsCache::kRegExpResultsCacheSize, TENURED)); |
2784 | 2784 |
2785 // Allocate cache for external strings pointing to native source code. | 2785 // Allocate cache for external strings pointing to native source code. |
2786 set_natives_source_cache( | 2786 set_natives_source_cache( |
2787 *factory->NewFixedArray(Natives::GetBuiltinsCount())); | 2787 *factory->NewFixedArray(Natives::GetBuiltinsCount())); |
2788 | 2788 |
| 2789 set_experimental_natives_source_cache( |
| 2790 *factory->NewFixedArray(ExperimentalNatives::GetBuiltinsCount())); |
| 2791 |
2789 set_extra_natives_source_cache( | 2792 set_extra_natives_source_cache( |
2790 *factory->NewFixedArray(ExtraNatives::GetBuiltinsCount())); | 2793 *factory->NewFixedArray(ExtraNatives::GetBuiltinsCount())); |
2791 | 2794 |
2792 set_experimental_extra_natives_source_cache( | 2795 set_experimental_extra_natives_source_cache( |
2793 *factory->NewFixedArray(ExperimentalExtraNatives::GetBuiltinsCount())); | 2796 *factory->NewFixedArray(ExperimentalExtraNatives::GetBuiltinsCount())); |
2794 | 2797 |
2795 set_undefined_cell(*factory->NewCell(factory->undefined_value())); | 2798 set_undefined_cell(*factory->NewCell(factory->undefined_value())); |
2796 | 2799 |
2797 // Microtask queue uses the empty fixed array as a sentinel for "empty". | 2800 // Microtask queue uses the empty fixed array as a sentinel for "empty". |
2798 // Number of queued microtasks stored in Isolate::pending_microtask_count(). | 2801 // Number of queued microtasks stored in Isolate::pending_microtask_count(). |
(...skipping 3599 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6398 } | 6401 } |
6399 | 6402 |
6400 | 6403 |
6401 // static | 6404 // static |
6402 int Heap::GetStaticVisitorIdForMap(Map* map) { | 6405 int Heap::GetStaticVisitorIdForMap(Map* map) { |
6403 return StaticVisitorBase::GetVisitorId(map); | 6406 return StaticVisitorBase::GetVisitorId(map); |
6404 } | 6407 } |
6405 | 6408 |
6406 } // namespace internal | 6409 } // namespace internal |
6407 } // namespace v8 | 6410 } // namespace v8 |
OLD | NEW |