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

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

Issue 757143002: Optimize non-mutation Map and Set operations for String keys (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Replace End calls with IfBuilder destructor 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.h ('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 286 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 /* Harmony sets */ \ 304 /* Harmony sets */ \
305 F(SetInitialize, 1, 1) \ 305 F(SetInitialize, 1, 1) \
306 F(SetAdd, 2, 1) \ 306 F(SetAdd, 2, 1) \
307 F(SetHas, 2, 1) \
308 F(SetDelete, 2, 1) \ 307 F(SetDelete, 2, 1) \
309 F(SetClear, 1, 1) \ 308 F(SetClear, 1, 1) \
310 F(SetGetSize, 1, 1) \
311 \ 309 \
312 F(SetIteratorInitialize, 3, 1) \ 310 F(SetIteratorInitialize, 3, 1) \
313 F(SetIteratorClone, 1, 1) \ 311 F(SetIteratorClone, 1, 1) \
314 F(SetIteratorNext, 2, 1) \ 312 F(SetIteratorNext, 2, 1) \
315 F(SetIteratorDetails, 1, 1) \ 313 F(SetIteratorDetails, 1, 1) \
316 \ 314 \
317 /* Harmony maps */ \ 315 /* Harmony maps */ \
318 F(MapInitialize, 1, 1) \ 316 F(MapInitialize, 1, 1) \
319 F(MapGet, 2, 1) \
320 F(MapHas, 2, 1) \
321 F(MapDelete, 2, 1) \ 317 F(MapDelete, 2, 1) \
322 F(MapClear, 1, 1) \ 318 F(MapClear, 1, 1) \
323 F(MapSet, 3, 1) \ 319 F(MapSet, 3, 1) \
324 F(MapGetSize, 1, 1) \
325 \ 320 \
326 F(MapIteratorInitialize, 3, 1) \ 321 F(MapIteratorInitialize, 3, 1) \
327 F(MapIteratorClone, 1, 1) \ 322 F(MapIteratorClone, 1, 1) \
328 F(MapIteratorNext, 2, 1) \ 323 F(MapIteratorNext, 2, 1) \
329 F(MapIteratorDetails, 1, 1) \ 324 F(MapIteratorDetails, 1, 1) \
330 \ 325 \
331 /* Harmony weak maps and sets */ \ 326 /* Harmony weak maps and sets */ \
332 F(WeakCollectionInitialize, 1, 1) \ 327 F(WeakCollectionInitialize, 1, 1) \
333 F(WeakCollectionGet, 2, 1) \ 328 F(WeakCollectionGet, 2, 1) \
334 F(WeakCollectionHas, 2, 1) \ 329 F(WeakCollectionHas, 2, 1) \
(...skipping 388 matching lines...) Expand 10 before | Expand all | Expand 10 after
723 F(ArrayBufferViewGetByteLength, 1, 1) \ 718 F(ArrayBufferViewGetByteLength, 1, 1) \
724 F(ArrayBufferViewGetByteOffset, 1, 1) \ 719 F(ArrayBufferViewGetByteOffset, 1, 1) \
725 F(TypedArrayGetLength, 1, 1) \ 720 F(TypedArrayGetLength, 1, 1) \
726 /* ArrayBuffer */ \ 721 /* ArrayBuffer */ \
727 F(ArrayBufferGetByteLength, 1, 1) \ 722 F(ArrayBufferGetByteLength, 1, 1) \
728 /* Maths */ \ 723 /* Maths */ \
729 F(ConstructDouble, 2, 1) \ 724 F(ConstructDouble, 2, 1) \
730 F(DoubleHi, 1, 1) \ 725 F(DoubleHi, 1, 1) \
731 F(DoubleLo, 1, 1) \ 726 F(DoubleLo, 1, 1) \
732 F(MathSqrtRT, 1, 1) \ 727 F(MathSqrtRT, 1, 1) \
733 F(MathLogRT, 1, 1) 728 F(MathLogRT, 1, 1) \
729 /* ES6 Collections */ \
730 F(MapGet, 2, 1) \
731 F(MapGetSize, 1, 1) \
732 F(MapHas, 2, 1) \
733 F(SetGetSize, 1, 1) \
734 F(SetHas, 2, 1)
734 735
735 736
736 //--------------------------------------------------------------------------- 737 //---------------------------------------------------------------------------
737 // Runtime provides access to all C++ runtime functions. 738 // Runtime provides access to all C++ runtime functions.
738 739
739 class RuntimeState { 740 class RuntimeState {
740 public: 741 public:
741 unibrow::Mapping<unibrow::ToUppercase, 128>* to_upper_mapping() { 742 unibrow::Mapping<unibrow::ToUppercase, 128>* to_upper_mapping() {
742 return &to_upper_mapping_; 743 return &to_upper_mapping_;
743 } 744 }
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
889 class AllocateTargetSpace : public BitField<AllocationSpace, 1, 3> {}; 890 class AllocateTargetSpace : public BitField<AllocationSpace, 1, 3> {};
890 891
891 class DeclareGlobalsEvalFlag : public BitField<bool, 0, 1> {}; 892 class DeclareGlobalsEvalFlag : public BitField<bool, 0, 1> {};
892 class DeclareGlobalsNativeFlag : public BitField<bool, 1, 1> {}; 893 class DeclareGlobalsNativeFlag : public BitField<bool, 1, 1> {};
893 class DeclareGlobalsStrictMode : public BitField<StrictMode, 2, 1> {}; 894 class DeclareGlobalsStrictMode : public BitField<StrictMode, 2, 1> {};
894 895
895 } // namespace internal 896 } // namespace internal
896 } // namespace v8 897 } // namespace v8
897 898
898 #endif // V8_RUNTIME_RUNTIME_H_ 899 #endif // V8_RUNTIME_RUNTIME_H_
OLDNEW
« no previous file with comments | « src/objects.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698