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

Unified Diff: src/code-factory.cc

Issue 2677073004: [regexp] Add stub for RegExpExec instead of inlining (Closed)
Patch Set: Created 3 years, 10 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/code-factory.h ('k') | src/interface-descriptors.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/code-factory.cc
diff --git a/src/code-factory.cc b/src/code-factory.cc
index 1fbeec308e32b9039462076b164b15646cd30eb9..0d635e64722ad21c71503534f88ea5375b996122 100644
--- a/src/code-factory.cc
+++ b/src/code-factory.cc
@@ -265,6 +265,14 @@ TFS_BUILTIN(StringGreaterThanOrEqual)
#undef TFS_BUILTIN
// static
+Callable CodeFactory::RegExpExecInternal(Isolate* isolate, bool is_fastpath) {
+ Handle<Code> code(is_fastpath
+ ? isolate->builtins()->RegExpExecInternalFast()
+ : isolate->builtins()->RegExpExecInternalSlow());
+ return Callable(code, RegExpExecInternalDescriptor(isolate));
+}
+
+// static
Callable CodeFactory::StringAdd(Isolate* isolate, StringAddFlags flags,
PretenureFlag pretenure_flag) {
StringAddStub stub(isolate, flags, pretenure_flag);
« no previous file with comments | « src/code-factory.h ('k') | src/interface-descriptors.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698