| Index: src/runtime.cc
|
| diff --git a/src/runtime.cc b/src/runtime.cc
|
| index e8003b6731cc77740ed36596a90a59fcfe957027..a86aa409b329f731c74d2c4f4a38c4efc87e98a0 100644
|
| --- a/src/runtime.cc
|
| +++ b/src/runtime.cc
|
| @@ -4377,6 +4377,16 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_SetProperty) {
|
| }
|
|
|
|
|
| +RUNTIME_FUNCTION(MaybeObject*, Runtime_TransitionElementsKind) {
|
| + HandleScope scope(isolate);
|
| + RUNTIME_ASSERT(args.length() == 2);
|
| + CONVERT_ARG_HANDLE_CHECKED(JSArray, array, 0);
|
| + CONVERT_ARG_HANDLE_CHECKED(Map, map, 1);
|
| + JSObject::TransitionElementsKind(array, map->elements_kind());
|
| + return *array;
|
| +}
|
| +
|
| +
|
| RUNTIME_FUNCTION(MaybeObject*, Runtime_TransitionElementsSmiToDouble) {
|
| NoHandleAllocation ha;
|
| RUNTIME_ASSERT(args.length() == 1);
|
|
|