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

Side by Side Diff: src/heap.cc

Issue 103243005: Captured arguments object materialization (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Skip uninteresting frame types when building SlotRefs 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 3272 matching lines...) Expand 10 before | Expand all | Expand 10 after
3283 } 3283 }
3284 SeededNumberDictionary::cast(obj)->set_requires_slow_elements(); 3284 SeededNumberDictionary::cast(obj)->set_requires_slow_elements();
3285 set_empty_slow_element_dictionary(SeededNumberDictionary::cast(obj)); 3285 set_empty_slow_element_dictionary(SeededNumberDictionary::cast(obj));
3286 3286
3287 { MaybeObject* maybe_obj = AllocateSymbol(); 3287 { MaybeObject* maybe_obj = AllocateSymbol();
3288 if (!maybe_obj->ToObject(&obj)) return false; 3288 if (!maybe_obj->ToObject(&obj)) return false;
3289 } 3289 }
3290 Symbol::cast(obj)->set_is_private(true); 3290 Symbol::cast(obj)->set_is_private(true);
3291 set_observed_symbol(Symbol::cast(obj)); 3291 set_observed_symbol(Symbol::cast(obj));
3292 3292
3293 { MaybeObject* maybe_obj = AllocateFixedArray(0, TENURED);
3294 if (!maybe_obj->ToObject(&obj)) return false;
3295 }
3296 set_materialized_objects(FixedArray::cast(obj));
3297
3293 // Handling of script id generation is in Factory::NewScript. 3298 // Handling of script id generation is in Factory::NewScript.
3294 set_last_script_id(Smi::FromInt(v8::Script::kNoScriptId)); 3299 set_last_script_id(Smi::FromInt(v8::Script::kNoScriptId));
3295 3300
3296 // Initialize keyed lookup cache. 3301 // Initialize keyed lookup cache.
3297 isolate_->keyed_lookup_cache()->Clear(); 3302 isolate_->keyed_lookup_cache()->Clear();
3298 3303
3299 // Initialize context slot cache. 3304 // Initialize context slot cache.
3300 isolate_->context_slot_cache()->Clear(); 3305 isolate_->context_slot_cache()->Clear();
3301 3306
3302 // Initialize descriptor cache. 3307 // Initialize descriptor cache.
(...skipping 4355 matching lines...) Expand 10 before | Expand all | Expand 10 after
7658 static_cast<int>(object_sizes_last_time_[index])); 7663 static_cast<int>(object_sizes_last_time_[index]));
7659 CODE_AGE_LIST_COMPLETE(ADJUST_LAST_TIME_OBJECT_COUNT) 7664 CODE_AGE_LIST_COMPLETE(ADJUST_LAST_TIME_OBJECT_COUNT)
7660 #undef ADJUST_LAST_TIME_OBJECT_COUNT 7665 #undef ADJUST_LAST_TIME_OBJECT_COUNT
7661 7666
7662 OS::MemCopy(object_counts_last_time_, object_counts_, sizeof(object_counts_)); 7667 OS::MemCopy(object_counts_last_time_, object_counts_, sizeof(object_counts_));
7663 OS::MemCopy(object_sizes_last_time_, object_sizes_, sizeof(object_sizes_)); 7668 OS::MemCopy(object_sizes_last_time_, object_sizes_, sizeof(object_sizes_));
7664 ClearObjectStats(); 7669 ClearObjectStats();
7665 } 7670 }
7666 7671
7667 } } // namespace v8::internal 7672 } } // 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