| Index: src/runtime/runtime-object.cc
|
| diff --git a/src/runtime/runtime-object.cc b/src/runtime/runtime-object.cc
|
| index 761008aa63d69504a66a0db284b6561135fbae8f..332ccb0e990e583d30219bd2d4c698b6379ce2d7 100644
|
| --- a/src/runtime/runtime-object.cc
|
| +++ b/src/runtime/runtime-object.cc
|
| @@ -758,6 +758,15 @@ RUNTIME_FUNCTION(Runtime_GetDataProperty) {
|
| return *JSReceiver::GetDataProperty(object, name);
|
| }
|
|
|
| +RUNTIME_FUNCTION(Runtime_GetConstructorName) {
|
| + HandleScope scope(isolate);
|
| + DCHECK(args.length() == 1);
|
| + CONVERT_ARG_HANDLE_CHECKED(Object, object, 0);
|
| +
|
| + CHECK(!object->IsUndefined(isolate) && !object->IsNull(isolate));
|
| + Handle<JSReceiver> recv = Object::ToObject(isolate, object).ToHandleChecked();
|
| + return *JSReceiver::GetConstructorName(recv);
|
| +}
|
|
|
| RUNTIME_FUNCTION(Runtime_HasFastPackedElements) {
|
| SealHandleScope shs(isolate);
|
|
|