@@ -740,11 +740,10 @@ void ContextifyScript::New(const FunctionCallbackInfo<Value>& args) {
740
740
if (*TRACE_EVENT_API_GET_CATEGORY_GROUP_ENABLED (
741
741
TRACING_CATEGORY_NODE2 (vm, script)) != 0 ) {
742
742
Utf8Value fn (isolate, filename);
743
- TRACE_EVENT_NESTABLE_ASYNC_BEGIN1 (
744
- TRACING_CATEGORY_NODE2 (vm, script),
745
- " ContextifyScript::New" ,
746
- contextify_script,
747
- " filename" , TRACE_STR_COPY (*fn));
743
+ TRACE_EVENT_BEGIN1 (TRACING_CATEGORY_NODE2 (vm, script),
744
+ " ContextifyScript::New" ,
745
+ " filename" ,
746
+ TRACE_STR_COPY (*fn));
748
747
}
749
748
750
749
ScriptCompiler::CachedData* cached_data = nullptr ;
@@ -794,10 +793,8 @@ void ContextifyScript::New(const FunctionCallbackInfo<Value>& args) {
794
793
no_abort_scope.Close ();
795
794
if (!try_catch.HasTerminated ())
796
795
try_catch.ReThrow ();
797
- TRACE_EVENT_NESTABLE_ASYNC_END0 (
798
- TRACING_CATEGORY_NODE2 (vm, script),
799
- " ContextifyScript::New" ,
800
- contextify_script);
796
+ TRACE_EVENT_END0 (TRACING_CATEGORY_NODE2 (vm, script),
797
+ " ContextifyScript::New" );
801
798
return ;
802
799
}
803
800
contextify_script->script_ .Reset (isolate, v8_script.ToLocalChecked ());
@@ -826,10 +823,7 @@ void ContextifyScript::New(const FunctionCallbackInfo<Value>& args) {
826
823
env->cached_data_produced_string (),
827
824
Boolean::New (isolate, cached_data_produced)).Check ();
828
825
}
829
- TRACE_EVENT_NESTABLE_ASYNC_END0 (
830
- TRACING_CATEGORY_NODE2 (vm, script),
831
- " ContextifyScript::New" ,
832
- contextify_script);
826
+ TRACE_EVENT_END0 (TRACING_CATEGORY_NODE2 (vm, script), " ContextifyScript::New" );
833
827
}
834
828
835
829
bool ContextifyScript::InstanceOf (Environment* env,
@@ -865,8 +859,7 @@ void ContextifyScript::RunInThisContext(
865
859
ContextifyScript* wrapped_script;
866
860
ASSIGN_OR_RETURN_UNWRAP (&wrapped_script, args.Holder ());
867
861
868
- TRACE_EVENT_NESTABLE_ASYNC_BEGIN0 (
869
- TRACING_CATEGORY_NODE2 (vm, script), " RunInThisContext" , wrapped_script);
862
+ TRACE_EVENT0 (TRACING_CATEGORY_NODE2 (vm, script), " RunInThisContext" );
870
863
871
864
// TODO(addaleax): Use an options object or otherwise merge this with
872
865
// RunInContext().
@@ -892,9 +885,6 @@ void ContextifyScript::RunInThisContext(
892
885
break_on_first_line,
893
886
nullptr , // microtask_queue
894
887
args);
895
-
896
- TRACE_EVENT_NESTABLE_ASYNC_END0 (
897
- TRACING_CATEGORY_NODE2 (vm, script), " RunInThisContext" , wrapped_script);
898
888
}
899
889
900
890
void ContextifyScript::RunInContext (const FunctionCallbackInfo<Value>& args) {
@@ -916,8 +906,7 @@ void ContextifyScript::RunInContext(const FunctionCallbackInfo<Value>& args) {
916
906
if (context.IsEmpty ())
917
907
return ;
918
908
919
- TRACE_EVENT_NESTABLE_ASYNC_BEGIN0 (
920
- TRACING_CATEGORY_NODE2 (vm, script), " RunInContext" , wrapped_script);
909
+ TRACE_EVENT0 (TRACING_CATEGORY_NODE2 (vm, script), " RunInContext" );
921
910
922
911
CHECK (args[1 ]->IsNumber ());
923
912
int64_t timeout = args[1 ]->IntegerValue (env->context ()).FromJust ();
@@ -940,9 +929,6 @@ void ContextifyScript::RunInContext(const FunctionCallbackInfo<Value>& args) {
940
929
break_on_first_line,
941
930
contextify_context->microtask_queue (),
942
931
args);
943
-
944
- TRACE_EVENT_NESTABLE_ASYNC_END0 (
945
- TRACING_CATEGORY_NODE2 (vm, script), " RunInContext" , wrapped_script);
946
932
}
947
933
948
934
bool ContextifyScript::EvalMachine (Environment* env,
0 commit comments