| 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 3090 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3101 | 3101 |
| 3102 set_materialized_objects(*factory->NewFixedArray(0, TENURED)); | 3102 set_materialized_objects(*factory->NewFixedArray(0, TENURED)); |
| 3103 | 3103 |
| 3104 // Handling of script id generation is in Factory::NewScript. | 3104 // Handling of script id generation is in Factory::NewScript. |
| 3105 set_last_script_id(Smi::FromInt(v8::UnboundScript::kNoScriptId)); | 3105 set_last_script_id(Smi::FromInt(v8::UnboundScript::kNoScriptId)); |
| 3106 | 3106 |
| 3107 set_allocation_sites_scratchpad( | 3107 set_allocation_sites_scratchpad( |
| 3108 *factory->NewFixedArray(kAllocationSiteScratchpadSize, TENURED)); | 3108 *factory->NewFixedArray(kAllocationSiteScratchpadSize, TENURED)); |
| 3109 InitializeAllocationSitesScratchpad(); | 3109 InitializeAllocationSitesScratchpad(); |
| 3110 | 3110 |
| 3111 set_cleared_weak_cell(*factory->NewWeakCell(factory->undefined_value())); |
| 3112 cleared_weak_cell()->unchecked_clear(); |
| 3113 |
| 3111 // Initialize keyed lookup cache. | 3114 // Initialize keyed lookup cache. |
| 3112 isolate_->keyed_lookup_cache()->Clear(); | 3115 isolate_->keyed_lookup_cache()->Clear(); |
| 3113 | 3116 |
| 3114 // Initialize context slot cache. | 3117 // Initialize context slot cache. |
| 3115 isolate_->context_slot_cache()->Clear(); | 3118 isolate_->context_slot_cache()->Clear(); |
| 3116 | 3119 |
| 3117 // Initialize descriptor cache. | 3120 // Initialize descriptor cache. |
| 3118 isolate_->descriptor_lookup_cache()->Clear(); | 3121 isolate_->descriptor_lookup_cache()->Clear(); |
| 3119 | 3122 |
| 3120 // Initialize compilation cache. | 3123 // Initialize compilation cache. |
| (...skipping 3283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6404 static_cast<int>(object_sizes_last_time_[index])); | 6407 static_cast<int>(object_sizes_last_time_[index])); |
| 6405 CODE_AGE_LIST_COMPLETE(ADJUST_LAST_TIME_OBJECT_COUNT) | 6408 CODE_AGE_LIST_COMPLETE(ADJUST_LAST_TIME_OBJECT_COUNT) |
| 6406 #undef ADJUST_LAST_TIME_OBJECT_COUNT | 6409 #undef ADJUST_LAST_TIME_OBJECT_COUNT |
| 6407 | 6410 |
| 6408 MemCopy(object_counts_last_time_, object_counts_, sizeof(object_counts_)); | 6411 MemCopy(object_counts_last_time_, object_counts_, sizeof(object_counts_)); |
| 6409 MemCopy(object_sizes_last_time_, object_sizes_, sizeof(object_sizes_)); | 6412 MemCopy(object_sizes_last_time_, object_sizes_, sizeof(object_sizes_)); |
| 6410 ClearObjectStats(); | 6413 ClearObjectStats(); |
| 6411 } | 6414 } |
| 6412 } | 6415 } |
| 6413 } // namespace v8::internal | 6416 } // namespace v8::internal |
| OLD | NEW |