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

Unified Diff: src/builtins/builtins.h

Issue 2350963004: [builtins] Move StringIndexOf to a C++ builtin. (Closed)
Patch Set: Change IndexOf usage to use unchecked version 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
Index: src/builtins/builtins.h
diff --git a/src/builtins/builtins.h b/src/builtins/builtins.h
index 4bd91f566257ad2ccf900665ef2c2af3b278a953..1bdb95b501820e67607749622c1adef3a45fc4e4 100644
--- a/src/builtins/builtins.h
+++ b/src/builtins/builtins.h
@@ -535,6 +535,9 @@ namespace internal {
TFJ(StringPrototypeCharAt, 2) \
/* ES6 section 21.1.3.2 String.prototype.charCodeAt ( pos ) */ \
TFJ(StringPrototypeCharCodeAt, 2) \
+ /* ES6 section 21.1.3.8 */ \
+ /* String.prototype.indexOf ( searchString [ , position ] ) */ \
+ CPP(StringPrototypeIndexOf) \
/* ES6 section 21.1.3.9 */ \
/* String.prototype.lastIndexOf ( searchString [ , position ] ) */ \
CPP(StringPrototypeLastIndexOf) \
« no previous file with comments | « src/bootstrapper.cc ('k') | src/builtins/builtins-string.cc » ('j') | src/objects.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698