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 1608 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1619 Handle<JSObject> object, | 1619 Handle<JSObject> object, |
1620 Handle<String> key, | 1620 Handle<String> key, |
1621 Handle<Object> value, | 1621 Handle<Object> value, |
1622 PropertyAttributes attributes); | 1622 PropertyAttributes attributes); |
1623 | 1623 |
1624 // Try to follow an existing transition to a field with attributes NONE. The | 1624 // Try to follow an existing transition to a field with attributes NONE. The |
1625 // return value indicates whether the transition was successful. | 1625 // return value indicates whether the transition was successful. |
1626 static inline bool TryTransitionToField(Handle<JSObject> object, | 1626 static inline bool TryTransitionToField(Handle<JSObject> object, |
1627 Handle<String> key); | 1627 Handle<String> key); |
1628 | 1628 |
| 1629 inline int LastAddedFieldIndex(); |
| 1630 |
1629 // Extend the receiver with a single fast property appeared first in the | 1631 // Extend the receiver with a single fast property appeared first in the |
1630 // passed map. This also extends the property backing store if necessary. | 1632 // passed map. This also extends the property backing store if necessary. |
1631 static void AddFastPropertyUsingMap(Handle<JSObject> object, Handle<Map> map); | 1633 static void AddFastPropertyUsingMap(Handle<JSObject> object, Handle<Map> map); |
1632 inline MUST_USE_RESULT MaybeObject* AddFastPropertyUsingMap(Map* map); | 1634 inline MUST_USE_RESULT MaybeObject* AddFastPropertyUsingMap(Map* map); |
1633 | 1635 |
1634 // Can cause GC. | 1636 // Can cause GC. |
1635 MUST_USE_RESULT MaybeObject* SetLocalPropertyIgnoreAttributes( | 1637 MUST_USE_RESULT MaybeObject* SetLocalPropertyIgnoreAttributes( |
1636 String* key, | 1638 String* key, |
1637 Object* value, | 1639 Object* value, |
1638 PropertyAttributes attributes); | 1640 PropertyAttributes attributes); |
(...skipping 7314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8953 } else { | 8955 } else { |
8954 value &= ~(1 << bit_position); | 8956 value &= ~(1 << bit_position); |
8955 } | 8957 } |
8956 return value; | 8958 return value; |
8957 } | 8959 } |
8958 }; | 8960 }; |
8959 | 8961 |
8960 } } // namespace v8::internal | 8962 } } // namespace v8::internal |
8961 | 8963 |
8962 #endif // V8_OBJECTS_H_ | 8964 #endif // V8_OBJECTS_H_ |
OLD | NEW |