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

Unified Diff: src/runtime/runtime-object.cc

Issue 2090353003: Amend DataView, ArrayBuffer, and TypedArray methods to use ToIndex. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: enable test Created 4 years, 6 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/runtime/runtime-object.cc
diff --git a/src/runtime/runtime-object.cc b/src/runtime/runtime-object.cc
index d16fad8c1a2b6d2f2098caace96a376cf885830d..6ff684d8c0e790a45bf943d7d401896175fe563d 100644
--- a/src/runtime/runtime-object.cc
+++ b/src/runtime/runtime-object.cc
@@ -885,6 +885,12 @@ RUNTIME_FUNCTION(Runtime_ToLength) {
RETURN_RESULT_OR_FAILURE(isolate, Object::ToLength(isolate, input));
}
+RUNTIME_FUNCTION(Runtime_ToIndex) {
+ HandleScope scope(isolate);
+ DCHECK_EQ(1, args.length());
+ CONVERT_ARG_HANDLE_CHECKED(Object, input, 0);
+ RETURN_RESULT_OR_FAILURE(isolate, Object::ToIndex(isolate, input));
+}
Dan Ehrenberg 2016/06/23 21:45:32 I don't see anyone who calls %ToIndex. Why was the
bakkot 2016/06/28 23:41:07 Removed.
RUNTIME_FUNCTION(Runtime_ToString) {
HandleScope scope(isolate);

Powered by Google App Engine
This is Rietveld 408576698