summaryrefslogtreecommitdiff
path: root/deps/v8/src/api-arguments.cc
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/src/api-arguments.cc')
-rw-r--r--deps/v8/src/api-arguments.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/deps/v8/src/api-arguments.cc b/deps/v8/src/api-arguments.cc
index 1302e32b66..502b8cbdca 100644
--- a/deps/v8/src/api-arguments.cc
+++ b/deps/v8/src/api-arguments.cc
@@ -13,13 +13,16 @@
namespace v8 {
namespace internal {
-Handle<Object> FunctionCallbackArguments::Call(FunctionCallback f) {
+Handle<Object> FunctionCallbackArguments::Call(CallHandlerInfo* handler) {
Isolate* isolate = this->isolate();
+ LOG(isolate, ApiObjectAccess("call", holder()));
+ RuntimeCallTimerScope timer(isolate, RuntimeCallCounterId::kFunctionCallback);
+ v8::FunctionCallback f =
+ v8::ToCData<v8::FunctionCallback>(handler->callback());
if (isolate->needs_side_effect_check() &&
!isolate->debug()->PerformSideEffectCheckForCallback(FUNCTION_ADDR(f))) {
return Handle<Object>();
}
- RuntimeCallTimerScope timer(isolate, RuntimeCallCounterId::kFunctionCallback);
VMState<EXTERNAL> state(isolate);
ExternalCallbackScope call_scope(isolate, FUNCTION_ADDR(f));
FunctionCallbackInfo<v8::Value> info(begin(), argv_, argc_);