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

Unified Diff: src/bootstrapper.cc

Issue 2295273003: [regexp] Port RegExpCompile and RegExpToString (Closed)
Patch Set: Split up patch Created 4 years, 3 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 de4441f24c18a71ec4af1c974b22656a7f88010e..e9673076ede0982589a59b98e5602a094c311740 100644
--- a/src/bootstrapper.cc
+++ b/src/bootstrapper.cc
@@ -1636,6 +1636,12 @@ void Genesis::InitializeGlobal(Handle<JSGlobalObject> global_object,
Builtins::kRegExpPrototypeStickyGetter, false);
SimpleInstallGetter(proto, factory->unicode_string(),
Builtins::kRegExpPrototypeUnicodeGetter, false);
+
+ SimpleInstallFunction(proto, "compile", Builtins::kRegExpPrototypeCompile,
+ 2, false, DONT_ENUM);
+ SimpleInstallFunction(proto, 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