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 inline bool TryTransitionToField(String* key); | |
danno
2012/10/17 13:54:23
must be static and use Handle<> just like other Ha
Toon Verwaest
2012/10/17 14:03:40
Done.
| |
1627 | |
1628 // Extend the receiver with a single fast property appeared first in the | |
1629 // passed map. This also extends the property backing store if necessary. | |
1630 static void AddFastPropertyUsingMap(Handle<JSObject> object, Handle<Map> map); | |
1631 inline MUST_USE_RESULT MaybeObject* AddFastPropertyUsingMap(Map* map); | |
1632 | |
1624 // Can cause GC. | 1633 // Can cause GC. |
1625 MUST_USE_RESULT MaybeObject* SetLocalPropertyIgnoreAttributes( | 1634 MUST_USE_RESULT MaybeObject* SetLocalPropertyIgnoreAttributes( |
1626 String* key, | 1635 String* key, |
1627 Object* value, | 1636 Object* value, |
1628 PropertyAttributes attributes); | 1637 PropertyAttributes attributes); |
1629 | 1638 |
1630 // Retrieve a value in a normalized object given a lookup result. | 1639 // Retrieve a value in a normalized object given a lookup result. |
1631 // Handles the special representation of JS global objects. | 1640 // Handles the special representation of JS global objects. |
1632 Object* GetNormalizedProperty(LookupResult* result); | 1641 Object* GetNormalizedProperty(LookupResult* result); |
1633 | 1642 |
(...skipping 7298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
8932 } else { | 8941 } else { |
8933 value &= ~(1 << bit_position); | 8942 value &= ~(1 << bit_position); |
8934 } | 8943 } |
8935 return value; | 8944 return value; |
8936 } | 8945 } |
8937 }; | 8946 }; |
8938 | 8947 |
8939 } } // namespace v8::internal | 8948 } } // namespace v8::internal |
8940 | 8949 |
8941 #endif // V8_OBJECTS_H_ | 8950 #endif // V8_OBJECTS_H_ |
OLD | NEW |