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

Side by Side Diff: src/objects.h

Issue 22545007: Hack forEach to use HasFastPackedElements (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Branch on proxies Created 7 years, 4 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 | Annotate | Revision Log
OLDNEW
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 2073 matching lines...) Expand 10 before | Expand all | Expand 10 after
2084 inline bool HasFastSmiOrObjectElements(); 2084 inline bool HasFastSmiOrObjectElements();
2085 // Returns true if an object has any of the fast elements kinds. 2085 // Returns true if an object has any of the fast elements kinds.
2086 inline bool HasFastElements(); 2086 inline bool HasFastElements();
2087 // Returns true if an object has elements of FAST_DOUBLE_ELEMENTS 2087 // Returns true if an object has elements of FAST_DOUBLE_ELEMENTS
2088 // ElementsKind. 2088 // ElementsKind.
2089 inline bool HasFastDoubleElements(); 2089 inline bool HasFastDoubleElements();
2090 // Returns true if an object has elements of FAST_HOLEY_*_ELEMENTS 2090 // Returns true if an object has elements of FAST_HOLEY_*_ELEMENTS
2091 // ElementsKind. 2091 // ElementsKind.
2092 inline bool HasFastHoleyElements(); 2092 inline bool HasFastHoleyElements();
2093 inline bool HasNonStrictArgumentsElements(); 2093 inline bool HasNonStrictArgumentsElements();
2094 inline bool HasFastPackedElements();
2094 inline bool HasDictionaryElements(); 2095 inline bool HasDictionaryElements();
2095 inline bool HasExternalPixelElements(); 2096 inline bool HasExternalPixelElements();
2096 inline bool HasExternalArrayElements(); 2097 inline bool HasExternalArrayElements();
2097 inline bool HasExternalByteElements(); 2098 inline bool HasExternalByteElements();
2098 inline bool HasExternalUnsignedByteElements(); 2099 inline bool HasExternalUnsignedByteElements();
2099 inline bool HasExternalShortElements(); 2100 inline bool HasExternalShortElements();
2100 inline bool HasExternalUnsignedShortElements(); 2101 inline bool HasExternalUnsignedShortElements();
2101 inline bool HasExternalIntElements(); 2102 inline bool HasExternalIntElements();
2102 inline bool HasExternalUnsignedIntElements(); 2103 inline bool HasExternalUnsignedIntElements();
2103 inline bool HasExternalFloatElements(); 2104 inline bool HasExternalFloatElements();
(...skipping 8065 matching lines...) Expand 10 before | Expand all | Expand 10 after
10169 } else { 10170 } else {
10170 value &= ~(1 << bit_position); 10171 value &= ~(1 << bit_position);
10171 } 10172 }
10172 return value; 10173 return value;
10173 } 10174 }
10174 }; 10175 };
10175 10176
10176 } } // namespace v8::internal 10177 } } // namespace v8::internal
10177 10178
10178 #endif // V8_OBJECTS_H_ 10179 #endif // V8_OBJECTS_H_
OLDNEW
« src/array.js ('K') | « src/array.js ('k') | src/objects-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698