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

Side by Side Diff: src/heap.cc

Issue 181283003: Symbols for type cells. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed comments. Created 6 years, 9 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/ia32/builtins-ia32.cc » ('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 3291 matching lines...) Expand 10 before | Expand all | Expand 10 after
3302 } 3302 }
3303 Symbol::cast(obj)->set_is_private(true); 3303 Symbol::cast(obj)->set_is_private(true);
3304 set_frozen_symbol(Symbol::cast(obj)); 3304 set_frozen_symbol(Symbol::cast(obj));
3305 3305
3306 { MaybeObject* maybe_obj = AllocateSymbol(); 3306 { MaybeObject* maybe_obj = AllocateSymbol();
3307 if (!maybe_obj->ToObject(&obj)) return false; 3307 if (!maybe_obj->ToObject(&obj)) return false;
3308 } 3308 }
3309 Symbol::cast(obj)->set_is_private(true); 3309 Symbol::cast(obj)->set_is_private(true);
3310 set_elements_transition_symbol(Symbol::cast(obj)); 3310 set_elements_transition_symbol(Symbol::cast(obj));
3311 3311
3312 { MaybeObject* maybe_obj = AllocateSymbol();
3313 if (!maybe_obj->ToObject(&obj)) return false;
3314 }
3315 Symbol::cast(obj)->set_is_private(true);
3316 set_uninitialized_symbol(Symbol::cast(obj));
3317
3318 { MaybeObject* maybe_obj = AllocateSymbol();
3319 if (!maybe_obj->ToObject(&obj)) return false;
3320 }
3321 Symbol::cast(obj)->set_is_private(true);
3322 set_megamorphic_symbol(Symbol::cast(obj));
3323
3312 { MaybeObject* maybe_obj = SeededNumberDictionary::Allocate(this, 0, TENURED); 3324 { MaybeObject* maybe_obj = SeededNumberDictionary::Allocate(this, 0, TENURED);
3313 if (!maybe_obj->ToObject(&obj)) return false; 3325 if (!maybe_obj->ToObject(&obj)) return false;
3314 } 3326 }
3315 SeededNumberDictionary::cast(obj)->set_requires_slow_elements(); 3327 SeededNumberDictionary::cast(obj)->set_requires_slow_elements();
3316 set_empty_slow_element_dictionary(SeededNumberDictionary::cast(obj)); 3328 set_empty_slow_element_dictionary(SeededNumberDictionary::cast(obj));
3317 3329
3318 { MaybeObject* maybe_obj = AllocateSymbol(); 3330 { MaybeObject* maybe_obj = AllocateSymbol();
3319 if (!maybe_obj->ToObject(&obj)) return false; 3331 if (!maybe_obj->ToObject(&obj)) return false;
3320 } 3332 }
3321 Symbol::cast(obj)->set_is_private(true); 3333 Symbol::cast(obj)->set_is_private(true);
(...skipping 4421 matching lines...) Expand 10 before | Expand all | Expand 10 after
7743 static_cast<int>(object_sizes_last_time_[index])); 7755 static_cast<int>(object_sizes_last_time_[index]));
7744 CODE_AGE_LIST_COMPLETE(ADJUST_LAST_TIME_OBJECT_COUNT) 7756 CODE_AGE_LIST_COMPLETE(ADJUST_LAST_TIME_OBJECT_COUNT)
7745 #undef ADJUST_LAST_TIME_OBJECT_COUNT 7757 #undef ADJUST_LAST_TIME_OBJECT_COUNT
7746 7758
7747 OS::MemCopy(object_counts_last_time_, object_counts_, sizeof(object_counts_)); 7759 OS::MemCopy(object_counts_last_time_, object_counts_, sizeof(object_counts_));
7748 OS::MemCopy(object_sizes_last_time_, object_sizes_, sizeof(object_sizes_)); 7760 OS::MemCopy(object_sizes_last_time_, object_sizes_, sizeof(object_sizes_));
7749 ClearObjectStats(); 7761 ClearObjectStats();
7750 } 7762 }
7751 7763
7752 } } // namespace v8::internal 7764 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/heap.h ('k') | src/ia32/builtins-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698