Index: src/accessors.cc |
diff --git a/src/accessors.cc b/src/accessors.cc |
index b88ebc3d7910cdd41038e5725f53bd04f67f087c..adec80c204f0b02d055dcd249120cc2aceb8c22c 100644 |
--- a/src/accessors.cc |
+++ b/src/accessors.cc |
@@ -151,6 +151,8 @@ void Accessors::ArrayLengthGetter( |
v8::Local<v8::Name> name, |
const v8::PropertyCallbackInfo<v8::Value>& info) { |
i::Isolate* isolate = reinterpret_cast<i::Isolate*>(info.GetIsolate()); |
+ RuntimeCallTimerScope timer( |
+ isolate, &RuntimeCallStats::AccessorNameGetterCallback_ArrayLength); |
DisallowHeapAllocation no_allocation; |
HandleScope scope(isolate); |
JSArray* holder = JSArray::cast(*Utils::OpenHandle(*info.Holder())); |
@@ -255,6 +257,8 @@ void Accessors::StringLengthGetter( |
v8::Local<v8::Name> name, |
const v8::PropertyCallbackInfo<v8::Value>& info) { |
i::Isolate* isolate = reinterpret_cast<i::Isolate*>(info.GetIsolate()); |
+ RuntimeCallTimerScope timer( |
+ isolate, &RuntimeCallStats::AccessorNameGetterCallback_StringLength); |
DisallowHeapAllocation no_allocation; |
HandleScope scope(isolate); |
@@ -735,6 +739,8 @@ void Accessors::FunctionPrototypeGetter( |
v8::Local<v8::Name> name, |
const v8::PropertyCallbackInfo<v8::Value>& info) { |
i::Isolate* isolate = reinterpret_cast<i::Isolate*>(info.GetIsolate()); |
+ RuntimeCallTimerScope timer( |
+ isolate, &RuntimeCallStats::AccessorNameGetterCallback_FunctionPrototype); |
HandleScope scope(isolate); |
Handle<JSFunction> function = |
Handle<JSFunction>::cast(Utils::OpenHandle(*info.Holder())); |
@@ -1108,6 +1114,9 @@ Handle<AccessorInfo> Accessors::FunctionCallerInfo( |
void Accessors::BoundFunctionLengthGetter( |
v8::Local<v8::Name> name, const v8::PropertyCallbackInfo<v8::Value>& info) { |
i::Isolate* isolate = reinterpret_cast<i::Isolate*>(info.GetIsolate()); |
+ RuntimeCallTimerScope timer( |
+ isolate, |
+ &RuntimeCallStats::AccessorNameGetterCallback_BoundFunctionLength); |
HandleScope scope(isolate); |
Handle<JSBoundFunction> function = |
Handle<JSBoundFunction>::cast(Utils::OpenHandle(*info.Holder())); |
@@ -1142,6 +1151,8 @@ Handle<AccessorInfo> Accessors::BoundFunctionLengthInfo( |
void Accessors::BoundFunctionNameGetter( |
v8::Local<v8::Name> name, const v8::PropertyCallbackInfo<v8::Value>& info) { |
i::Isolate* isolate = reinterpret_cast<i::Isolate*>(info.GetIsolate()); |
+ RuntimeCallTimerScope timer( |
+ isolate, &RuntimeCallStats::AccessorNameGetterCallback_BoundFunctionName); |
HandleScope scope(isolate); |
Handle<JSBoundFunction> function = |
Handle<JSBoundFunction>::cast(Utils::OpenHandle(*info.Holder())); |