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 756423006: Optimize GetPrototype (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Add test and add back Push/Pop 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/messages.js ('k') | src/v8natives.js » ('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 27 matching lines...) Expand all
38 F(GetInterceptorInfo, 1, 1) \ 38 F(GetInterceptorInfo, 1, 1) \
39 F(GetNamedInterceptorPropertyNames, 1, 1) \ 39 F(GetNamedInterceptorPropertyNames, 1, 1) \
40 F(GetIndexedInterceptorElementNames, 1, 1) \ 40 F(GetIndexedInterceptorElementNames, 1, 1) \
41 F(GetArgumentsProperty, 1, 1) \ 41 F(GetArgumentsProperty, 1, 1) \
42 F(ToFastProperties, 1, 1) \ 42 F(ToFastProperties, 1, 1) \
43 F(FinishArrayPrototypeSetup, 1, 1) \ 43 F(FinishArrayPrototypeSetup, 1, 1) \
44 F(SpecialArrayFunctions, 0, 1) \ 44 F(SpecialArrayFunctions, 0, 1) \
45 F(IsSloppyModeFunction, 1, 1) \ 45 F(IsSloppyModeFunction, 1, 1) \
46 F(GetDefaultReceiver, 1, 1) \ 46 F(GetDefaultReceiver, 1, 1) \
47 \ 47 \
48 F(GetPrototype, 1, 1) \
49 F(SetPrototype, 2, 1) \ 48 F(SetPrototype, 2, 1) \
50 F(InternalSetPrototype, 2, 1) \ 49 F(InternalSetPrototype, 2, 1) \
51 F(IsInPrototypeChain, 2, 1) \ 50 F(IsInPrototypeChain, 2, 1) \
52 \ 51 \
53 F(GetOwnProperty, 2, 1) \ 52 F(GetOwnProperty, 2, 1) \
54 \ 53 \
55 F(IsExtensible, 1, 1) \ 54 F(IsExtensible, 1, 1) \
56 F(PreventExtensions, 1, 1) \ 55 F(PreventExtensions, 1, 1) \
57 \ 56 \
58 /* Utilities */ \ 57 /* Utilities */ \
(...skipping 667 matching lines...) Expand 10 before | Expand all | Expand 10 after
726 F(DoubleLo, 1, 1) \ 725 F(DoubleLo, 1, 1) \
727 F(MathSqrtRT, 1, 1) \ 726 F(MathSqrtRT, 1, 1) \
728 F(MathLogRT, 1, 1) \ 727 F(MathLogRT, 1, 1) \
729 /* ES6 Collections */ \ 728 /* ES6 Collections */ \
730 F(MapGet, 2, 1) \ 729 F(MapGet, 2, 1) \
731 F(MapGetSize, 1, 1) \ 730 F(MapGetSize, 1, 1) \
732 F(MapHas, 2, 1) \ 731 F(MapHas, 2, 1) \
733 F(SetGetSize, 1, 1) \ 732 F(SetGetSize, 1, 1) \
734 F(SetHas, 2, 1) \ 733 F(SetHas, 2, 1) \
735 /* Arrays */ \ 734 /* Arrays */ \
736 F(HasFastPackedElements, 1, 1) 735 F(HasFastPackedElements, 1, 1) \
736 F(GetPrototype, 1, 1)
737 737
738 738
739 //--------------------------------------------------------------------------- 739 //---------------------------------------------------------------------------
740 // Runtime provides access to all C++ runtime functions. 740 // Runtime provides access to all C++ runtime functions.
741 741
742 class RuntimeState { 742 class RuntimeState {
743 public: 743 public:
744 unibrow::Mapping<unibrow::ToUppercase, 128>* to_upper_mapping() { 744 unibrow::Mapping<unibrow::ToUppercase, 128>* to_upper_mapping() {
745 return &to_upper_mapping_; 745 return &to_upper_mapping_;
746 } 746 }
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
892 class AllocateTargetSpace : public BitField<AllocationSpace, 1, 3> {}; 892 class AllocateTargetSpace : public BitField<AllocationSpace, 1, 3> {};
893 893
894 class DeclareGlobalsEvalFlag : public BitField<bool, 0, 1> {}; 894 class DeclareGlobalsEvalFlag : public BitField<bool, 0, 1> {};
895 class DeclareGlobalsNativeFlag : public BitField<bool, 1, 1> {}; 895 class DeclareGlobalsNativeFlag : public BitField<bool, 1, 1> {};
896 class DeclareGlobalsStrictMode : public BitField<StrictMode, 2, 1> {}; 896 class DeclareGlobalsStrictMode : public BitField<StrictMode, 2, 1> {};
897 897
898 } // namespace internal 898 } // namespace internal
899 } // namespace v8 899 } // namespace v8
900 900
901 #endif // V8_RUNTIME_RUNTIME_H_ 901 #endif // V8_RUNTIME_RUNTIME_H_
OLDNEW
« no previous file with comments | « src/messages.js ('k') | src/v8natives.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698