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

Unified Diff: src/bootstrapper.cc

Issue 2392463005: [regexp] Port RegExpCompile and RegExpToString (Closed)
Patch Set: Rebase Created 4 years, 2 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 | « no previous file | src/builtins/builtins.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/bootstrapper.cc
diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc
index 8ae2d3cc8ffe7ed98ac611f9f808c1b8db85a980..487cc3cd9f5ee2a6cdda1fd3e98b216367f11cf1 100644
--- a/src/bootstrapper.cc
+++ b/src/bootstrapper.cc
@@ -1721,6 +1721,13 @@ void Genesis::InitializeGlobal(Handle<JSGlobalObject> global_object,
Builtins::kRegExpPrototypeStickyGetter, true);
SimpleInstallGetter(prototype, factory->unicode_string(),
Builtins::kRegExpPrototypeUnicodeGetter, true);
+
+ SimpleInstallFunction(prototype, "compile",
+ Builtins::kRegExpPrototypeCompile, 2, false,
+ DONT_ENUM);
+ SimpleInstallFunction(prototype, factory->toString_string(),
+ Builtins::kRegExpPrototypeToString, 0, false,
+ DONT_ENUM);
}
{
« no previous file with comments | « no previous file | src/builtins/builtins.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698