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

Side by Side Diff: src/heap.cc

Issue 21228002: Remove elements transitions from the transition array. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 4 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/lithium-codegen-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 3184 matching lines...) Expand 10 before | Expand all | Expand 10 after
3195 { MaybeObject* maybe_obj = AllocateJSObjectFromMap(Map::cast(obj)); 3195 { MaybeObject* maybe_obj = AllocateJSObjectFromMap(Map::cast(obj));
3196 if (!maybe_obj->ToObject(&obj)) return false; 3196 if (!maybe_obj->ToObject(&obj)) return false;
3197 } 3197 }
3198 set_observation_state(JSObject::cast(obj)); 3198 set_observation_state(JSObject::cast(obj));
3199 3199
3200 { MaybeObject* maybe_obj = AllocateSymbol(); 3200 { MaybeObject* maybe_obj = AllocateSymbol();
3201 if (!maybe_obj->ToObject(&obj)) return false; 3201 if (!maybe_obj->ToObject(&obj)) return false;
3202 } 3202 }
3203 set_frozen_symbol(Symbol::cast(obj)); 3203 set_frozen_symbol(Symbol::cast(obj));
3204 3204
3205 { MaybeObject* maybe_obj = AllocateSymbol();
3206 if (!maybe_obj->ToObject(&obj)) return false;
3207 }
3208 set_elements_transition_symbol(Symbol::cast(obj));
3209
3205 { MaybeObject* maybe_obj = SeededNumberDictionary::Allocate(this, 0, TENURED); 3210 { MaybeObject* maybe_obj = SeededNumberDictionary::Allocate(this, 0, TENURED);
3206 if (!maybe_obj->ToObject(&obj)) return false; 3211 if (!maybe_obj->ToObject(&obj)) return false;
3207 } 3212 }
3208 SeededNumberDictionary::cast(obj)->set_requires_slow_elements(); 3213 SeededNumberDictionary::cast(obj)->set_requires_slow_elements();
3209 set_empty_slow_element_dictionary(SeededNumberDictionary::cast(obj)); 3214 set_empty_slow_element_dictionary(SeededNumberDictionary::cast(obj));
3210 3215
3211 { MaybeObject* maybe_obj = AllocateSymbol(); 3216 { MaybeObject* maybe_obj = AllocateSymbol();
3212 if (!maybe_obj->ToObject(&obj)) return false; 3217 if (!maybe_obj->ToObject(&obj)) return false;
3213 } 3218 }
3214 set_observed_symbol(Symbol::cast(obj)); 3219 set_observed_symbol(Symbol::cast(obj));
(...skipping 4814 matching lines...) Expand 10 before | Expand all | Expand 10 after
8029 if (FLAG_parallel_recompilation) { 8034 if (FLAG_parallel_recompilation) {
8030 heap_->relocation_mutex_->Lock(); 8035 heap_->relocation_mutex_->Lock();
8031 #ifdef DEBUG 8036 #ifdef DEBUG
8032 heap_->relocation_mutex_locked_by_optimizer_thread_ = 8037 heap_->relocation_mutex_locked_by_optimizer_thread_ =
8033 heap_->isolate()->optimizing_compiler_thread()->IsOptimizerThread(); 8038 heap_->isolate()->optimizing_compiler_thread()->IsOptimizerThread();
8034 #endif // DEBUG 8039 #endif // DEBUG
8035 } 8040 }
8036 } 8041 }
8037 8042
8038 } } // namespace v8::internal 8043 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/heap.h ('k') | src/ia32/lithium-codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698