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 2590 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2601 // an initial capacity for holding these properties. | 2601 // an initial capacity for holding these properties. |
2602 static void NormalizeProperties(Handle<JSObject> object, | 2602 static void NormalizeProperties(Handle<JSObject> object, |
2603 PropertyNormalizationMode mode, | 2603 PropertyNormalizationMode mode, |
2604 int expected_additional_properties); | 2604 int expected_additional_properties); |
2605 | 2605 |
2606 // Convert and update the elements backing store to be a | 2606 // Convert and update the elements backing store to be a |
2607 // SeededNumberDictionary dictionary. Returns the backing after conversion. | 2607 // SeededNumberDictionary dictionary. Returns the backing after conversion. |
2608 static Handle<SeededNumberDictionary> NormalizeElements( | 2608 static Handle<SeededNumberDictionary> NormalizeElements( |
2609 Handle<JSObject> object); | 2609 Handle<JSObject> object); |
2610 | 2610 |
2611 MUST_USE_RESULT MaybeObject* NormalizeElements(); | |
2612 | |
2613 // Transform slow named properties to fast variants. | 2611 // Transform slow named properties to fast variants. |
2614 static void TransformToFastProperties(Handle<JSObject> object, | 2612 static void TransformToFastProperties(Handle<JSObject> object, |
2615 int unused_property_fields); | 2613 int unused_property_fields); |
2616 | 2614 |
2617 // Access fast-case object properties at index. | 2615 // Access fast-case object properties at index. |
2618 MUST_USE_RESULT inline MaybeObject* FastPropertyAt( | 2616 MUST_USE_RESULT inline MaybeObject* FastPropertyAt( |
2619 Representation representation, | 2617 Representation representation, |
2620 int index); | 2618 int index); |
2621 inline Object* RawFastPropertyAt(int index); | 2619 inline Object* RawFastPropertyAt(int index); |
2622 inline void FastPropertyAtPut(int index, Object* value); | 2620 inline void FastPropertyAtPut(int index, Object* value); |
(...skipping 8178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10801 } else { | 10799 } else { |
10802 value &= ~(1 << bit_position); | 10800 value &= ~(1 << bit_position); |
10803 } | 10801 } |
10804 return value; | 10802 return value; |
10805 } | 10803 } |
10806 }; | 10804 }; |
10807 | 10805 |
10808 } } // namespace v8::internal | 10806 } } // namespace v8::internal |
10809 | 10807 |
10810 #endif // V8_OBJECTS_H_ | 10808 #endif // V8_OBJECTS_H_ |
OLD | NEW |