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

Unified Diff: src/code-factory.cc

Issue 2638393002: [builtins] Add String.prototype.indexOf fast path in TF (Closed)
Patch Set: hardcode paramater massaging Created 3 years, 11 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/compiler/js-builtin-reducer.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 0ff6defa05a675ad6e71f7114567a8e0f4bf7389..d1dcc9a28817cae1c46037ad557b65786b3861fa 100644
--- a/src/code-factory.cc
+++ b/src/code-factory.cc
@@ -294,6 +294,12 @@ Callable CodeFactory::StringCompare(Isolate* isolate, Token::Value token) {
}
// static
+Callable CodeFactory::StringIndexOf(Isolate* isolate) {
+ return Callable(isolate->builtins()->StringIndexOf(),
+ StringIndexOfDescriptor(isolate));
+}
+
+// static
Callable CodeFactory::SubString(Isolate* isolate) {
SubStringStub stub(isolate);
return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor());
« no previous file with comments | « src/code-factory.h ('k') | src/compiler/js-builtin-reducer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698