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/once.h" | 9 #include "src/base/once.h" |
10 #include "src/bootstrapper.h" | 10 #include "src/bootstrapper.h" |
(...skipping 2899 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2910 // Microtask queue uses the empty fixed array as a sentinel for "empty". | 2910 // Microtask queue uses the empty fixed array as a sentinel for "empty". |
2911 // Number of queued microtasks stored in Isolate::pending_microtask_count(). | 2911 // Number of queued microtasks stored in Isolate::pending_microtask_count(). |
2912 set_microtask_queue(empty_fixed_array()); | 2912 set_microtask_queue(empty_fixed_array()); |
2913 | 2913 |
2914 set_frozen_symbol(*factory->NewPrivateSymbol()); | 2914 set_frozen_symbol(*factory->NewPrivateSymbol()); |
2915 set_nonexistent_symbol(*factory->NewPrivateSymbol()); | 2915 set_nonexistent_symbol(*factory->NewPrivateSymbol()); |
2916 set_elements_transition_symbol(*factory->NewPrivateSymbol()); | 2916 set_elements_transition_symbol(*factory->NewPrivateSymbol()); |
2917 set_uninitialized_symbol(*factory->NewPrivateSymbol()); | 2917 set_uninitialized_symbol(*factory->NewPrivateSymbol()); |
2918 set_megamorphic_symbol(*factory->NewPrivateSymbol()); | 2918 set_megamorphic_symbol(*factory->NewPrivateSymbol()); |
2919 set_observed_symbol(*factory->NewPrivateSymbol()); | 2919 set_observed_symbol(*factory->NewPrivateSymbol()); |
2920 set_stack_trace_symbol(*factory->NewPrivateSymbol()); | |
2921 set_detailed_stack_trace_symbol(*factory->NewPrivateSymbol()); | |
2922 | 2920 |
2923 Handle<SeededNumberDictionary> slow_element_dictionary = | 2921 Handle<SeededNumberDictionary> slow_element_dictionary = |
2924 SeededNumberDictionary::New(isolate(), 0, TENURED); | 2922 SeededNumberDictionary::New(isolate(), 0, TENURED); |
2925 slow_element_dictionary->set_requires_slow_elements(); | 2923 slow_element_dictionary->set_requires_slow_elements(); |
2926 set_empty_slow_element_dictionary(*slow_element_dictionary); | 2924 set_empty_slow_element_dictionary(*slow_element_dictionary); |
2927 | 2925 |
2928 set_materialized_objects(*factory->NewFixedArray(0, TENURED)); | 2926 set_materialized_objects(*factory->NewFixedArray(0, TENURED)); |
2929 | 2927 |
2930 // Handling of script id generation is in Factory::NewScript. | 2928 // Handling of script id generation is in Factory::NewScript. |
2931 set_last_script_id(Smi::FromInt(v8::UnboundScript::kNoScriptId)); | 2929 set_last_script_id(Smi::FromInt(v8::UnboundScript::kNoScriptId)); |
(...skipping 3512 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6444 static_cast<int>(object_sizes_last_time_[index])); | 6442 static_cast<int>(object_sizes_last_time_[index])); |
6445 CODE_AGE_LIST_COMPLETE(ADJUST_LAST_TIME_OBJECT_COUNT) | 6443 CODE_AGE_LIST_COMPLETE(ADJUST_LAST_TIME_OBJECT_COUNT) |
6446 #undef ADJUST_LAST_TIME_OBJECT_COUNT | 6444 #undef ADJUST_LAST_TIME_OBJECT_COUNT |
6447 | 6445 |
6448 MemCopy(object_counts_last_time_, object_counts_, sizeof(object_counts_)); | 6446 MemCopy(object_counts_last_time_, object_counts_, sizeof(object_counts_)); |
6449 MemCopy(object_sizes_last_time_, object_sizes_, sizeof(object_sizes_)); | 6447 MemCopy(object_sizes_last_time_, object_sizes_, sizeof(object_sizes_)); |
6450 ClearObjectStats(); | 6448 ClearObjectStats(); |
6451 } | 6449 } |
6452 | 6450 |
6453 } } // namespace v8::internal | 6451 } } // namespace v8::internal |
OLD | NEW |