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

Unified Diff: src/interface-descriptors.cc

Issue 1475823003: [runtime] First step to sanitize regexp literal creation. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 1 month 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
Index: src/interface-descriptors.cc
diff --git a/src/interface-descriptors.cc b/src/interface-descriptors.cc
index 04833f3a111fe0a96fec75d6d5d001b150275c8d..815027ed4bed02ee4d2227b41308382aacf3213e 100644
--- a/src/interface-descriptors.cc
+++ b/src/interface-descriptors.cc
@@ -377,6 +377,20 @@ void GrowArrayElementsDescriptor::InitializePlatformSpecific(
Type::FunctionType*
+FastCloneRegExpDescriptor::BuildCallInterfaceDescriptorFunctionType(
+ Isolate* isolate, int paramater_count) {
+ Zone* zone = isolate->interface_descriptor_zone();
+ Type::FunctionType* function =
+ Type::FunctionType::New(AnyTagged(zone), Type::Undefined(), 4, zone);
+ function->InitParameter(0, AnyTagged(zone)); // closure
+ function->InitParameter(1, SmiType(zone)); // literal_index
+ function->InitParameter(2, AnyTagged(zone)); // pattern
+ function->InitParameter(3, AnyTagged(zone)); // flags
+ return function;
+}
+
+
+Type::FunctionType*
FastCloneShallowArrayDescriptor::BuildCallInterfaceDescriptorFunctionType(
Isolate* isolate, int paramater_count) {
Zone* zone = isolate->interface_descriptor_zone();

Powered by Google App Engine
This is Rietveld 408576698