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 2962 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2973 inline void set_undefined(int index); | 2973 inline void set_undefined(int index); |
2974 inline void set_null(int index); | 2974 inline void set_null(int index); |
2975 inline void set_the_hole(int index); | 2975 inline void set_the_hole(int index); |
2976 | 2976 |
2977 inline Object** GetFirstElementAddress(); | 2977 inline Object** GetFirstElementAddress(); |
2978 inline bool ContainsOnlySmisOrHoles(); | 2978 inline bool ContainsOnlySmisOrHoles(); |
2979 | 2979 |
2980 // Gives access to raw memory which stores the array's data. | 2980 // Gives access to raw memory which stores the array's data. |
2981 inline Object** data_start(); | 2981 inline Object** data_start(); |
2982 | 2982 |
| 2983 // Shrink length and insert filler objects. |
| 2984 void Shrink(int length); |
| 2985 |
2983 // Copy operations. | 2986 // Copy operations. |
2984 MUST_USE_RESULT inline MaybeObject* Copy(); | 2987 MUST_USE_RESULT inline MaybeObject* Copy(); |
2985 MUST_USE_RESULT MaybeObject* CopySize(int new_length, | 2988 MUST_USE_RESULT MaybeObject* CopySize(int new_length, |
2986 PretenureFlag pretenure = NOT_TENURED); | 2989 PretenureFlag pretenure = NOT_TENURED); |
2987 | 2990 |
2988 // Add the elements of a JSArray to this FixedArray. | 2991 // Add the elements of a JSArray to this FixedArray. |
2989 MUST_USE_RESULT MaybeObject* AddKeysFromJSArray(JSArray* array); | 2992 MUST_USE_RESULT MaybeObject* AddKeysFromJSArray(JSArray* array); |
2990 | 2993 |
2991 // Compute the union of this and other. | 2994 // Compute the union of this and other. |
2992 MUST_USE_RESULT MaybeObject* UnionOfKeys(FixedArray* other); | 2995 MUST_USE_RESULT MaybeObject* UnionOfKeys(FixedArray* other); |
(...skipping 7762 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10755 } else { | 10758 } else { |
10756 value &= ~(1 << bit_position); | 10759 value &= ~(1 << bit_position); |
10757 } | 10760 } |
10758 return value; | 10761 return value; |
10759 } | 10762 } |
10760 }; | 10763 }; |
10761 | 10764 |
10762 } } // namespace v8::internal | 10765 } } // namespace v8::internal |
10763 | 10766 |
10764 #endif // V8_OBJECTS_H_ | 10767 #endif // V8_OBJECTS_H_ |
OLD | NEW |