| Index: src/runtime/runtime.cc
|
| diff --git a/src/runtime/runtime.cc b/src/runtime/runtime.cc
|
| index 837f689c223d88d71e84316aff6a8668ccac2638..74004105b38d739647fca7a105fe8ad0ca523955 100644
|
| --- a/src/runtime/runtime.cc
|
| +++ b/src/runtime/runtime.cc
|
| @@ -108,6 +108,14 @@ RUNTIME_FUNCTION(Runtime_InternalSetPrototype) {
|
| }
|
|
|
|
|
| +RUNTIME_FUNCTION(Runtime_GetElementsCapacity) {
|
| + HandleScope scope(isolate);
|
| + DCHECK(args.length() == 1);
|
| + CONVERT_ARG_HANDLE_CHECKED(JSArray, obj, 0);
|
| + return Smi::FromInt(obj->elements()->length());
|
| +}
|
| +
|
| +
|
| RUNTIME_FUNCTION(Runtime_SetPrototype) {
|
| HandleScope scope(isolate);
|
| DCHECK(args.length() == 2);
|
|
|