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

Side by Side Diff: src/runtime.h

Issue 329253004: Optimize Map/Set.prototype.forEach (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Update count to fix merge issue Created 6 years, 6 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 // 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_H_ 5 #ifndef V8_RUNTIME_H_
6 #define V8_RUNTIME_H_ 6 #define V8_RUNTIME_H_
7 7
8 #include "src/allocation.h" 8 #include "src/allocation.h"
9 #include "src/zone.h" 9 #include "src/zone.h"
10 10
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after
268 /* Harmony sets */ \ 268 /* Harmony sets */ \
269 F(SetInitialize, 1, 1) \ 269 F(SetInitialize, 1, 1) \
270 F(SetAdd, 2, 1) \ 270 F(SetAdd, 2, 1) \
271 F(SetHas, 2, 1) \ 271 F(SetHas, 2, 1) \
272 F(SetDelete, 2, 1) \ 272 F(SetDelete, 2, 1) \
273 F(SetClear, 1, 1) \ 273 F(SetClear, 1, 1) \
274 F(SetGetSize, 1, 1) \ 274 F(SetGetSize, 1, 1) \
275 \ 275 \
276 F(SetIteratorInitialize, 3, 1) \ 276 F(SetIteratorInitialize, 3, 1) \
277 F(SetIteratorNext, 1, 1) \ 277 F(SetIteratorNext, 1, 1) \
278 F(SetIteratorCurrentKey, 1, 1) \
279 F(SetIteratorHasMore, 1, 1) \
280 F(SetIteratorMoveNext, 1, 1) \
278 \ 281 \
279 /* Harmony maps */ \ 282 /* Harmony maps */ \
280 F(MapInitialize, 1, 1) \ 283 F(MapInitialize, 1, 1) \
281 F(MapGet, 2, 1) \ 284 F(MapGet, 2, 1) \
282 F(MapHas, 2, 1) \ 285 F(MapHas, 2, 1) \
283 F(MapDelete, 2, 1) \ 286 F(MapDelete, 2, 1) \
284 F(MapClear, 1, 1) \ 287 F(MapClear, 1, 1) \
285 F(MapSet, 3, 1) \ 288 F(MapSet, 3, 1) \
286 F(MapGetSize, 1, 1) \ 289 F(MapGetSize, 1, 1) \
287 \ 290 \
288 F(MapIteratorInitialize, 3, 1) \ 291 F(MapIteratorInitialize, 3, 1) \
289 F(MapIteratorNext, 1, 1) \ 292 F(MapIteratorNext, 1, 1) \
293 F(MapIteratorCurrentKey, 1, 1) \
294 F(MapIteratorCurrentValue, 1, 1) \
295 F(MapIteratorHasMore, 1, 1) \
296 F(MapIteratorMoveNext, 1, 1) \
290 \ 297 \
291 /* Harmony weak maps and sets */ \ 298 /* Harmony weak maps and sets */ \
292 F(WeakCollectionInitialize, 1, 1) \ 299 F(WeakCollectionInitialize, 1, 1) \
293 F(WeakCollectionGet, 2, 1) \ 300 F(WeakCollectionGet, 2, 1) \
294 F(WeakCollectionHas, 2, 1) \ 301 F(WeakCollectionHas, 2, 1) \
295 F(WeakCollectionDelete, 2, 1) \ 302 F(WeakCollectionDelete, 2, 1) \
296 F(WeakCollectionSet, 3, 1) \ 303 F(WeakCollectionSet, 3, 1) \
297 \ 304 \
298 /* Harmony events */ \ 305 /* Harmony events */ \
299 F(EnqueueMicrotask, 1, 1) \ 306 F(EnqueueMicrotask, 1, 1) \
(...skipping 591 matching lines...) Expand 10 before | Expand all | Expand 10 after
891 class AllocateDoubleAlignFlag: public BitField<bool, 0, 1> {}; 898 class AllocateDoubleAlignFlag: public BitField<bool, 0, 1> {};
892 class AllocateTargetSpace: public BitField<AllocationSpace, 1, 3> {}; 899 class AllocateTargetSpace: public BitField<AllocationSpace, 1, 3> {};
893 900
894 class DeclareGlobalsEvalFlag: public BitField<bool, 0, 1> {}; 901 class DeclareGlobalsEvalFlag: public BitField<bool, 0, 1> {};
895 class DeclareGlobalsNativeFlag: public BitField<bool, 1, 1> {}; 902 class DeclareGlobalsNativeFlag: public BitField<bool, 1, 1> {};
896 class DeclareGlobalsStrictMode: public BitField<StrictMode, 2, 1> {}; 903 class DeclareGlobalsStrictMode: public BitField<StrictMode, 2, 1> {};
897 904
898 } } // namespace v8::internal 905 } } // namespace v8::internal
899 906
900 #endif // V8_RUNTIME_H_ 907 #endif // V8_RUNTIME_H_
OLDNEW
« src/collection.js ('K') | « src/objects-inl.h ('k') | src/runtime.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698