| Index: src/api-arguments.h
|
| diff --git a/src/api-arguments.h b/src/api-arguments.h
|
| index 60875d5f006cc505a38bf9f54f81a057b256a672..5d78299a784cedaeb883803ed0debc5fc15e0d8a 100644
|
| --- a/src/api-arguments.h
|
| +++ b/src/api-arguments.h
|
| @@ -116,6 +116,8 @@ class PropertyCallbackArguments
|
| #define WRITE_CALL_1_NAME(Function, type, ApiReturn, InternalReturn) \
|
| Handle<InternalReturn> Call(Function f, Handle<Name> name) { \
|
| Isolate* isolate = this->isolate(); \
|
| + RuntimeCallTimerScope timer( \
|
| + isolate, &isolate->counters()->runtime_call_stats()->Function); \
|
| VMState<EXTERNAL> state(isolate); \
|
| ExternalCallbackScope call_scope(isolate, FUNCTION_ADDR(f)); \
|
| PropertyCallbackInfo<ApiReturn> info(begin()); \
|
| @@ -135,16 +137,18 @@ class PropertyCallbackArguments
|
| F(IndexedPropertyQueryCallback, "has", v8::Integer, Object) \
|
| F(IndexedPropertyDeleterCallback, "delete", v8::Boolean, Object)
|
|
|
| -#define WRITE_CALL_1_INDEX(Function, type, ApiReturn, InternalReturn) \
|
| - Handle<InternalReturn> Call(Function f, uint32_t index) { \
|
| - Isolate* isolate = this->isolate(); \
|
| - VMState<EXTERNAL> state(isolate); \
|
| - ExternalCallbackScope call_scope(isolate, FUNCTION_ADDR(f)); \
|
| - PropertyCallbackInfo<ApiReturn> info(begin()); \
|
| - LOG(isolate, ApiIndexedPropertyAccess("interceptor-indexed-" type, \
|
| - holder(), index)); \
|
| - f(index, info); \
|
| - return GetReturnValue<InternalReturn>(isolate); \
|
| +#define WRITE_CALL_1_INDEX(Function, type, ApiReturn, InternalReturn) \
|
| + Handle<InternalReturn> Call(Function f, uint32_t index) { \
|
| + Isolate* isolate = this->isolate(); \
|
| + RuntimeCallTimerScope timer( \
|
| + isolate, &isolate->counters()->runtime_call_stats()->Function); \
|
| + VMState<EXTERNAL> state(isolate); \
|
| + ExternalCallbackScope call_scope(isolate, FUNCTION_ADDR(f)); \
|
| + PropertyCallbackInfo<ApiReturn> info(begin()); \
|
| + LOG(isolate, ApiIndexedPropertyAccess("interceptor-indexed-" type, \
|
| + holder(), index)); \
|
| + f(index, info); \
|
| + return GetReturnValue<InternalReturn>(isolate); \
|
| }
|
|
|
| FOR_EACH_CALLBACK_TABLE_MAPPING_1_INDEX(WRITE_CALL_1_INDEX)
|
| @@ -155,6 +159,10 @@ class PropertyCallbackArguments
|
| Handle<Object> Call(GenericNamedPropertySetterCallback f, Handle<Name> name,
|
| Handle<Object> value) {
|
| Isolate* isolate = this->isolate();
|
| + RuntimeCallTimerScope timer(isolate,
|
| + &isolate->counters()
|
| + ->runtime_call_stats()
|
| + ->GenericNamedPropertySetterCallback);
|
| VMState<EXTERNAL> state(isolate);
|
| ExternalCallbackScope call_scope(isolate, FUNCTION_ADDR(f));
|
| PropertyCallbackInfo<v8::Value> info(begin());
|
| @@ -167,6 +175,9 @@ class PropertyCallbackArguments
|
| Handle<Object> Call(IndexedPropertySetterCallback f, uint32_t index,
|
| Handle<Object> value) {
|
| Isolate* isolate = this->isolate();
|
| + RuntimeCallTimerScope timer(isolate, &isolate->counters()
|
| + ->runtime_call_stats()
|
| + ->IndexedPropertySetterCallback);
|
| VMState<EXTERNAL> state(isolate);
|
| ExternalCallbackScope call_scope(isolate, FUNCTION_ADDR(f));
|
| PropertyCallbackInfo<v8::Value> info(begin());
|
| @@ -179,6 +190,9 @@ class PropertyCallbackArguments
|
| void Call(AccessorNameSetterCallback f, Handle<Name> name,
|
| Handle<Object> value) {
|
| Isolate* isolate = this->isolate();
|
| + RuntimeCallTimerScope timer(
|
| + isolate,
|
| + &isolate->counters()->runtime_call_stats()->AccessorNameSetterCallback);
|
| VMState<EXTERNAL> state(isolate);
|
| ExternalCallbackScope call_scope(isolate, FUNCTION_ADDR(f));
|
| PropertyCallbackInfo<void> info(begin());
|
|
|