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 2845 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2856 factory->NewMap(JS_OBJECT_TYPE, JSObject::kHeaderSize))); | 2856 factory->NewMap(JS_OBJECT_TYPE, JSObject::kHeaderSize))); |
2857 | 2857 |
2858 // Microtask queue uses the empty fixed array as a sentinel for "empty". | 2858 // Microtask queue uses the empty fixed array as a sentinel for "empty". |
2859 // Number of queued microtasks stored in Isolate::pending_microtask_count(). | 2859 // Number of queued microtasks stored in Isolate::pending_microtask_count(). |
2860 set_microtask_queue(empty_fixed_array()); | 2860 set_microtask_queue(empty_fixed_array()); |
2861 | 2861 |
2862 set_detailed_stack_trace_symbol(*factory->NewPrivateSymbol()); | 2862 set_detailed_stack_trace_symbol(*factory->NewPrivateSymbol()); |
2863 set_elements_transition_symbol(*factory->NewPrivateSymbol()); | 2863 set_elements_transition_symbol(*factory->NewPrivateSymbol()); |
2864 set_frozen_symbol(*factory->NewPrivateSymbol()); | 2864 set_frozen_symbol(*factory->NewPrivateSymbol()); |
2865 set_megamorphic_symbol(*factory->NewPrivateSymbol()); | 2865 set_megamorphic_symbol(*factory->NewPrivateSymbol()); |
| 2866 set_premonomorphic_symbol(*factory->NewPrivateSymbol()); |
| 2867 set_generic_symbol(*factory->NewPrivateSymbol()); |
2866 set_nonexistent_symbol(*factory->NewPrivateSymbol()); | 2868 set_nonexistent_symbol(*factory->NewPrivateSymbol()); |
2867 set_normal_ic_symbol(*factory->NewPrivateSymbol()); | 2869 set_normal_ic_symbol(*factory->NewPrivateSymbol()); |
2868 set_observed_symbol(*factory->NewPrivateSymbol()); | 2870 set_observed_symbol(*factory->NewPrivateSymbol()); |
2869 set_stack_trace_symbol(*factory->NewPrivateSymbol()); | 2871 set_stack_trace_symbol(*factory->NewPrivateSymbol()); |
2870 set_uninitialized_symbol(*factory->NewPrivateSymbol()); | 2872 set_uninitialized_symbol(*factory->NewPrivateSymbol()); |
2871 set_home_object_symbol(*factory->NewPrivateOwnSymbol()); | 2873 set_home_object_symbol(*factory->NewPrivateOwnSymbol()); |
2872 | 2874 |
2873 Handle<SeededNumberDictionary> slow_element_dictionary = | 2875 Handle<SeededNumberDictionary> slow_element_dictionary = |
2874 SeededNumberDictionary::New(isolate(), 0, TENURED); | 2876 SeededNumberDictionary::New(isolate(), 0, TENURED); |
2875 slow_element_dictionary->set_requires_slow_elements(); | 2877 slow_element_dictionary->set_requires_slow_elements(); |
(...skipping 3231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6107 static_cast<int>(object_sizes_last_time_[index])); | 6109 static_cast<int>(object_sizes_last_time_[index])); |
6108 CODE_AGE_LIST_COMPLETE(ADJUST_LAST_TIME_OBJECT_COUNT) | 6110 CODE_AGE_LIST_COMPLETE(ADJUST_LAST_TIME_OBJECT_COUNT) |
6109 #undef ADJUST_LAST_TIME_OBJECT_COUNT | 6111 #undef ADJUST_LAST_TIME_OBJECT_COUNT |
6110 | 6112 |
6111 MemCopy(object_counts_last_time_, object_counts_, sizeof(object_counts_)); | 6113 MemCopy(object_counts_last_time_, object_counts_, sizeof(object_counts_)); |
6112 MemCopy(object_sizes_last_time_, object_sizes_, sizeof(object_sizes_)); | 6114 MemCopy(object_sizes_last_time_, object_sizes_, sizeof(object_sizes_)); |
6113 ClearObjectStats(); | 6115 ClearObjectStats(); |
6114 } | 6116 } |
6115 } | 6117 } |
6116 } // namespace v8::internal | 6118 } // namespace v8::internal |
OLD | NEW |