OLD | NEW |
1 // Copyright 2006-2009 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2009 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 1143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1154 inline bool HasDictionaryElements(); | 1154 inline bool HasDictionaryElements(); |
1155 inline bool HasPixelElements(); | 1155 inline bool HasPixelElements(); |
1156 inline bool HasExternalArrayElements(); | 1156 inline bool HasExternalArrayElements(); |
1157 inline bool HasExternalByteElements(); | 1157 inline bool HasExternalByteElements(); |
1158 inline bool HasExternalUnsignedByteElements(); | 1158 inline bool HasExternalUnsignedByteElements(); |
1159 inline bool HasExternalShortElements(); | 1159 inline bool HasExternalShortElements(); |
1160 inline bool HasExternalUnsignedShortElements(); | 1160 inline bool HasExternalUnsignedShortElements(); |
1161 inline bool HasExternalIntElements(); | 1161 inline bool HasExternalIntElements(); |
1162 inline bool HasExternalUnsignedIntElements(); | 1162 inline bool HasExternalUnsignedIntElements(); |
1163 inline bool HasExternalFloatElements(); | 1163 inline bool HasExternalFloatElements(); |
| 1164 inline bool AllowsSetElementsLength(); |
1164 inline NumberDictionary* element_dictionary(); // Gets slow elements. | 1165 inline NumberDictionary* element_dictionary(); // Gets slow elements. |
1165 | 1166 |
1166 // Collects elements starting at index 0. | 1167 // Collects elements starting at index 0. |
1167 // Undefined values are placed after non-undefined values. | 1168 // Undefined values are placed after non-undefined values. |
1168 // Returns the number of non-undefined values. | 1169 // Returns the number of non-undefined values. |
1169 Object* PrepareElementsForSort(uint32_t limit); | 1170 Object* PrepareElementsForSort(uint32_t limit); |
1170 // As PrepareElementsForSort, but only on objects where elements is | 1171 // As PrepareElementsForSort, but only on objects where elements is |
1171 // a dictionary, and it will stay a dictionary. | 1172 // a dictionary, and it will stay a dictionary. |
1172 Object* PrepareSlowElementsForSort(uint32_t limit); | 1173 Object* PrepareSlowElementsForSort(uint32_t limit); |
1173 | 1174 |
(...skipping 3803 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4977 } else { | 4978 } else { |
4978 value &= ~(1 << bit_position); | 4979 value &= ~(1 << bit_position); |
4979 } | 4980 } |
4980 return value; | 4981 return value; |
4981 } | 4982 } |
4982 }; | 4983 }; |
4983 | 4984 |
4984 } } // namespace v8::internal | 4985 } } // namespace v8::internal |
4985 | 4986 |
4986 #endif // V8_OBJECTS_H_ | 4987 #endif // V8_OBJECTS_H_ |
OLD | NEW |