Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(125)

Side by Side Diff: src/objects.h

Issue 647013: Make setting length on arrays faster. (Closed)
Patch Set: Porting to ARM and x64 Created 10 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/ic.cc ('k') | src/objects.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « src/ic.cc ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698