Chromium Code Reviews| 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); |