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

Side by Side Diff: src/interface-descriptors.h

Issue 1816553002: Introduce a code stub version of Array.prototype.push (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Addressed comments Created 4 years, 9 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/ia32/interface-descriptors-ia32.cc ('k') | src/interface-descriptors.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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_CALL_INTERFACE_DESCRIPTOR_H_ 5 #ifndef V8_CALL_INTERFACE_DESCRIPTOR_H_
6 #define V8_CALL_INTERFACE_DESCRIPTOR_H_ 6 #define V8_CALL_INTERFACE_DESCRIPTOR_H_
7 7
8 #include "src/assembler.h" 8 #include "src/assembler.h"
9 #include "src/macro-assembler.h" 9 #include "src/macro-assembler.h"
10 10
11 namespace v8 { 11 namespace v8 {
12 namespace internal { 12 namespace internal {
13 13
14 class PlatformInterfaceDescriptor; 14 class PlatformInterfaceDescriptor;
15 15
16 #define INTERFACE_DESCRIPTOR_LIST(V) \ 16 #define INTERFACE_DESCRIPTOR_LIST(V) \
17 V(Void) \ 17 V(Void) \
18 V(Load) \ 18 V(Load) \
19 V(Store) \ 19 V(Store) \
20 V(StoreTransition) \ 20 V(StoreTransition) \
21 V(VectorStoreTransition) \ 21 V(VectorStoreTransition) \
22 V(VectorStoreICTrampoline) \ 22 V(VectorStoreICTrampoline) \
23 V(VectorStoreIC) \ 23 V(VectorStoreIC) \
24 V(InstanceOf) \ 24 V(InstanceOf) \
25 V(LoadWithVector) \ 25 V(LoadWithVector) \
26 V(FastArrayPush) \
26 V(FastNewClosure) \ 27 V(FastNewClosure) \
27 V(FastNewContext) \ 28 V(FastNewContext) \
28 V(FastNewObject) \ 29 V(FastNewObject) \
29 V(FastNewRestParameter) \ 30 V(FastNewRestParameter) \
30 V(FastNewSloppyArguments) \ 31 V(FastNewSloppyArguments) \
31 V(FastNewStrictArguments) \ 32 V(FastNewStrictArguments) \
32 V(TypeConversion) \ 33 V(TypeConversion) \
33 V(Typeof) \ 34 V(Typeof) \
34 V(FastCloneRegExp) \ 35 V(FastCloneRegExp) \
35 V(FastCloneShallowArray) \ 36 V(FastCloneShallowArray) \
(...skipping 713 matching lines...) Expand 10 before | Expand all | Expand 10 after
749 750
750 static const Register exponent(); 751 static const Register exponent();
751 }; 752 };
752 753
753 754
754 class ContextOnlyDescriptor : public CallInterfaceDescriptor { 755 class ContextOnlyDescriptor : public CallInterfaceDescriptor {
755 public: 756 public:
756 DECLARE_DESCRIPTOR(ContextOnlyDescriptor, CallInterfaceDescriptor) 757 DECLARE_DESCRIPTOR(ContextOnlyDescriptor, CallInterfaceDescriptor)
757 }; 758 };
758 759
760 class FastArrayPushDescriptor : public CallInterfaceDescriptor {
761 public:
762 DECLARE_DESCRIPTOR_WITH_CUSTOM_FUNCTION_TYPE(FastArrayPushDescriptor,
763 CallInterfaceDescriptor)
764 };
759 765
760 class GrowArrayElementsDescriptor : public CallInterfaceDescriptor { 766 class GrowArrayElementsDescriptor : public CallInterfaceDescriptor {
761 public: 767 public:
762 DECLARE_DESCRIPTOR(GrowArrayElementsDescriptor, CallInterfaceDescriptor) 768 DECLARE_DESCRIPTOR(GrowArrayElementsDescriptor, CallInterfaceDescriptor)
763 769
764 enum RegisterInfo { kObjectIndex, kKeyIndex }; 770 enum RegisterInfo { kObjectIndex, kKeyIndex };
765 static const Register ObjectRegister(); 771 static const Register ObjectRegister();
766 static const Register KeyRegister(); 772 static const Register KeyRegister();
767 }; 773 };
768 774
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
814 } // namespace v8 820 } // namespace v8
815 821
816 822
817 #if V8_TARGET_ARCH_ARM64 823 #if V8_TARGET_ARCH_ARM64
818 #include "src/arm64/interface-descriptors-arm64.h" 824 #include "src/arm64/interface-descriptors-arm64.h"
819 #elif V8_TARGET_ARCH_ARM 825 #elif V8_TARGET_ARCH_ARM
820 #include "src/arm/interface-descriptors-arm.h" 826 #include "src/arm/interface-descriptors-arm.h"
821 #endif 827 #endif
822 828
823 #endif // V8_CALL_INTERFACE_DESCRIPTOR_H_ 829 #endif // V8_CALL_INTERFACE_DESCRIPTOR_H_
OLDNEW
« no previous file with comments | « src/ia32/interface-descriptors-ia32.cc ('k') | src/interface-descriptors.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698