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/base/utils/random-number-generator.h" | 10 #include "src/base/utils/random-number-generator.h" |
(...skipping 2906 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2917 set_symbol_registry(undefined_value()); | 2917 set_symbol_registry(undefined_value()); |
2918 | 2918 |
2919 // Allocate object to hold object observation state. | 2919 // Allocate object to hold object observation state. |
2920 set_observation_state(*factory->NewJSObjectFromMap( | 2920 set_observation_state(*factory->NewJSObjectFromMap( |
2921 factory->NewMap(JS_OBJECT_TYPE, JSObject::kHeaderSize))); | 2921 factory->NewMap(JS_OBJECT_TYPE, JSObject::kHeaderSize))); |
2922 | 2922 |
2923 // Microtask queue uses the empty fixed array as a sentinel for "empty". | 2923 // Microtask queue uses the empty fixed array as a sentinel for "empty". |
2924 // Number of queued microtasks stored in Isolate::pending_microtask_count(). | 2924 // Number of queued microtasks stored in Isolate::pending_microtask_count(). |
2925 set_microtask_queue(empty_fixed_array()); | 2925 set_microtask_queue(empty_fixed_array()); |
2926 | 2926 |
| 2927 set_detailed_stack_trace_symbol(*factory->NewPrivateSymbol()); |
| 2928 set_elements_transition_symbol(*factory->NewPrivateSymbol()); |
2927 set_frozen_symbol(*factory->NewPrivateSymbol()); | 2929 set_frozen_symbol(*factory->NewPrivateSymbol()); |
| 2930 set_megamorphic_symbol(*factory->NewPrivateSymbol()); |
2928 set_nonexistent_symbol(*factory->NewPrivateSymbol()); | 2931 set_nonexistent_symbol(*factory->NewPrivateSymbol()); |
2929 set_elements_transition_symbol(*factory->NewPrivateSymbol()); | 2932 set_normal_ic_symbol(*factory->NewPrivateSymbol()); |
2930 set_uninitialized_symbol(*factory->NewPrivateSymbol()); | |
2931 set_megamorphic_symbol(*factory->NewPrivateSymbol()); | |
2932 set_observed_symbol(*factory->NewPrivateSymbol()); | 2933 set_observed_symbol(*factory->NewPrivateSymbol()); |
2933 set_stack_trace_symbol(*factory->NewPrivateSymbol()); | 2934 set_stack_trace_symbol(*factory->NewPrivateSymbol()); |
2934 set_detailed_stack_trace_symbol(*factory->NewPrivateSymbol()); | 2935 set_uninitialized_symbol(*factory->NewPrivateSymbol()); |
2935 | 2936 |
2936 Handle<SeededNumberDictionary> slow_element_dictionary = | 2937 Handle<SeededNumberDictionary> slow_element_dictionary = |
2937 SeededNumberDictionary::New(isolate(), 0, TENURED); | 2938 SeededNumberDictionary::New(isolate(), 0, TENURED); |
2938 slow_element_dictionary->set_requires_slow_elements(); | 2939 slow_element_dictionary->set_requires_slow_elements(); |
2939 set_empty_slow_element_dictionary(*slow_element_dictionary); | 2940 set_empty_slow_element_dictionary(*slow_element_dictionary); |
2940 | 2941 |
2941 set_materialized_objects(*factory->NewFixedArray(0, TENURED)); | 2942 set_materialized_objects(*factory->NewFixedArray(0, TENURED)); |
2942 | 2943 |
2943 // Handling of script id generation is in Factory::NewScript. | 2944 // Handling of script id generation is in Factory::NewScript. |
2944 set_last_script_id(Smi::FromInt(v8::UnboundScript::kNoScriptId)); | 2945 set_last_script_id(Smi::FromInt(v8::UnboundScript::kNoScriptId)); |
(...skipping 3220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6165 static_cast<int>(object_sizes_last_time_[index])); | 6166 static_cast<int>(object_sizes_last_time_[index])); |
6166 CODE_AGE_LIST_COMPLETE(ADJUST_LAST_TIME_OBJECT_COUNT) | 6167 CODE_AGE_LIST_COMPLETE(ADJUST_LAST_TIME_OBJECT_COUNT) |
6167 #undef ADJUST_LAST_TIME_OBJECT_COUNT | 6168 #undef ADJUST_LAST_TIME_OBJECT_COUNT |
6168 | 6169 |
6169 MemCopy(object_counts_last_time_, object_counts_, sizeof(object_counts_)); | 6170 MemCopy(object_counts_last_time_, object_counts_, sizeof(object_counts_)); |
6170 MemCopy(object_sizes_last_time_, object_sizes_, sizeof(object_sizes_)); | 6171 MemCopy(object_sizes_last_time_, object_sizes_, sizeof(object_sizes_)); |
6171 ClearObjectStats(); | 6172 ClearObjectStats(); |
6172 } | 6173 } |
6173 | 6174 |
6174 } } // namespace v8::internal | 6175 } } // namespace v8::internal |
OLD | NEW |