Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1312)

Side by Side Diff: src/heap.cc

Issue 130803009: Revert "Captured arguments object materialization" (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/heap.h ('k') | src/isolate.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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(0, TENURED);
3297 if (!maybe_obj->ToObject(&obj)) return false;
3298 }
3299 set_materialized_objects(FixedArray::cast(obj));
3300
3301 // Handling of script id generation is in Factory::NewScript. 3296 // Handling of script id generation is in Factory::NewScript.
3302 set_last_script_id(Smi::FromInt(v8::Script::kNoScriptId)); 3297 set_last_script_id(Smi::FromInt(v8::Script::kNoScriptId));
3303 3298
3304 // Initialize keyed lookup cache. 3299 // Initialize keyed lookup cache.
3305 isolate_->keyed_lookup_cache()->Clear(); 3300 isolate_->keyed_lookup_cache()->Clear();
3306 3301
3307 // Initialize context slot cache. 3302 // Initialize context slot cache.
3308 isolate_->context_slot_cache()->Clear(); 3303 isolate_->context_slot_cache()->Clear();
3309 3304
3310 // Initialize descriptor cache. 3305 // Initialize descriptor cache.
(...skipping 4355 matching lines...) Expand 10 before | Expand all | Expand 10 after
7666 static_cast<int>(object_sizes_last_time_[index])); 7661 static_cast<int>(object_sizes_last_time_[index]));
7667 CODE_AGE_LIST_COMPLETE(ADJUST_LAST_TIME_OBJECT_COUNT) 7662 CODE_AGE_LIST_COMPLETE(ADJUST_LAST_TIME_OBJECT_COUNT)
7668 #undef ADJUST_LAST_TIME_OBJECT_COUNT 7663 #undef ADJUST_LAST_TIME_OBJECT_COUNT
7669 7664
7670 OS::MemCopy(object_counts_last_time_, object_counts_, sizeof(object_counts_)); 7665 OS::MemCopy(object_counts_last_time_, object_counts_, sizeof(object_counts_));
7671 OS::MemCopy(object_sizes_last_time_, object_sizes_, sizeof(object_sizes_)); 7666 OS::MemCopy(object_sizes_last_time_, object_sizes_, sizeof(object_sizes_));
7672 ClearObjectStats(); 7667 ClearObjectStats();
7673 } 7668 }
7674 7669
7675 } } // namespace v8::internal 7670 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/heap.h ('k') | src/isolate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698