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 1603 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1614 PropertyAttributes attributes, | 1614 PropertyAttributes attributes, |
1615 StrictModeFlag strict_mode, | 1615 StrictModeFlag strict_mode, |
1616 ExtensibilityCheck extensibility_check); | 1616 ExtensibilityCheck extensibility_check); |
1617 | 1617 |
1618 static Handle<Object> SetLocalPropertyIgnoreAttributes( | 1618 static Handle<Object> SetLocalPropertyIgnoreAttributes( |
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 |
| 1625 // return value indicates whether the transition was successful. |
| 1626 static inline bool TryTransitionToField(Handle<JSObject> object, |
| 1627 Handle<String> key); |
| 1628 |
| 1629 // Extend the receiver with a single fast property appeared first in the |
| 1630 // passed map. This also extends the property backing store if necessary. |
| 1631 static void AddFastPropertyUsingMap(Handle<JSObject> object, Handle<Map> map); |
| 1632 inline MUST_USE_RESULT MaybeObject* AddFastPropertyUsingMap(Map* map); |
| 1633 |
1624 // Can cause GC. | 1634 // Can cause GC. |
1625 MUST_USE_RESULT MaybeObject* SetLocalPropertyIgnoreAttributes( | 1635 MUST_USE_RESULT MaybeObject* SetLocalPropertyIgnoreAttributes( |
1626 String* key, | 1636 String* key, |
1627 Object* value, | 1637 Object* value, |
1628 PropertyAttributes attributes); | 1638 PropertyAttributes attributes); |
1629 | 1639 |
1630 // Retrieve a value in a normalized object given a lookup result. | 1640 // Retrieve a value in a normalized object given a lookup result. |
1631 // Handles the special representation of JS global objects. | 1641 // Handles the special representation of JS global objects. |
1632 Object* GetNormalizedProperty(LookupResult* result); | 1642 Object* GetNormalizedProperty(LookupResult* result); |
1633 | 1643 |
(...skipping 7298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8932 } else { | 8942 } else { |
8933 value &= ~(1 << bit_position); | 8943 value &= ~(1 << bit_position); |
8934 } | 8944 } |
8935 return value; | 8945 return value; |
8936 } | 8946 } |
8937 }; | 8947 }; |
8938 | 8948 |
8939 } } // namespace v8::internal | 8949 } } // namespace v8::internal |
8940 | 8950 |
8941 #endif // V8_OBJECTS_H_ | 8951 #endif // V8_OBJECTS_H_ |
OLD | NEW |