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

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

Issue 2668703002: [stubs] Add RegExpReplace and RegExpSplit stubs (Closed)
Patch Set: BranchIfFastRegExp/IsFastRegExpMap Created 3 years, 10 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/code-factory.cc ('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 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 <memory> 8 #include <memory>
9 9
10 #include "src/assembler.h" 10 #include "src/assembler.h"
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 V(CreateWeakCell) \ 45 V(CreateWeakCell) \
46 V(CallFunction) \ 46 V(CallFunction) \
47 V(CallFunctionWithFeedback) \ 47 V(CallFunctionWithFeedback) \
48 V(CallFunctionWithFeedbackAndVector) \ 48 V(CallFunctionWithFeedbackAndVector) \
49 V(CallForwardVarargs) \ 49 V(CallForwardVarargs) \
50 V(CallConstruct) \ 50 V(CallConstruct) \
51 V(CallTrampoline) \ 51 V(CallTrampoline) \
52 V(ConstructStub) \ 52 V(ConstructStub) \
53 V(ConstructTrampoline) \ 53 V(ConstructTrampoline) \
54 V(RegExpExec) \ 54 V(RegExpExec) \
55 V(RegExpReplace) \
56 V(RegExpSplit) \
55 V(CopyFastSmiOrObjectElements) \ 57 V(CopyFastSmiOrObjectElements) \
56 V(TransitionElementsKind) \ 58 V(TransitionElementsKind) \
57 V(AllocateHeapNumber) \ 59 V(AllocateHeapNumber) \
58 V(AllocateFloat32x4) \ 60 V(AllocateFloat32x4) \
59 V(AllocateInt32x4) \ 61 V(AllocateInt32x4) \
60 V(AllocateUint32x4) \ 62 V(AllocateUint32x4) \
61 V(AllocateBool32x4) \ 63 V(AllocateBool32x4) \
62 V(AllocateInt16x8) \ 64 V(AllocateInt16x8) \
63 V(AllocateUint16x8) \ 65 V(AllocateUint16x8) \
64 V(AllocateBool16x8) \ 66 V(AllocateBool16x8) \
(...skipping 550 matching lines...) Expand 10 before | Expand all | Expand 10 after
615 DECLARE_DESCRIPTOR(CallConstructDescriptor, CallInterfaceDescriptor) 617 DECLARE_DESCRIPTOR(CallConstructDescriptor, CallInterfaceDescriptor)
616 }; 618 };
617 619
618 class RegExpExecDescriptor : public CallInterfaceDescriptor { 620 class RegExpExecDescriptor : public CallInterfaceDescriptor {
619 public: 621 public:
620 DEFINE_PARAMETERS(kRegExpObject, kString, kPreviousIndex, kLastMatchInfo) 622 DEFINE_PARAMETERS(kRegExpObject, kString, kPreviousIndex, kLastMatchInfo)
621 DECLARE_DESCRIPTOR_WITH_STACK_ARGS(RegExpExecDescriptor, 623 DECLARE_DESCRIPTOR_WITH_STACK_ARGS(RegExpExecDescriptor,
622 CallInterfaceDescriptor) 624 CallInterfaceDescriptor)
623 }; 625 };
624 626
627 class RegExpReplaceDescriptor : public CallInterfaceDescriptor {
628 public:
629 DEFINE_PARAMETERS(kReceiver, kString, kReplaceValue)
630 DECLARE_DEFAULT_DESCRIPTOR(RegExpReplaceDescriptor, CallInterfaceDescriptor,
631 kParameterCount)
632 };
633
634 class RegExpSplitDescriptor : public CallInterfaceDescriptor {
635 public:
636 DEFINE_PARAMETERS(kReceiver, kString, kLimit)
637 DECLARE_DEFAULT_DESCRIPTOR(RegExpSplitDescriptor, CallInterfaceDescriptor,
638 kParameterCount)
639 };
640
625 class CopyFastSmiOrObjectElementsDescriptor : public CallInterfaceDescriptor { 641 class CopyFastSmiOrObjectElementsDescriptor : public CallInterfaceDescriptor {
626 public: 642 public:
627 DEFINE_PARAMETERS(kObject) 643 DEFINE_PARAMETERS(kObject)
628 DECLARE_DEFAULT_DESCRIPTOR(CopyFastSmiOrObjectElementsDescriptor, 644 DECLARE_DEFAULT_DESCRIPTOR(CopyFastSmiOrObjectElementsDescriptor,
629 CallInterfaceDescriptor, kParameterCount) 645 CallInterfaceDescriptor, kParameterCount)
630 }; 646 };
631 647
632 class TransitionElementsKindDescriptor : public CallInterfaceDescriptor { 648 class TransitionElementsKindDescriptor : public CallInterfaceDescriptor {
633 public: 649 public:
634 DEFINE_PARAMETERS(kObject, kMap) 650 DEFINE_PARAMETERS(kObject, kMap)
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after
920 } // namespace v8 936 } // namespace v8
921 937
922 938
923 #if V8_TARGET_ARCH_ARM64 939 #if V8_TARGET_ARCH_ARM64
924 #include "src/arm64/interface-descriptors-arm64.h" 940 #include "src/arm64/interface-descriptors-arm64.h"
925 #elif V8_TARGET_ARCH_ARM 941 #elif V8_TARGET_ARCH_ARM
926 #include "src/arm/interface-descriptors-arm.h" 942 #include "src/arm/interface-descriptors-arm.h"
927 #endif 943 #endif
928 944
929 #endif // V8_CALL_INTERFACE_DESCRIPTOR_H_ 945 #endif // V8_CALL_INTERFACE_DESCRIPTOR_H_
OLDNEW
« no previous file with comments | « src/code-factory.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698