OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 3275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3286 } | 3286 } |
3287 SeededNumberDictionary::cast(obj)->set_requires_slow_elements(); | 3287 SeededNumberDictionary::cast(obj)->set_requires_slow_elements(); |
3288 set_empty_slow_element_dictionary(SeededNumberDictionary::cast(obj)); | 3288 set_empty_slow_element_dictionary(SeededNumberDictionary::cast(obj)); |
3289 | 3289 |
3290 { MaybeObject* maybe_obj = AllocateSymbol(); | 3290 { MaybeObject* maybe_obj = AllocateSymbol(); |
3291 if (!maybe_obj->ToObject(&obj)) return false; | 3291 if (!maybe_obj->ToObject(&obj)) return false; |
3292 } | 3292 } |
3293 Symbol::cast(obj)->set_is_private(true); | 3293 Symbol::cast(obj)->set_is_private(true); |
3294 set_observed_symbol(Symbol::cast(obj)); | 3294 set_observed_symbol(Symbol::cast(obj)); |
3295 | 3295 |
| 3296 { MaybeObject* maybe_obj = AllocateFixedArray(1, TENURED); |
| 3297 if (!maybe_obj->ToObject(&obj)) return false; |
| 3298 MaybeObject* maybe_obj_el = AllocateFixedArray(0, TENURED); |
| 3299 Object* obj_el; |
| 3300 if (!maybe_obj_el->ToObject(&obj_el)) return false; |
| 3301 FixedArray::cast(obj)->set(0, obj_el); |
| 3302 } |
| 3303 set_materialized_objects(FixedArray::cast(obj)); |
| 3304 |
3296 // Handling of script id generation is in Factory::NewScript. | 3305 // Handling of script id generation is in Factory::NewScript. |
3297 set_last_script_id(Smi::FromInt(v8::Script::kNoScriptId)); | 3306 set_last_script_id(Smi::FromInt(v8::Script::kNoScriptId)); |
3298 | 3307 |
3299 // Initialize keyed lookup cache. | 3308 // Initialize keyed lookup cache. |
3300 isolate_->keyed_lookup_cache()->Clear(); | 3309 isolate_->keyed_lookup_cache()->Clear(); |
3301 | 3310 |
3302 // Initialize context slot cache. | 3311 // Initialize context slot cache. |
3303 isolate_->context_slot_cache()->Clear(); | 3312 isolate_->context_slot_cache()->Clear(); |
3304 | 3313 |
3305 // Initialize descriptor cache. | 3314 // Initialize descriptor cache. |
(...skipping 4355 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7661 static_cast<int>(object_sizes_last_time_[index])); | 7670 static_cast<int>(object_sizes_last_time_[index])); |
7662 CODE_AGE_LIST_COMPLETE(ADJUST_LAST_TIME_OBJECT_COUNT) | 7671 CODE_AGE_LIST_COMPLETE(ADJUST_LAST_TIME_OBJECT_COUNT) |
7663 #undef ADJUST_LAST_TIME_OBJECT_COUNT | 7672 #undef ADJUST_LAST_TIME_OBJECT_COUNT |
7664 | 7673 |
7665 OS::MemCopy(object_counts_last_time_, object_counts_, sizeof(object_counts_)); | 7674 OS::MemCopy(object_counts_last_time_, object_counts_, sizeof(object_counts_)); |
7666 OS::MemCopy(object_sizes_last_time_, object_sizes_, sizeof(object_sizes_)); | 7675 OS::MemCopy(object_sizes_last_time_, object_sizes_, sizeof(object_sizes_)); |
7667 ClearObjectStats(); | 7676 ClearObjectStats(); |
7668 } | 7677 } |
7669 | 7678 |
7670 } } // namespace v8::internal | 7679 } } // namespace v8::internal |
OLD | NEW |