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

Unified Diff: src/interface-descriptors.cc

Issue 2832193002: Revert of [regexp] Remove remainder of native RegExpExecStub (Closed)
Patch Set: Created 3 years, 8 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 619af3f7b9b128a0c9c456a7b1117677a2b8daf0..a5dccc3583548c3efc25e426e3fee8ff6b9e75ed 100644
--- a/src/interface-descriptors.cc
+++ b/src/interface-descriptors.cc
@@ -492,6 +492,24 @@
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