| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |