| 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 2843 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2854 set_symbol_registry(undefined_value()); | 2854 set_symbol_registry(undefined_value()); |
| 2855 | 2855 |
| 2856 // Allocate object to hold object observation state. | 2856 // Allocate object to hold object observation state. |
| 2857 set_observation_state(*factory->NewJSObjectFromMap( | 2857 set_observation_state(*factory->NewJSObjectFromMap( |
| 2858 factory->NewMap(JS_OBJECT_TYPE, JSObject::kHeaderSize))); | 2858 factory->NewMap(JS_OBJECT_TYPE, JSObject::kHeaderSize))); |
| 2859 | 2859 |
| 2860 // Microtask queue uses the empty fixed array as a sentinel for "empty". | 2860 // Microtask queue uses the empty fixed array as a sentinel for "empty". |
| 2861 // Number of queued microtasks stored in Isolate::pending_microtask_count(). | 2861 // Number of queued microtasks stored in Isolate::pending_microtask_count(). |
| 2862 set_microtask_queue(empty_fixed_array()); | 2862 set_microtask_queue(empty_fixed_array()); |
| 2863 | 2863 |
| 2864 set_detailed_stack_trace_symbol(*factory->NewPrivateSymbol()); | 2864 set_detailed_stack_trace_symbol(*factory->NewPrivateOwnSymbol()); |
| 2865 set_elements_transition_symbol(*factory->NewPrivateSymbol()); | 2865 set_elements_transition_symbol(*factory->NewPrivateOwnSymbol()); |
| 2866 set_frozen_symbol(*factory->NewPrivateSymbol()); | 2866 set_frozen_symbol(*factory->NewPrivateOwnSymbol()); |
| 2867 set_megamorphic_symbol(*factory->NewPrivateSymbol()); | 2867 set_megamorphic_symbol(*factory->NewPrivateOwnSymbol()); |
| 2868 set_premonomorphic_symbol(*factory->NewPrivateSymbol()); | 2868 set_premonomorphic_symbol(*factory->NewPrivateOwnSymbol()); |
| 2869 set_generic_symbol(*factory->NewPrivateSymbol()); | 2869 set_generic_symbol(*factory->NewPrivateOwnSymbol()); |
| 2870 set_nonexistent_symbol(*factory->NewPrivateSymbol()); | 2870 set_nonexistent_symbol(*factory->NewPrivateOwnSymbol()); |
| 2871 set_normal_ic_symbol(*factory->NewPrivateSymbol()); | 2871 set_normal_ic_symbol(*factory->NewPrivateOwnSymbol()); |
| 2872 set_observed_symbol(*factory->NewPrivateSymbol()); | 2872 set_observed_symbol(*factory->NewPrivateOwnSymbol()); |
| 2873 set_stack_trace_symbol(*factory->NewPrivateSymbol()); | 2873 set_stack_trace_symbol(*factory->NewPrivateOwnSymbol()); |
| 2874 set_uninitialized_symbol(*factory->NewPrivateSymbol()); | 2874 set_uninitialized_symbol(*factory->NewPrivateOwnSymbol()); |
| 2875 set_home_object_symbol(*factory->NewPrivateOwnSymbol()); | 2875 set_home_object_symbol(*factory->NewPrivateOwnSymbol()); |
| 2876 | 2876 |
| 2877 Handle<SeededNumberDictionary> slow_element_dictionary = | 2877 Handle<SeededNumberDictionary> slow_element_dictionary = |
| 2878 SeededNumberDictionary::New(isolate(), 0, TENURED); | 2878 SeededNumberDictionary::New(isolate(), 0, TENURED); |
| 2879 slow_element_dictionary->set_requires_slow_elements(); | 2879 slow_element_dictionary->set_requires_slow_elements(); |
| 2880 set_empty_slow_element_dictionary(*slow_element_dictionary); | 2880 set_empty_slow_element_dictionary(*slow_element_dictionary); |
| 2881 | 2881 |
| 2882 set_materialized_objects(*factory->NewFixedArray(0, TENURED)); | 2882 set_materialized_objects(*factory->NewFixedArray(0, TENURED)); |
| 2883 | 2883 |
| 2884 // Handling of script id generation is in Factory::NewScript. | 2884 // Handling of script id generation is in Factory::NewScript. |
| (...skipping 3256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6141 static_cast<int>(object_sizes_last_time_[index])); | 6141 static_cast<int>(object_sizes_last_time_[index])); |
| 6142 CODE_AGE_LIST_COMPLETE(ADJUST_LAST_TIME_OBJECT_COUNT) | 6142 CODE_AGE_LIST_COMPLETE(ADJUST_LAST_TIME_OBJECT_COUNT) |
| 6143 #undef ADJUST_LAST_TIME_OBJECT_COUNT | 6143 #undef ADJUST_LAST_TIME_OBJECT_COUNT |
| 6144 | 6144 |
| 6145 MemCopy(object_counts_last_time_, object_counts_, sizeof(object_counts_)); | 6145 MemCopy(object_counts_last_time_, object_counts_, sizeof(object_counts_)); |
| 6146 MemCopy(object_sizes_last_time_, object_sizes_, sizeof(object_sizes_)); | 6146 MemCopy(object_sizes_last_time_, object_sizes_, sizeof(object_sizes_)); |
| 6147 ClearObjectStats(); | 6147 ClearObjectStats(); |
| 6148 } | 6148 } |
| 6149 } | 6149 } |
| 6150 } // namespace v8::internal | 6150 } // namespace v8::internal |
| OLD | NEW |