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/v8.h" | 5 #include "src/v8.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/base/bits.h" | 9 #include "src/base/bits.h" |
10 #include "src/base/once.h" | 10 #include "src/base/once.h" |
(...skipping 2862 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2873 set_frozen_symbol(*factory->NewPrivateOwnSymbol()); | 2873 set_frozen_symbol(*factory->NewPrivateOwnSymbol()); |
2874 set_megamorphic_symbol(*factory->NewPrivateOwnSymbol()); | 2874 set_megamorphic_symbol(*factory->NewPrivateOwnSymbol()); |
2875 set_premonomorphic_symbol(*factory->NewPrivateOwnSymbol()); | 2875 set_premonomorphic_symbol(*factory->NewPrivateOwnSymbol()); |
2876 set_generic_symbol(*factory->NewPrivateOwnSymbol()); | 2876 set_generic_symbol(*factory->NewPrivateOwnSymbol()); |
2877 set_nonexistent_symbol(*factory->NewPrivateOwnSymbol()); | 2877 set_nonexistent_symbol(*factory->NewPrivateOwnSymbol()); |
2878 set_normal_ic_symbol(*factory->NewPrivateOwnSymbol()); | 2878 set_normal_ic_symbol(*factory->NewPrivateOwnSymbol()); |
2879 set_observed_symbol(*factory->NewPrivateOwnSymbol()); | 2879 set_observed_symbol(*factory->NewPrivateOwnSymbol()); |
2880 set_stack_trace_symbol(*factory->NewPrivateOwnSymbol()); | 2880 set_stack_trace_symbol(*factory->NewPrivateOwnSymbol()); |
2881 set_uninitialized_symbol(*factory->NewPrivateOwnSymbol()); | 2881 set_uninitialized_symbol(*factory->NewPrivateOwnSymbol()); |
2882 set_home_object_symbol(*factory->NewPrivateOwnSymbol()); | 2882 set_home_object_symbol(*factory->NewPrivateOwnSymbol()); |
| 2883 set_promise_debug_symbol(*factory->NewPrivateOwnSymbol()); |
2883 | 2884 |
2884 Handle<SeededNumberDictionary> slow_element_dictionary = | 2885 Handle<SeededNumberDictionary> slow_element_dictionary = |
2885 SeededNumberDictionary::New(isolate(), 0, TENURED); | 2886 SeededNumberDictionary::New(isolate(), 0, TENURED); |
2886 slow_element_dictionary->set_requires_slow_elements(); | 2887 slow_element_dictionary->set_requires_slow_elements(); |
2887 set_empty_slow_element_dictionary(*slow_element_dictionary); | 2888 set_empty_slow_element_dictionary(*slow_element_dictionary); |
2888 | 2889 |
2889 set_materialized_objects(*factory->NewFixedArray(0, TENURED)); | 2890 set_materialized_objects(*factory->NewFixedArray(0, TENURED)); |
2890 | 2891 |
2891 // Handling of script id generation is in Factory::NewScript. | 2892 // Handling of script id generation is in Factory::NewScript. |
2892 set_last_script_id(Smi::FromInt(v8::UnboundScript::kNoScriptId)); | 2893 set_last_script_id(Smi::FromInt(v8::UnboundScript::kNoScriptId)); |
(...skipping 3257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6150 static_cast<int>(object_sizes_last_time_[index])); | 6151 static_cast<int>(object_sizes_last_time_[index])); |
6151 CODE_AGE_LIST_COMPLETE(ADJUST_LAST_TIME_OBJECT_COUNT) | 6152 CODE_AGE_LIST_COMPLETE(ADJUST_LAST_TIME_OBJECT_COUNT) |
6152 #undef ADJUST_LAST_TIME_OBJECT_COUNT | 6153 #undef ADJUST_LAST_TIME_OBJECT_COUNT |
6153 | 6154 |
6154 MemCopy(object_counts_last_time_, object_counts_, sizeof(object_counts_)); | 6155 MemCopy(object_counts_last_time_, object_counts_, sizeof(object_counts_)); |
6155 MemCopy(object_sizes_last_time_, object_sizes_, sizeof(object_sizes_)); | 6156 MemCopy(object_sizes_last_time_, object_sizes_, sizeof(object_sizes_)); |
6156 ClearObjectStats(); | 6157 ClearObjectStats(); |
6157 } | 6158 } |
6158 } | 6159 } |
6159 } // namespace v8::internal | 6160 } // namespace v8::internal |
OLD | NEW |