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

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

Issue 947683002: Reimplement Maps and Sets in JS (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Merged to master Created 5 years, 8 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/ppc/code-stubs-ppc.cc ('k') | src/runtime/runtime-collections.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 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 283 matching lines...) Expand 10 before | Expand all | Expand 10 after
294 \ 294 \
295 /* Harmony proxies */ \ 295 /* Harmony proxies */ \
296 F(CreateJSProxy, 2, 1) \ 296 F(CreateJSProxy, 2, 1) \
297 F(CreateJSFunctionProxy, 4, 1) \ 297 F(CreateJSFunctionProxy, 4, 1) \
298 F(IsJSFunctionProxy, 1, 1) \ 298 F(IsJSFunctionProxy, 1, 1) \
299 F(GetHandler, 1, 1) \ 299 F(GetHandler, 1, 1) \
300 F(GetCallTrap, 1, 1) \ 300 F(GetCallTrap, 1, 1) \
301 F(GetConstructTrap, 1, 1) \ 301 F(GetConstructTrap, 1, 1) \
302 F(Fix, 1, 1) \ 302 F(Fix, 1, 1) \
303 \ 303 \
304 /* ES6 collections */ \
305 F(MapGrow, 1, 1) \
306 F(MapShrink, 1, 1) \
307 F(SetGrow, 1, 1) \
308 F(SetShrink, 1, 1) \
309 F(GenericHash, 1, 1) \
310 \
304 /* ES6 collection iterators */ \ 311 /* ES6 collection iterators */ \
305 F(SetIteratorInitialize, 3, 1) \ 312 F(SetIteratorInitialize, 3, 1) \
306 F(SetIteratorClone, 1, 1) \ 313 F(SetIteratorClone, 1, 1) \
307 F(SetIteratorNext, 2, 1) \ 314 F(SetIteratorNext, 2, 1) \
308 F(SetIteratorDetails, 1, 1) \ 315 F(SetIteratorDetails, 1, 1) \
309 F(MapIteratorInitialize, 3, 1) \ 316 F(MapIteratorInitialize, 3, 1) \
310 F(MapIteratorClone, 1, 1) \ 317 F(MapIteratorClone, 1, 1) \
311 F(MapIteratorNext, 2, 1) \ 318 F(MapIteratorNext, 2, 1) \
312 F(MapIteratorDetails, 1, 1) \ 319 F(MapIteratorDetails, 1, 1) \
313 \ 320 \
(...skipping 384 matching lines...) Expand 10 before | Expand all | Expand 10 after
698 /* Maths */ \ 705 /* Maths */ \
699 F(ConstructDouble, 2, 1) \ 706 F(ConstructDouble, 2, 1) \
700 F(DoubleHi, 1, 1) \ 707 F(DoubleHi, 1, 1) \
701 F(DoubleLo, 1, 1) \ 708 F(DoubleLo, 1, 1) \
702 F(MathClz32, 1, 1) \ 709 F(MathClz32, 1, 1) \
703 F(MathFloor, 1, 1) \ 710 F(MathFloor, 1, 1) \
704 F(MathSqrt, 1, 1) \ 711 F(MathSqrt, 1, 1) \
705 F(MathLogRT, 1, 1) \ 712 F(MathLogRT, 1, 1) \
706 /* ES6 Collections */ \ 713 /* ES6 Collections */ \
707 F(MapClear, 1, 1) \ 714 F(MapClear, 1, 1) \
708 F(MapDelete, 2, 1) \
709 F(MapGet, 2, 1) \
710 F(MapGetSize, 1, 1) \
711 F(MapHas, 2, 1) \
712 F(MapInitialize, 1, 1) \ 715 F(MapInitialize, 1, 1) \
713 F(MapSet, 3, 1) \
714 F(SetAdd, 2, 1) \
715 F(SetClear, 1, 1) \ 716 F(SetClear, 1, 1) \
716 F(SetDelete, 2, 1) \
717 F(SetGetSize, 1, 1) \
718 F(SetHas, 2, 1) \
719 F(SetInitialize, 1, 1) \ 717 F(SetInitialize, 1, 1) \
718 F(FixedArrayGet, 2, 1) \
719 F(FixedArraySet, 3, 1) \
720 F(JSCollectionGetTable, 1, 1) \
721 F(StringGetRawHashField, 1, 1) \
722 F(TheHole, 0, 1) \
720 /* Arrays */ \ 723 /* Arrays */ \
721 F(HasFastPackedElements, 1, 1) \ 724 F(HasFastPackedElements, 1, 1) \
722 F(GetPrototype, 1, 1) \ 725 F(GetPrototype, 1, 1) \
723 /* Strings */ \ 726 /* Strings */ \
724 F(StringGetLength, 1, 1) \ 727 F(StringGetLength, 1, 1) \
725 /* JSValue */ \ 728 /* JSValue */ \
726 F(JSValueGetValue, 1, 1) \ 729 F(JSValueGetValue, 1, 1) \
727 /* HeapObject */ \ 730 /* HeapObject */ \
728 F(HeapObjectGetMap, 1, 1) \ 731 F(HeapObjectGetMap, 1, 1) \
729 /* Map */ \ 732 /* Map */ \
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
907 910
908 class DeclareGlobalsEvalFlag : public BitField<bool, 0, 1> {}; 911 class DeclareGlobalsEvalFlag : public BitField<bool, 0, 1> {};
909 class DeclareGlobalsNativeFlag : public BitField<bool, 1, 1> {}; 912 class DeclareGlobalsNativeFlag : public BitField<bool, 1, 1> {};
910 STATIC_ASSERT(LANGUAGE_END == 3); 913 STATIC_ASSERT(LANGUAGE_END == 3);
911 class DeclareGlobalsLanguageMode : public BitField<LanguageMode, 2, 2> {}; 914 class DeclareGlobalsLanguageMode : public BitField<LanguageMode, 2, 2> {};
912 915
913 } // namespace internal 916 } // namespace internal
914 } // namespace v8 917 } // namespace v8
915 918
916 #endif // V8_RUNTIME_RUNTIME_H_ 919 #endif // V8_RUNTIME_RUNTIME_H_
OLDNEW
« no previous file with comments | « src/ppc/code-stubs-ppc.cc ('k') | src/runtime/runtime-collections.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698