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 3329 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3340 } | 3340 } |
3341 Symbol::cast(obj)->set_is_private(true); | 3341 Symbol::cast(obj)->set_is_private(true); |
3342 set_observed_symbol(Symbol::cast(obj)); | 3342 set_observed_symbol(Symbol::cast(obj)); |
3343 | 3343 |
3344 { MaybeObject* maybe_obj = AllocateFixedArray(0, TENURED); | 3344 { MaybeObject* maybe_obj = AllocateFixedArray(0, TENURED); |
3345 if (!maybe_obj->ToObject(&obj)) return false; | 3345 if (!maybe_obj->ToObject(&obj)) return false; |
3346 } | 3346 } |
3347 set_materialized_objects(FixedArray::cast(obj)); | 3347 set_materialized_objects(FixedArray::cast(obj)); |
3348 | 3348 |
3349 // Handling of script id generation is in Factory::NewScript. | 3349 // Handling of script id generation is in Factory::NewScript. |
3350 set_last_script_id(Smi::FromInt(v8::Script::kNoScriptId)); | 3350 set_last_script_id(Smi::FromInt(v8::UnboundScript::kNoScriptId)); |
3351 | 3351 |
3352 { MaybeObject* maybe_obj = AllocateAllocationSitesScratchpad(); | 3352 { MaybeObject* maybe_obj = AllocateAllocationSitesScratchpad(); |
3353 if (!maybe_obj->ToObject(&obj)) return false; | 3353 if (!maybe_obj->ToObject(&obj)) return false; |
3354 } | 3354 } |
3355 set_allocation_sites_scratchpad(FixedArray::cast(obj)); | 3355 set_allocation_sites_scratchpad(FixedArray::cast(obj)); |
3356 InitializeAllocationSitesScratchpad(); | 3356 InitializeAllocationSitesScratchpad(); |
3357 | 3357 |
3358 // Initialize keyed lookup cache. | 3358 // Initialize keyed lookup cache. |
3359 isolate_->keyed_lookup_cache()->Clear(); | 3359 isolate_->keyed_lookup_cache()->Clear(); |
3360 | 3360 |
(...skipping 4353 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7714 static_cast<int>(object_sizes_last_time_[index])); | 7714 static_cast<int>(object_sizes_last_time_[index])); |
7715 CODE_AGE_LIST_COMPLETE(ADJUST_LAST_TIME_OBJECT_COUNT) | 7715 CODE_AGE_LIST_COMPLETE(ADJUST_LAST_TIME_OBJECT_COUNT) |
7716 #undef ADJUST_LAST_TIME_OBJECT_COUNT | 7716 #undef ADJUST_LAST_TIME_OBJECT_COUNT |
7717 | 7717 |
7718 OS::MemCopy(object_counts_last_time_, object_counts_, sizeof(object_counts_)); | 7718 OS::MemCopy(object_counts_last_time_, object_counts_, sizeof(object_counts_)); |
7719 OS::MemCopy(object_sizes_last_time_, object_sizes_, sizeof(object_sizes_)); | 7719 OS::MemCopy(object_sizes_last_time_, object_sizes_, sizeof(object_sizes_)); |
7720 ClearObjectStats(); | 7720 ClearObjectStats(); |
7721 } | 7721 } |
7722 | 7722 |
7723 } } // namespace v8::internal | 7723 } } // namespace v8::internal |
OLD | NEW |