| Index: src/runtime/runtime-function.cc
|
| diff --git a/src/runtime/runtime-function.cc b/src/runtime/runtime-function.cc
|
| index e29b3c8c5f02f437934e42556e3dfa83029570ae..784a24467ee4a44397505e73d719b495703d9564 100644
|
| --- a/src/runtime/runtime-function.cc
|
| +++ b/src/runtime/runtime-function.cc
|
| @@ -236,6 +236,12 @@ RUNTIME_FUNCTION(Runtime_IsConstructor) {
|
| return isolate->heap()->ToBoolean(object->IsConstructor());
|
| }
|
|
|
| +RUNTIME_FUNCTION(Runtime_IsCallable) {
|
| + SealHandleScope shs(isolate);
|
| + DCHECK_EQ(1, args.length());
|
| + CONVERT_ARG_CHECKED(Object, object, 0);
|
| + return isolate->heap()->ToBoolean(object->IsCallable());
|
| +}
|
|
|
| RUNTIME_FUNCTION(Runtime_SetForceInlineFlag) {
|
| SealHandleScope shs(isolate);
|
|
|