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

Side by Side Diff: src/objects-inl.h

Issue 10704109: Also in ClearNonLiveTransitions we have to check if there still is a transition array before we acc… (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 5 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/objects.cc ('k') | no next file » | 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 1979 matching lines...) Expand 10 before | Expand all | Expand 10 after
1990 int number = cache->Lookup(this, name); 1990 int number = cache->Lookup(this, name);
1991 if (number == DescriptorLookupCache::kAbsent) { 1991 if (number == DescriptorLookupCache::kAbsent) {
1992 number = internal::Search(this, name); 1992 number = internal::Search(this, name);
1993 cache->Update(this, name, number); 1993 cache->Update(this, name, number);
1994 } 1994 }
1995 return number; 1995 return number;
1996 } 1996 }
1997 1997
1998 1998
1999 TransitionArray* DescriptorArray::transitions() { 1999 TransitionArray* DescriptorArray::transitions() {
2000 if (!this->MayContainTransitions()) return NULL; 2000 ASSERT(MayContainTransitions());
2001 Object* array = get(kTransitionsIndex); 2001 Object* array = get(kTransitionsIndex);
2002 return TransitionArray::cast(array); 2002 return TransitionArray::cast(array);
2003 } 2003 }
2004 2004
2005 2005
2006 void DescriptorArray::ClearTransitions() { 2006 void DescriptorArray::ClearTransitions() {
2007 WRITE_FIELD(this, kTransitionsOffset, Smi::FromInt(0)); 2007 WRITE_FIELD(this, kTransitionsOffset, Smi::FromInt(0));
2008 } 2008 }
2009 2009
2010 2010
(...skipping 3269 matching lines...) Expand 10 before | Expand all | Expand 10 after
5280 #undef WRITE_UINT32_FIELD 5280 #undef WRITE_UINT32_FIELD
5281 #undef READ_SHORT_FIELD 5281 #undef READ_SHORT_FIELD
5282 #undef WRITE_SHORT_FIELD 5282 #undef WRITE_SHORT_FIELD
5283 #undef READ_BYTE_FIELD 5283 #undef READ_BYTE_FIELD
5284 #undef WRITE_BYTE_FIELD 5284 #undef WRITE_BYTE_FIELD
5285 5285
5286 5286
5287 } } // namespace v8::internal 5287 } } // namespace v8::internal
5288 5288
5289 #endif // V8_OBJECTS_INL_H_ 5289 #endif // V8_OBJECTS_INL_H_
OLDNEW
« no previous file with comments | « src/objects.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698