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

Unified Diff: src/code-factory.cc

Issue 2638393002: [builtins] Add String.prototype.indexOf fast path in TF (Closed)
Patch Set: update comments 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
Index: src/code-factory.cc
diff --git a/src/code-factory.cc b/src/code-factory.cc
index ab652964c65fdf5c43422c760318529aa075b53d..8a4fa4985ee322848e5146900b3bdde577ef0ce2 100644
--- a/src/code-factory.cc
+++ b/src/code-factory.cc
@@ -338,6 +338,12 @@ Callable CodeFactory::StringGreaterThanOrEqual(Isolate* isolate) {
}
// 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());

Powered by Google App Engine
This is Rietveld 408576698