Chromium Code Reviews| Index: src/runtime/runtime-array.cc |
| diff --git a/src/runtime/runtime-array.cc b/src/runtime/runtime-array.cc |
| index a24345ec33ee39bbd9753618a711e6108fed4a7b..50aa5eef76e8412e2d3353658a4d5eee99367f5b 100644 |
| --- a/src/runtime/runtime-array.cc |
| +++ b/src/runtime/runtime-array.cc |
| @@ -487,5 +487,19 @@ RUNTIME_FUNCTION(Runtime_FastOneByteArrayJoin) { |
| // to a slow path. |
| return isolate->heap()->undefined_value(); |
| } |
| + |
| + |
| +RUNTIME_FUNCTION(Runtime_ArraySpeciesConstructor) { |
| + HandleScope scope(isolate); |
| + |
|
adamk
2016/01/06 00:10:12
No blank line here.
Dan Ehrenberg
2016/01/07 00:42:58
Fixed
|
| + DCHECK(args.length() == 1); |
| + CONVERT_ARG_HANDLE_CHECKED(Object, originalArray, 0); |
|
adamk
2016/01/06 00:10:12
original_array
Dan Ehrenberg
2016/01/07 00:42:58
Fixed
|
| + Handle<Object> constructor; |
| + ASSIGN_RETURN_FAILURE_ON_EXCEPTION( |
| + isolate, constructor, |
| + Object::ArraySpeciesConstructor(isolate, originalArray)); |
| + return *constructor; |
| +} |
| + |
| } // namespace internal |
| } // namespace v8 |