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