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

Side by Side Diff: src/runtime/runtime.h

Issue 796503002: Create optimized versions of the Map/Set clear method (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 6 years 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/objects.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_RUNTIME_RUNTIME_H_ 5 #ifndef V8_RUNTIME_RUNTIME_H_
6 #define V8_RUNTIME_RUNTIME_H_ 6 #define V8_RUNTIME_RUNTIME_H_
7 7
8 #include "src/allocation.h" 8 #include "src/allocation.h"
9 #include "src/objects.h" 9 #include "src/objects.h"
10 #include "src/zone.h" 10 #include "src/zone.h"
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after
292 \ 292 \
293 /* Harmony proxies */ \ 293 /* Harmony proxies */ \
294 F(CreateJSProxy, 2, 1) \ 294 F(CreateJSProxy, 2, 1) \
295 F(CreateJSFunctionProxy, 4, 1) \ 295 F(CreateJSFunctionProxy, 4, 1) \
296 F(IsJSFunctionProxy, 1, 1) \ 296 F(IsJSFunctionProxy, 1, 1) \
297 F(GetHandler, 1, 1) \ 297 F(GetHandler, 1, 1) \
298 F(GetCallTrap, 1, 1) \ 298 F(GetCallTrap, 1, 1) \
299 F(GetConstructTrap, 1, 1) \ 299 F(GetConstructTrap, 1, 1) \
300 F(Fix, 1, 1) \ 300 F(Fix, 1, 1) \
301 \ 301 \
302 /* Harmony sets */ \ 302 /* ES6 collection iterators */ \
303 F(SetClear, 1, 1) \
304 \
305 F(SetIteratorInitialize, 3, 1) \ 303 F(SetIteratorInitialize, 3, 1) \
306 F(SetIteratorClone, 1, 1) \ 304 F(SetIteratorClone, 1, 1) \
307 F(SetIteratorNext, 2, 1) \ 305 F(SetIteratorNext, 2, 1) \
308 F(SetIteratorDetails, 1, 1) \ 306 F(SetIteratorDetails, 1, 1) \
309 \
310 /* Harmony maps */ \
311 F(MapClear, 1, 1) \
312 \
313 F(MapIteratorInitialize, 3, 1) \ 307 F(MapIteratorInitialize, 3, 1) \
314 F(MapIteratorClone, 1, 1) \ 308 F(MapIteratorClone, 1, 1) \
315 F(MapIteratorNext, 2, 1) \ 309 F(MapIteratorNext, 2, 1) \
316 F(MapIteratorDetails, 1, 1) \ 310 F(MapIteratorDetails, 1, 1) \
317 \ 311 \
318 /* Harmony weak maps and sets */ \ 312 /* Harmony weak maps and sets */ \
319 F(WeakCollectionInitialize, 1, 1) \ 313 F(WeakCollectionInitialize, 1, 1) \
320 F(WeakCollectionGet, 2, 1) \ 314 F(WeakCollectionGet, 2, 1) \
321 F(WeakCollectionHas, 2, 1) \ 315 F(WeakCollectionHas, 2, 1) \
322 F(WeakCollectionDelete, 2, 1) \ 316 F(WeakCollectionDelete, 2, 1) \
(...skipping 390 matching lines...) Expand 10 before | Expand all | Expand 10 after
713 F(TypedArrayGetLength, 1, 1) \ 707 F(TypedArrayGetLength, 1, 1) \
714 /* ArrayBuffer */ \ 708 /* ArrayBuffer */ \
715 F(ArrayBufferGetByteLength, 1, 1) \ 709 F(ArrayBufferGetByteLength, 1, 1) \
716 /* Maths */ \ 710 /* Maths */ \
717 F(ConstructDouble, 2, 1) \ 711 F(ConstructDouble, 2, 1) \
718 F(DoubleHi, 1, 1) \ 712 F(DoubleHi, 1, 1) \
719 F(DoubleLo, 1, 1) \ 713 F(DoubleLo, 1, 1) \
720 F(MathSqrtRT, 1, 1) \ 714 F(MathSqrtRT, 1, 1) \
721 F(MathLogRT, 1, 1) \ 715 F(MathLogRT, 1, 1) \
722 /* ES6 Collections */ \ 716 /* ES6 Collections */ \
717 F(MapClear, 1, 1) \
723 F(MapDelete, 2, 1) \ 718 F(MapDelete, 2, 1) \
724 F(MapGet, 2, 1) \ 719 F(MapGet, 2, 1) \
725 F(MapGetSize, 1, 1) \ 720 F(MapGetSize, 1, 1) \
726 F(MapHas, 2, 1) \ 721 F(MapHas, 2, 1) \
727 F(MapInitialize, 1, 1) \ 722 F(MapInitialize, 1, 1) \
728 F(MapSet, 3, 1) \ 723 F(MapSet, 3, 1) \
729 F(SetAdd, 2, 1) \ 724 F(SetAdd, 2, 1) \
725 F(SetClear, 1, 1) \
730 F(SetDelete, 2, 1) \ 726 F(SetDelete, 2, 1) \
731 F(SetGetSize, 1, 1) \ 727 F(SetGetSize, 1, 1) \
732 F(SetHas, 2, 1) \ 728 F(SetHas, 2, 1) \
733 F(SetInitialize, 1, 1) \ 729 F(SetInitialize, 1, 1) \
734 /* Arrays */ \ 730 /* Arrays */ \
735 F(HasFastPackedElements, 1, 1) \ 731 F(HasFastPackedElements, 1, 1) \
736 F(GetPrototype, 1, 1) 732 F(GetPrototype, 1, 1)
737 733
738 734
739 //--------------------------------------------------------------------------- 735 //---------------------------------------------------------------------------
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
892 class AllocateTargetSpace : public BitField<AllocationSpace, 1, 3> {}; 888 class AllocateTargetSpace : public BitField<AllocationSpace, 1, 3> {};
893 889
894 class DeclareGlobalsEvalFlag : public BitField<bool, 0, 1> {}; 890 class DeclareGlobalsEvalFlag : public BitField<bool, 0, 1> {};
895 class DeclareGlobalsNativeFlag : public BitField<bool, 1, 1> {}; 891 class DeclareGlobalsNativeFlag : public BitField<bool, 1, 1> {};
896 class DeclareGlobalsStrictMode : public BitField<StrictMode, 2, 1> {}; 892 class DeclareGlobalsStrictMode : public BitField<StrictMode, 2, 1> {};
897 893
898 } // namespace internal 894 } // namespace internal
899 } // namespace v8 895 } // namespace v8
900 896
901 #endif // V8_RUNTIME_RUNTIME_H_ 897 #endif // V8_RUNTIME_RUNTIME_H_
OLDNEW
« no previous file with comments | « src/objects.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698