| OLD | NEW |
| 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 5487 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5498 MUST_USE_RESULT MaybeObject* Copy(); | 5498 MUST_USE_RESULT MaybeObject* Copy(); |
| 5499 | 5499 |
| 5500 // Returns the next free property index (only valid for FAST MODE). | 5500 // Returns the next free property index (only valid for FAST MODE). |
| 5501 int NextFreePropertyIndex(); | 5501 int NextFreePropertyIndex(); |
| 5502 | 5502 |
| 5503 // Returns the number of properties described in instance_descriptors | 5503 // Returns the number of properties described in instance_descriptors |
| 5504 // filtering out properties with the specified attributes. | 5504 // filtering out properties with the specified attributes. |
| 5505 int NumberOfDescribedProperties(DescriptorFlag which = OWN_DESCRIPTORS, | 5505 int NumberOfDescribedProperties(DescriptorFlag which = OWN_DESCRIPTORS, |
| 5506 PropertyAttributes filter = NONE); | 5506 PropertyAttributes filter = NONE); |
| 5507 | 5507 |
| 5508 // Returns the number of slots allocated for the initial properties |
| 5509 // backing storage for instances of this map. |
| 5510 int InitialPropertiesLength() { |
| 5511 return pre_allocated_property_fields() + unused_property_fields() - |
| 5512 inobject_properties(); |
| 5513 } |
| 5514 |
| 5508 // Casting. | 5515 // Casting. |
| 5509 static inline Map* cast(Object* obj); | 5516 static inline Map* cast(Object* obj); |
| 5510 | 5517 |
| 5511 // Locate an accessor in the instance descriptor. | 5518 // Locate an accessor in the instance descriptor. |
| 5512 AccessorDescriptor* FindAccessor(Name* name); | 5519 AccessorDescriptor* FindAccessor(Name* name); |
| 5513 | 5520 |
| 5514 // Code cache operations. | 5521 // Code cache operations. |
| 5515 | 5522 |
| 5516 // Clears the code cache. | 5523 // Clears the code cache. |
| 5517 inline void ClearCodeCache(Heap* heap); | 5524 inline void ClearCodeCache(Heap* heap); |
| (...skipping 4294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9812 } else { | 9819 } else { |
| 9813 value &= ~(1 << bit_position); | 9820 value &= ~(1 << bit_position); |
| 9814 } | 9821 } |
| 9815 return value; | 9822 return value; |
| 9816 } | 9823 } |
| 9817 }; | 9824 }; |
| 9818 | 9825 |
| 9819 } } // namespace v8::internal | 9826 } } // namespace v8::internal |
| 9820 | 9827 |
| 9821 #endif // V8_OBJECTS_H_ | 9828 #endif // V8_OBJECTS_H_ |
| OLD | NEW |