OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 1832 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1843 // added this number can be indicated to have the backing store allocated to | 1843 // added this number can be indicated to have the backing store allocated to |
1844 // an initial capacity for holding these properties. | 1844 // an initial capacity for holding these properties. |
1845 MUST_USE_RESULT MaybeObject* NormalizeProperties( | 1845 MUST_USE_RESULT MaybeObject* NormalizeProperties( |
1846 PropertyNormalizationMode mode, | 1846 PropertyNormalizationMode mode, |
1847 int expected_additional_properties); | 1847 int expected_additional_properties); |
1848 | 1848 |
1849 // Convert and update the elements backing store to be a NumberDictionary | 1849 // Convert and update the elements backing store to be a NumberDictionary |
1850 // dictionary. Returns the backing after conversion. | 1850 // dictionary. Returns the backing after conversion. |
1851 MUST_USE_RESULT MaybeObject* NormalizeElements(); | 1851 MUST_USE_RESULT MaybeObject* NormalizeElements(); |
1852 | 1852 |
1853 static void UpdateMapCodeCache(Isolate* isolate, | 1853 static void UpdateMapCodeCache(Handle<JSObject> object, |
1854 Handle<JSObject> object, | |
1855 Handle<String> name, | 1854 Handle<String> name, |
1856 Handle<Code> code); | 1855 Handle<Code> code); |
1857 | 1856 |
1858 MUST_USE_RESULT MaybeObject* UpdateMapCodeCache(String* name, Code* code); | 1857 MUST_USE_RESULT MaybeObject* UpdateMapCodeCache(String* name, Code* code); |
1859 | 1858 |
1860 // Transform slow named properties to fast variants. | 1859 // Transform slow named properties to fast variants. |
1861 // Returns failure if allocation failed. | 1860 // Returns failure if allocation failed. |
1862 MUST_USE_RESULT MaybeObject* TransformToFastProperties( | 1861 MUST_USE_RESULT MaybeObject* TransformToFastProperties( |
1863 int unused_property_fields); | 1862 int unused_property_fields); |
1864 | 1863 |
(...skipping 5800 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7665 } else { | 7664 } else { |
7666 value &= ~(1 << bit_position); | 7665 value &= ~(1 << bit_position); |
7667 } | 7666 } |
7668 return value; | 7667 return value; |
7669 } | 7668 } |
7670 }; | 7669 }; |
7671 | 7670 |
7672 } } // namespace v8::internal | 7671 } } // namespace v8::internal |
7673 | 7672 |
7674 #endif // V8_OBJECTS_H_ | 7673 #endif // V8_OBJECTS_H_ |
OLD | NEW |