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