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