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

Side by Side Diff: src/property.h

Issue 42066: Changed runtime system to preserve the global property cells for deleted prop... (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/global/
Patch Set: Created 11 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/objects-inl.h ('k') | src/runtime.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 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 return details_.attributes(); 222 return details_.attributes();
223 } 223 }
224 224
225 PropertyDetails GetPropertyDetails() { 225 PropertyDetails GetPropertyDetails() {
226 return details_; 226 return details_;
227 } 227 }
228 228
229 bool IsReadOnly() { return details_.IsReadOnly(); } 229 bool IsReadOnly() { return details_.IsReadOnly(); }
230 bool IsDontDelete() { return details_.IsDontDelete(); } 230 bool IsDontDelete() { return details_.IsDontDelete(); }
231 bool IsDontEnum() { return details_.IsDontEnum(); } 231 bool IsDontEnum() { return details_.IsDontEnum(); }
232 bool IsDeleted() { return details_.IsDeleted(); }
232 233
233 bool IsValid() { return lookup_type_ != NOT_FOUND; } 234 bool IsValid() { return lookup_type_ != NOT_FOUND; }
234 bool IsNotFound() { return lookup_type_ == NOT_FOUND; } 235 bool IsNotFound() { return lookup_type_ == NOT_FOUND; }
235 236
236 // Tells whether the result is a property. 237 // Tells whether the result is a property.
237 // Excluding transitions and the null descriptor. 238 // Excluding transitions and the null descriptor.
238 bool IsProperty() { 239 bool IsProperty() {
239 return IsValid() && type() < FIRST_PHANTOM_PROPERTY_TYPE; 240 return IsValid() && type() < FIRST_PHANTOM_PROPERTY_TYPE;
240 } 241 }
241 242
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
383 384
384 // Append a descriptor to this stream. 385 // Append a descriptor to this stream.
385 void Write(Descriptor* desc); 386 void Write(Descriptor* desc);
386 // Read a descriptor from the reader and append it to this stream. 387 // Read a descriptor from the reader and append it to this stream.
387 void WriteFrom(DescriptorReader* reader); 388 void WriteFrom(DescriptorReader* reader);
388 }; 389 };
389 390
390 } } // namespace v8::internal 391 } } // namespace v8::internal
391 392
392 #endif // V8_PROPERTY_H_ 393 #endif // V8_PROPERTY_H_
OLDNEW
« no previous file with comments | « src/objects-inl.h ('k') | src/runtime.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698