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 2923 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2934 inline void set_undefined(int index); | 2934 inline void set_undefined(int index); |
2935 inline void set_null(int index); | 2935 inline void set_null(int index); |
2936 inline void set_the_hole(int index); | 2936 inline void set_the_hole(int index); |
2937 | 2937 |
2938 inline Object** GetFirstElementAddress(); | 2938 inline Object** GetFirstElementAddress(); |
2939 inline bool ContainsOnlySmisOrHoles(); | 2939 inline bool ContainsOnlySmisOrHoles(); |
2940 | 2940 |
2941 // Gives access to raw memory which stores the array's data. | 2941 // Gives access to raw memory which stores the array's data. |
2942 inline Object** data_start(); | 2942 inline Object** data_start(); |
2943 | 2943 |
2944 // Shrink length and insert filler objects. | |
2945 void Shrink(int length); | |
2946 | |
2947 // Copy operations. | 2944 // Copy operations. |
2948 MUST_USE_RESULT inline MaybeObject* Copy(); | 2945 MUST_USE_RESULT inline MaybeObject* Copy(); |
2949 MUST_USE_RESULT MaybeObject* CopySize(int new_length, | 2946 MUST_USE_RESULT MaybeObject* CopySize(int new_length, |
2950 PretenureFlag pretenure = NOT_TENURED); | 2947 PretenureFlag pretenure = NOT_TENURED); |
2951 | 2948 |
2952 // Add the elements of a JSArray to this FixedArray. | 2949 // Add the elements of a JSArray to this FixedArray. |
2953 MUST_USE_RESULT MaybeObject* AddKeysFromJSArray(JSArray* array); | 2950 MUST_USE_RESULT MaybeObject* AddKeysFromJSArray(JSArray* array); |
2954 | 2951 |
2955 // Compute the union of this and other. | 2952 // Compute the union of this and other. |
2956 MUST_USE_RESULT MaybeObject* UnionOfKeys(FixedArray* other); | 2953 MUST_USE_RESULT MaybeObject* UnionOfKeys(FixedArray* other); |
(...skipping 7675 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10632 } else { | 10629 } else { |
10633 value &= ~(1 << bit_position); | 10630 value &= ~(1 << bit_position); |
10634 } | 10631 } |
10635 return value; | 10632 return value; |
10636 } | 10633 } |
10637 }; | 10634 }; |
10638 | 10635 |
10639 } } // namespace v8::internal | 10636 } } // namespace v8::internal |
10640 | 10637 |
10641 #endif // V8_OBJECTS_H_ | 10638 #endif // V8_OBJECTS_H_ |
OLD | NEW |