Index: src/api.cc |
diff --git a/src/api.cc b/src/api.cc |
index 106c1fd916a90137bb268bcf7b51f83c44d07efa..065d3b827a5be9b1392a5fff979a7057006a06a6 100644 |
--- a/src/api.cc |
+++ b/src/api.cc |
@@ -1674,8 +1674,7 @@ Local<Value> Script::Run() { |
ON_BAILOUT(isolate, "v8::Script::Run()", return Local<Value>()); |
LOG_API(isolate, "Script::Run"); |
ENTER_V8(isolate); |
- i::Logger::TimerEventScope timer_scope( |
- isolate, i::Logger::TimerEventScope::v8_execute); |
+ TimerEventScope<TimerEventExecute> timer_scope(isolate); |
i::HandleScope scope(isolate); |
i::Handle<i::JSFunction> fun = i::Handle<i::JSFunction>::cast(obj); |
EXCEPTION_PREAMBLE(isolate); |
@@ -3884,8 +3883,7 @@ Local<v8::Value> Object::CallAsFunction(v8::Handle<v8::Value> recv, |
return Local<v8::Value>()); |
LOG_API(isolate, "Object::CallAsFunction"); |
ENTER_V8(isolate); |
- i::Logger::TimerEventScope timer_scope( |
- isolate, i::Logger::TimerEventScope::v8_execute); |
+ TimerEventScope<TimerEventExecute> timer_scope(isolate); |
i::HandleScope scope(isolate); |
i::Handle<i::JSObject> obj = Utils::OpenHandle(this); |
i::Handle<i::Object> recv_obj = Utils::OpenHandle(*recv); |
@@ -3919,8 +3917,7 @@ Local<v8::Value> Object::CallAsConstructor(int argc, |
return Local<v8::Object>()); |
LOG_API(isolate, "Object::CallAsConstructor"); |
ENTER_V8(isolate); |
- i::Logger::TimerEventScope timer_scope( |
- isolate, i::Logger::TimerEventScope::v8_execute); |
+ TimerEventScope<TimerEventExecute> timer_scope(isolate); |
i::HandleScope scope(isolate); |
i::Handle<i::JSObject> obj = Utils::OpenHandle(this); |
STATIC_ASSERT(sizeof(v8::Handle<v8::Value>) == sizeof(i::Object**)); |
@@ -3979,8 +3976,7 @@ Local<v8::Object> Function::NewInstance(int argc, |
return Local<v8::Object>()); |
LOG_API(isolate, "Function::NewInstance"); |
ENTER_V8(isolate); |
- i::Logger::TimerEventScope timer_scope( |
- isolate, i::Logger::TimerEventScope::v8_execute); |
+ TimerEventScope<TimerEventExecute> timer_scope(isolate); |
EscapableHandleScope scope(reinterpret_cast<Isolate*>(isolate)); |
i::Handle<i::JSFunction> function = Utils::OpenHandle(this); |
STATIC_ASSERT(sizeof(v8::Handle<v8::Value>) == sizeof(i::Object**)); |
@@ -4000,8 +3996,7 @@ Local<v8::Value> Function::Call(v8::Handle<v8::Value> recv, int argc, |
ON_BAILOUT(isolate, "v8::Function::Call()", return Local<v8::Value>()); |
LOG_API(isolate, "Function::Call"); |
ENTER_V8(isolate); |
- i::Logger::TimerEventScope timer_scope( |
- isolate, i::Logger::TimerEventScope::v8_execute); |
+ TimerEventScope<TimerEventExecute> timer_scope(isolate); |
i::HandleScope scope(isolate); |
i::Handle<i::JSFunction> fun = Utils::OpenHandle(this); |
i::Handle<i::Object> recv_obj = Utils::OpenHandle(*recv); |