@@ -732,11 +732,10 @@ void ContextifyScript::New(const FunctionCallbackInfo<Value>& args) {
732
732
if (*TRACE_EVENT_API_GET_CATEGORY_GROUP_ENABLED (
733
733
TRACING_CATEGORY_NODE2 (vm, script)) != 0 ) {
734
734
Utf8Value fn (isolate, filename);
735
- TRACE_EVENT_NESTABLE_ASYNC_BEGIN1 (
736
- TRACING_CATEGORY_NODE2 (vm, script),
737
- " ContextifyScript::New" ,
738
- contextify_script,
739
- " filename" , TRACE_STR_COPY (*fn));
735
+ TRACE_EVENT_BEGIN1 (TRACING_CATEGORY_NODE2 (vm, script),
736
+ " ContextifyScript::New" ,
737
+ " filename" ,
738
+ TRACE_STR_COPY (*fn));
740
739
}
741
740
742
741
ScriptCompiler::CachedData* cached_data = nullptr ;
@@ -786,10 +785,8 @@ void ContextifyScript::New(const FunctionCallbackInfo<Value>& args) {
786
785
no_abort_scope.Close ();
787
786
if (!try_catch.HasTerminated ())
788
787
try_catch.ReThrow ();
789
- TRACE_EVENT_NESTABLE_ASYNC_END0 (
790
- TRACING_CATEGORY_NODE2 (vm, script),
791
- " ContextifyScript::New" ,
792
- contextify_script);
788
+ TRACE_EVENT_END0 (TRACING_CATEGORY_NODE2 (vm, script),
789
+ " ContextifyScript::New" );
793
790
return ;
794
791
}
795
792
contextify_script->script_ .Reset (isolate, v8_script.ToLocalChecked ());
@@ -818,10 +815,7 @@ void ContextifyScript::New(const FunctionCallbackInfo<Value>& args) {
818
815
env->cached_data_produced_string (),
819
816
Boolean::New (isolate, cached_data_produced)).Check ();
820
817
}
821
- TRACE_EVENT_NESTABLE_ASYNC_END0 (
822
- TRACING_CATEGORY_NODE2 (vm, script),
823
- " ContextifyScript::New" ,
824
- contextify_script);
818
+ TRACE_EVENT_END0 (TRACING_CATEGORY_NODE2 (vm, script), " ContextifyScript::New" );
825
819
}
826
820
827
821
bool ContextifyScript::InstanceOf (Environment* env,
@@ -857,8 +851,7 @@ void ContextifyScript::RunInThisContext(
857
851
ContextifyScript* wrapped_script;
858
852
ASSIGN_OR_RETURN_UNWRAP (&wrapped_script, args.Holder ());
859
853
860
- TRACE_EVENT_NESTABLE_ASYNC_BEGIN0 (
861
- TRACING_CATEGORY_NODE2 (vm, script), " RunInThisContext" , wrapped_script);
854
+ TRACE_EVENT0 (TRACING_CATEGORY_NODE2 (vm, script), " RunInThisContext" );
862
855
863
856
// TODO(addaleax): Use an options object or otherwise merge this with
864
857
// RunInContext().
@@ -884,9 +877,6 @@ void ContextifyScript::RunInThisContext(
884
877
break_on_first_line,
885
878
nullptr , // microtask_queue
886
879
args);
887
-
888
- TRACE_EVENT_NESTABLE_ASYNC_END0 (
889
- TRACING_CATEGORY_NODE2 (vm, script), " RunInThisContext" , wrapped_script);
890
880
}
891
881
892
882
void ContextifyScript::RunInContext (const FunctionCallbackInfo<Value>& args) {
@@ -908,8 +898,7 @@ void ContextifyScript::RunInContext(const FunctionCallbackInfo<Value>& args) {
908
898
if (context.IsEmpty ())
909
899
return ;
910
900
911
- TRACE_EVENT_NESTABLE_ASYNC_BEGIN0 (
912
- TRACING_CATEGORY_NODE2 (vm, script), " RunInContext" , wrapped_script);
901
+ TRACE_EVENT0 (TRACING_CATEGORY_NODE2 (vm, script), " RunInContext" );
913
902
914
903
CHECK (args[1 ]->IsNumber ());
915
904
int64_t timeout = args[1 ]->IntegerValue (env->context ()).FromJust ();
@@ -932,9 +921,6 @@ void ContextifyScript::RunInContext(const FunctionCallbackInfo<Value>& args) {
932
921
break_on_first_line,
933
922
contextify_context->microtask_queue (),
934
923
args);
935
-
936
- TRACE_EVENT_NESTABLE_ASYNC_END0 (
937
- TRACING_CATEGORY_NODE2 (vm, script), " RunInContext" , wrapped_script);
938
924
}
939
925
940
926
bool ContextifyScript::EvalMachine (Environment* env,
0 commit comments