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

Unified Diff: src/interface-descriptors.cc

Issue 2738413002: [regexp] Port RegExpExecStub to CSA (mostly) (Closed)
Patch Set: Rebase Created 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/interface-descriptors.h ('k') | src/mips/code-stubs-mips.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/interface-descriptors.cc
diff --git a/src/interface-descriptors.cc b/src/interface-descriptors.cc
index 61a0d98229bcbe8edabdd138dec3d57b34cf4dd6..2de64b2af6037212540d2e0afd91e15926428751 100644
--- a/src/interface-descriptors.cc
+++ b/src/interface-descriptors.cc
@@ -492,6 +492,24 @@ void CallICTrampolineDescriptor::InitializePlatformIndependent(
machine_types);
}
+void RegExpExecDescriptor::InitializePlatformIndependent(
+ CallInterfaceDescriptorData* data) {
+ // kString, kLastIndex, kStringStart, kStringEnd, kEntryPoint
+ MachineType machine_types[] = {MachineType::AnyTagged(), MachineType::Int32(),
+ MachineType::Pointer(), MachineType::Pointer(),
+ MachineType::AnyTagged()};
+ data->InitializePlatformIndependent(arraysize(machine_types), 0,
+ machine_types);
+}
+
+void RegExpExecDescriptor::InitializePlatformSpecific(
+ CallInterfaceDescriptorData* data) {
+ Register registers[] = {StringRegister(), LastIndexRegister(),
+ StringStartRegister(), StringEndRegister(),
+ CodeRegister()};
+ data->InitializePlatformSpecific(arraysize(registers), registers);
+}
+
void BuiltinDescriptor::InitializePlatformIndependent(
CallInterfaceDescriptorData* data) {
// kTarget, kNewTarget, kArgumentsCount
« no previous file with comments | « src/interface-descriptors.h ('k') | src/mips/code-stubs-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698