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/scopeinfo.h" | 9 #include "src/ast/scopeinfo.h" |
10 #include "src/base/bits.h" | 10 #include "src/base/bits.h" |
(...skipping 2734 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2745 } | 2745 } |
2746 | 2746 |
2747 CreateFixedStubs(); | 2747 CreateFixedStubs(); |
2748 | 2748 |
2749 // Allocate the dictionary of intrinsic function names. | 2749 // Allocate the dictionary of intrinsic function names. |
2750 Handle<NameDictionary> intrinsic_names = | 2750 Handle<NameDictionary> intrinsic_names = |
2751 NameDictionary::New(isolate(), Runtime::kNumFunctions, TENURED); | 2751 NameDictionary::New(isolate(), Runtime::kNumFunctions, TENURED); |
2752 Runtime::InitializeIntrinsicFunctionNames(isolate(), intrinsic_names); | 2752 Runtime::InitializeIntrinsicFunctionNames(isolate(), intrinsic_names); |
2753 set_intrinsic_function_names(*intrinsic_names); | 2753 set_intrinsic_function_names(*intrinsic_names); |
2754 | 2754 |
| 2755 Handle<NameDictionary> empty_properties_dictionary = |
| 2756 NameDictionary::New(isolate(), 0, TENURED); |
| 2757 empty_properties_dictionary->SetRequiresCopyOnCapacityChange(); |
| 2758 set_empty_properties_dictionary(*empty_properties_dictionary); |
| 2759 |
2755 set_number_string_cache( | 2760 set_number_string_cache( |
2756 *factory->NewFixedArray(kInitialNumberStringCacheSize * 2, TENURED)); | 2761 *factory->NewFixedArray(kInitialNumberStringCacheSize * 2, TENURED)); |
2757 | 2762 |
2758 // Allocate cache for single character one byte strings. | 2763 // Allocate cache for single character one byte strings. |
2759 set_single_character_string_cache( | 2764 set_single_character_string_cache( |
2760 *factory->NewFixedArray(String::kMaxOneByteCharCode + 1, TENURED)); | 2765 *factory->NewFixedArray(String::kMaxOneByteCharCode + 1, TENURED)); |
2761 | 2766 |
2762 // Allocate cache for string split and regexp-multiple. | 2767 // Allocate cache for string split and regexp-multiple. |
2763 set_string_split_cache(*factory->NewFixedArray( | 2768 set_string_split_cache(*factory->NewFixedArray( |
2764 RegExpResultsCache::kRegExpResultsCacheSize, TENURED)); | 2769 RegExpResultsCache::kRegExpResultsCacheSize, TENURED)); |
(...skipping 3472 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6237 } | 6242 } |
6238 | 6243 |
6239 | 6244 |
6240 // static | 6245 // static |
6241 int Heap::GetStaticVisitorIdForMap(Map* map) { | 6246 int Heap::GetStaticVisitorIdForMap(Map* map) { |
6242 return StaticVisitorBase::GetVisitorId(map); | 6247 return StaticVisitorBase::GetVisitorId(map); |
6243 } | 6248 } |
6244 | 6249 |
6245 } // namespace internal | 6250 } // namespace internal |
6246 } // namespace v8 | 6251 } // namespace v8 |
OLD | NEW |