| OLD | NEW |
| 1 // Copyright 2006-2009 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2009 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 1566 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1577 Object* AddSlowProperty(String* name, | 1577 Object* AddSlowProperty(String* name, |
| 1578 Object* value, | 1578 Object* value, |
| 1579 PropertyAttributes attributes); | 1579 PropertyAttributes attributes); |
| 1580 | 1580 |
| 1581 // Add a property to an object. | 1581 // Add a property to an object. |
| 1582 Object* AddProperty(String* name, | 1582 Object* AddProperty(String* name, |
| 1583 Object* value, | 1583 Object* value, |
| 1584 PropertyAttributes attributes); | 1584 PropertyAttributes attributes); |
| 1585 | 1585 |
| 1586 // Convert the object to use the canonical dictionary | 1586 // Convert the object to use the canonical dictionary |
| 1587 // representation. | 1587 // representation. If the object is expected to have additional properties |
| 1588 Object* NormalizeProperties(PropertyNormalizationMode mode); | 1588 // added this number can be indicated to have the backing store allocated to |
| 1589 // an initial capacity for holding these properties. |
| 1590 Object* NormalizeProperties(PropertyNormalizationMode mode, |
| 1591 int expected_additional_properties); |
| 1589 Object* NormalizeElements(); | 1592 Object* NormalizeElements(); |
| 1590 | 1593 |
| 1591 // Transform slow named properties to fast variants. | 1594 // Transform slow named properties to fast variants. |
| 1592 // Returns failure if allocation failed. | 1595 // Returns failure if allocation failed. |
| 1593 Object* TransformToFastProperties(int unused_property_fields); | 1596 Object* TransformToFastProperties(int unused_property_fields); |
| 1594 | 1597 |
| 1595 // Access fast-case object properties at index. | 1598 // Access fast-case object properties at index. |
| 1596 inline Object* FastPropertyAt(int index); | 1599 inline Object* FastPropertyAt(int index); |
| 1597 inline Object* FastPropertyAtPut(int index, Object* value); | 1600 inline Object* FastPropertyAtPut(int index, Object* value); |
| 1598 | 1601 |
| (...skipping 3185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4784 } else { | 4787 } else { |
| 4785 value &= ~(1 << bit_position); | 4788 value &= ~(1 << bit_position); |
| 4786 } | 4789 } |
| 4787 return value; | 4790 return value; |
| 4788 } | 4791 } |
| 4789 }; | 4792 }; |
| 4790 | 4793 |
| 4791 } } // namespace v8::internal | 4794 } } // namespace v8::internal |
| 4792 | 4795 |
| 4793 #endif // V8_OBJECTS_H_ | 4796 #endif // V8_OBJECTS_H_ |
| OLD | NEW |