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

Unified Diff: src/bootstrapper.cc

Issue 2733193002: [typedarrays] Move %TypedArray%.prototype.indexOf to C++ (Closed)
Patch Set: Add comments Created 3 years, 9 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') | src/builtins/builtins-typedarray.cc » ('J')
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 5eb2311a43cb8fd90a06f011d1ebf1867b049e6b..47eed3f219c92e4d8e54c74bfacb6a88e6378097 100644
--- a/src/bootstrapper.cc
+++ b/src/bootstrapper.cc
@@ -2614,6 +2614,8 @@ void Genesis::InitializeGlobal(Handle<JSGlobalObject> global_object,
Builtins::kTypedArrayPrototypeCopyWithin, 2, false);
SimpleInstallFunction(prototype, "includes",
Builtins::kTypedArrayPrototypeIncludes, 1, false);
+ SimpleInstallFunction(prototype, "indexOf",
+ Builtins::kTypedArrayPrototypeIndexOf, 1, false);
}
{ // -- T y p e d A r r a y s
« no previous file with comments | « no previous file | src/builtins/builtins.h » ('j') | src/builtins/builtins-typedarray.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698