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

Unified Diff: src/bootstrapper.cc

Issue 2763473002: [typedarrays] Move %TypedArray%.prototype.slice to C++ (Closed)
Patch Set: rebase 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 dd6d6a01c0d7f0647fe0bcb18fe0a2fef7917574..cf7d6948ee45e56d3706398204696fd0fc62f8a5 100644
--- a/src/bootstrapper.cc
+++ b/src/bootstrapper.cc
@@ -2633,6 +2633,8 @@ void Genesis::InitializeGlobal(Handle<JSGlobalObject> global_object,
Builtins::kTypedArrayPrototypeLastIndexOf, 1, false);
SimpleInstallFunction(prototype, "reverse",
Builtins::kTypedArrayPrototypeReverse, 0, false);
+ SimpleInstallFunction(prototype, "slice",
+ Builtins::kTypedArrayPrototypeSlice, 2, 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