Chromium Code Reviews| Index: src/runtime/runtime-function.cc |
| diff --git a/src/runtime/runtime-function.cc b/src/runtime/runtime-function.cc |
| index e29b3c8c5f02f437934e42556e3dfa83029570ae..d05a3a17b8dcfb067cc4515dde133c94672633b5 100644 |
| --- a/src/runtime/runtime-function.cc |
| +++ b/src/runtime/runtime-function.cc |
| @@ -236,6 +236,13 @@ 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); |
| + // PrintF("object %p is callable %d\n", (void*) object, object->IsCallable()); |
|
Benedikt Meurer
2016/02/18 05:09:44
Nit: Remove this PrintF
mvstanton
2016/02/18 21:19:15
Doh...actually removed the whole function as Dan p
|
| + return isolate->heap()->ToBoolean(object->IsCallable()); |
| +} |
| RUNTIME_FUNCTION(Runtime_SetForceInlineFlag) { |
| SealHandleScope shs(isolate); |