| Index: src/api.cc
|
| diff --git a/src/api.cc b/src/api.cc
|
| index c9abd23cdb0517861bc9720cf888f78bcdf4940b..00cc36c61c64114d1ecb906a491f705cac45e29d 100644
|
| --- a/src/api.cc
|
| +++ b/src/api.cc
|
| @@ -72,6 +72,7 @@ namespace v8 {
|
| #define LOG_API(isolate, class_name, function_name) \
|
| i::RuntimeCallTimerScope _runtime_timer( \
|
| isolate, &i::RuntimeCallStats::API_##class_name##_##function_name); \
|
| + TRACE_RUNTIME_CALL(#class_name "::" #function_name); \
|
| LOG(isolate, ApiEntryCall("v8::" #class_name "::" #function_name))
|
|
|
| #define ENTER_V8(isolate) i::VMState<v8::OTHER> __state__((isolate))
|
| @@ -1745,6 +1746,7 @@ MaybeLocal<Value> Script::Run(Local<Context> context) {
|
| i::AggregatingHistogramTimerScope timer(isolate->counters()->compile_lazy());
|
| i::TimerEventScope<i::TimerEventExecute> timer_scope(isolate);
|
| TRACE_EVENT0("v8", "V8.Execute");
|
| + TRACE_CHECK_AND_SET_RUNTIME_CALLS_TRACING();
|
| auto fun = i::Handle<i::JSFunction>::cast(Utils::OpenHandle(this));
|
| i::Handle<i::Object> receiver = isolate->global_proxy();
|
| Local<Value> result;
|
| @@ -1799,6 +1801,7 @@ MaybeLocal<UnboundScript> ScriptCompiler::CompileUnboundInternal(
|
| {
|
| i::HistogramTimerScope total(isolate->counters()->compile_script(), true);
|
| TRACE_EVENT0("v8", "V8.CompileScript");
|
| + TRACE_CHECK_AND_SET_RUNTIME_CALLS_TRACING();
|
| i::Handle<i::Object> name_obj;
|
| i::Handle<i::Object> source_map_url;
|
| int line_offset = 0;
|
| @@ -4323,6 +4326,7 @@ MaybeLocal<Value> Object::CallAsFunction(Local<Context> context,
|
| i::HistogramTimerScope execute_timer(isolate->counters()->execute(), true);
|
| i::TimerEventScope<i::TimerEventExecute> timer_scope(isolate);
|
| TRACE_EVENT0("v8", "V8.Execute");
|
| + TRACE_CHECK_AND_SET_RUNTIME_CALLS_TRACING();
|
| auto self = Utils::OpenHandle(this);
|
| auto recv_obj = Utils::OpenHandle(*recv);
|
| STATIC_ASSERT(sizeof(v8::Local<v8::Value>) == sizeof(i::Object**));
|
| @@ -4351,6 +4355,7 @@ MaybeLocal<Value> Object::CallAsConstructor(Local<Context> context, int argc,
|
| i::HistogramTimerScope execute_timer(isolate->counters()->execute(), true);
|
| i::TimerEventScope<i::TimerEventExecute> timer_scope(isolate);
|
| TRACE_EVENT0("v8", "V8.Execute");
|
| + TRACE_CHECK_AND_SET_RUNTIME_CALLS_TRACING();
|
| auto self = Utils::OpenHandle(this);
|
| STATIC_ASSERT(sizeof(v8::Local<v8::Value>) == sizeof(i::Object**));
|
| i::Handle<i::Object>* args = reinterpret_cast<i::Handle<i::Object>*>(argv);
|
| @@ -4401,6 +4406,7 @@ MaybeLocal<Object> Function::NewInstance(Local<Context> context, int argc,
|
| i::HistogramTimerScope execute_timer(isolate->counters()->execute(), true);
|
| i::TimerEventScope<i::TimerEventExecute> timer_scope(isolate);
|
| TRACE_EVENT0("v8", "V8.Execute");
|
| + TRACE_CHECK_AND_SET_RUNTIME_CALLS_TRACING();
|
| auto self = Utils::OpenHandle(this);
|
| STATIC_ASSERT(sizeof(v8::Local<v8::Value>) == sizeof(i::Object**));
|
| i::Handle<i::Object>* args = reinterpret_cast<i::Handle<i::Object>*>(argv);
|
| @@ -4426,6 +4432,7 @@ MaybeLocal<v8::Value> Function::Call(Local<Context> context,
|
| i::HistogramTimerScope execute_timer(isolate->counters()->execute(), true);
|
| i::TimerEventScope<i::TimerEventExecute> timer_scope(isolate);
|
| TRACE_EVENT0("v8", "V8.Execute");
|
| + TRACE_CHECK_AND_SET_RUNTIME_CALLS_TRACING();
|
| auto self = Utils::OpenHandle(this);
|
| i::Handle<i::Object> recv_obj = Utils::OpenHandle(*recv);
|
| STATIC_ASSERT(sizeof(v8::Local<v8::Value>) == sizeof(i::Object**));
|
| @@ -5570,6 +5577,8 @@ Local<Context> v8::Context::New(v8::Isolate* external_isolate,
|
| v8::Local<Value> global_object) {
|
| i::Isolate* isolate = reinterpret_cast<i::Isolate*>(external_isolate);
|
| LOG_API(isolate, Context, New);
|
| + TRACE_EVENT0("v8", "V8.NewContext");
|
| + TRACE_CHECK_AND_SET_RUNTIME_CALLS_TRACING();
|
| i::HandleScope scope(isolate);
|
| ExtensionConfiguration no_extensions;
|
| if (extensions == NULL) extensions = &no_extensions;
|
| @@ -8762,6 +8771,7 @@ void InvokeAccessorGetterCallback(
|
| Isolate* isolate = reinterpret_cast<Isolate*>(info.GetIsolate());
|
| RuntimeCallTimerScope timer(isolate,
|
| &RuntimeCallStats::AccessorGetterCallback);
|
| + TRACE_RUNTIME_CALL("AccessorGetterCallback");
|
| Address getter_address = reinterpret_cast<Address>(reinterpret_cast<intptr_t>(
|
| getter));
|
| VMState<EXTERNAL> state(isolate);
|
| @@ -8775,6 +8785,7 @@ void InvokeFunctionCallback(const v8::FunctionCallbackInfo<v8::Value>& info,
|
| Isolate* isolate = reinterpret_cast<Isolate*>(info.GetIsolate());
|
| RuntimeCallTimerScope timer(isolate,
|
| &RuntimeCallStats::InvokeFunctionCallback);
|
| + TRACE_RUNTIME_CALL("InvokeFunctionCallback");
|
| Address callback_address =
|
| reinterpret_cast<Address>(reinterpret_cast<intptr_t>(callback));
|
| VMState<EXTERNAL> state(isolate);
|
|
|