| 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 2738 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2749 #define SYMBOL_INIT(name, description) \ | 2749 #define SYMBOL_INIT(name, description) \ |
| 2750 Handle<Symbol> name = factory->NewSymbol(); \ | 2750 Handle<Symbol> name = factory->NewSymbol(); \ |
| 2751 Handle<String> name##d = factory->NewStringFromStaticChars(#description); \ | 2751 Handle<String> name##d = factory->NewStringFromStaticChars(#description); \ |
| 2752 name->set_is_well_known_symbol(true); \ | 2752 name->set_is_well_known_symbol(true); \ |
| 2753 name->set_name(*name##d); \ | 2753 name->set_name(*name##d); \ |
| 2754 roots_[k##name##RootIndex] = *name; | 2754 roots_[k##name##RootIndex] = *name; |
| 2755 WELL_KNOWN_SYMBOL_LIST(SYMBOL_INIT) | 2755 WELL_KNOWN_SYMBOL_LIST(SYMBOL_INIT) |
| 2756 #undef SYMBOL_INIT | 2756 #undef SYMBOL_INIT |
| 2757 } | 2757 } |
| 2758 | 2758 |
| 2759 // Allocate the dictionary of intrinsic function names. | |
| 2760 Handle<NameDictionary> intrinsic_names = | |
| 2761 NameDictionary::New(isolate(), Runtime::kNumFunctions, TENURED); | |
| 2762 Runtime::InitializeIntrinsicFunctionNames(isolate(), intrinsic_names); | |
| 2763 set_intrinsic_function_names(*intrinsic_names); | |
| 2764 | |
| 2765 Handle<NameDictionary> empty_properties_dictionary = | 2759 Handle<NameDictionary> empty_properties_dictionary = |
| 2766 NameDictionary::New(isolate(), 0, TENURED); | 2760 NameDictionary::New(isolate(), 0, TENURED); |
| 2767 empty_properties_dictionary->SetRequiresCopyOnCapacityChange(); | 2761 empty_properties_dictionary->SetRequiresCopyOnCapacityChange(); |
| 2768 set_empty_properties_dictionary(*empty_properties_dictionary); | 2762 set_empty_properties_dictionary(*empty_properties_dictionary); |
| 2769 | 2763 |
| 2770 set_number_string_cache( | 2764 set_number_string_cache( |
| 2771 *factory->NewFixedArray(kInitialNumberStringCacheSize * 2, TENURED)); | 2765 *factory->NewFixedArray(kInitialNumberStringCacheSize * 2, TENURED)); |
| 2772 | 2766 |
| 2773 // Allocate cache for single character one byte strings. | 2767 // Allocate cache for single character one byte strings. |
| 2774 set_single_character_string_cache( | 2768 set_single_character_string_cache( |
| (...skipping 3756 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6531 } | 6525 } |
| 6532 | 6526 |
| 6533 | 6527 |
| 6534 // static | 6528 // static |
| 6535 int Heap::GetStaticVisitorIdForMap(Map* map) { | 6529 int Heap::GetStaticVisitorIdForMap(Map* map) { |
| 6536 return StaticVisitorBase::GetVisitorId(map); | 6530 return StaticVisitorBase::GetVisitorId(map); |
| 6537 } | 6531 } |
| 6538 | 6532 |
| 6539 } // namespace internal | 6533 } // namespace internal |
| 6540 } // namespace v8 | 6534 } // namespace v8 |
| OLD | NEW |