Backed out 2 changesets (bug 1667915) for platform related bustage CLOSED TREE
Backed out changeset e7a0788a1741 (bug 1667915) Backed out changeset d34505b2d81b (bug 1667915)
This commit is contained in:
@@ -2863,9 +2863,10 @@ nsresult ScriptLoader::EvaluateScript(ScriptLoadRequest* aRequest) {
|
||||
// mDataType of the request might remain set to DataType::Unknown.
|
||||
MOZ_ASSERT(aRequest->IsTextSource() || aRequest->IsUnknownDataType());
|
||||
LOG(("ScriptLoadRequest (%p): Evaluate Module", aRequest));
|
||||
AUTO_PROFILER_MARKER_TEXT("ModuleEvaluation", JS,
|
||||
MarkerInnerWindowIdFromDocShell(docShell),
|
||||
profilerLabelString);
|
||||
AUTO_PROFILER_MARKER_TEXT(
|
||||
"ModuleEvaluation",
|
||||
JS.WithOptions(MarkerInnerWindowIdFromDocShell(docShell)),
|
||||
profilerLabelString);
|
||||
|
||||
// currentScript is set to null for modules.
|
||||
AutoCurrentScriptUpdater scriptUpdater(this, nullptr);
|
||||
@@ -2938,18 +2939,20 @@ nsresult ScriptLoader::EvaluateScript(ScriptLoadRequest* aRequest) {
|
||||
} else {
|
||||
LOG(("ScriptLoadRequest (%p): Decode Bytecode and Execute",
|
||||
aRequest));
|
||||
AUTO_PROFILER_MARKER_TEXT("BytecodeDecodeMainThread", JS,
|
||||
MarkerInnerWindowIdFromDocShell(docShell),
|
||||
profilerLabelString);
|
||||
AUTO_PROFILER_MARKER_TEXT(
|
||||
"BytecodeDecodeMainThread",
|
||||
JS.WithOptions(MarkerInnerWindowIdFromDocShell(docShell)),
|
||||
profilerLabelString);
|
||||
|
||||
rv = exec.Decode(options, aRequest->mScriptBytecode,
|
||||
aRequest->mBytecodeOffset);
|
||||
}
|
||||
|
||||
if (rv == NS_OK) {
|
||||
AUTO_PROFILER_MARKER_TEXT("ScriptExecution", JS,
|
||||
MarkerInnerWindowIdFromDocShell(docShell),
|
||||
profilerLabelString);
|
||||
AUTO_PROFILER_MARKER_TEXT(
|
||||
"ScriptExecution",
|
||||
JS.WithOptions(MarkerInnerWindowIdFromDocShell(docShell)),
|
||||
profilerLabelString);
|
||||
rv = ExecuteCompiledScript(cx, aRequest, exec, classicScript);
|
||||
}
|
||||
|
||||
@@ -2983,8 +2986,8 @@ nsresult ScriptLoader::EvaluateScript(ScriptLoadRequest* aRequest) {
|
||||
LOG(("ScriptLoadRequest (%p): Compile And Exec", aRequest));
|
||||
if (aRequest->IsBinASTSource()) {
|
||||
AUTO_PROFILER_MARKER_TEXT(
|
||||
"BinASTDecodeMainThread", JS,
|
||||
MarkerInnerWindowIdFromDocShell(docShell),
|
||||
"BinASTDecodeMainThread",
|
||||
JS.WithOptions(MarkerInnerWindowIdFromDocShell(docShell)),
|
||||
profilerLabelString);
|
||||
|
||||
rv = exec.DecodeBinAST(options,
|
||||
@@ -2996,8 +2999,8 @@ nsresult ScriptLoader::EvaluateScript(ScriptLoadRequest* aRequest) {
|
||||
rv = GetScriptSource(cx, aRequest, &maybeSource);
|
||||
if (NS_SUCCEEDED(rv)) {
|
||||
AUTO_PROFILER_MARKER_TEXT(
|
||||
"ScriptCompileMainThread", JS,
|
||||
MarkerInnerWindowIdFromDocShell(docShell),
|
||||
"ScriptCompileMainThread",
|
||||
JS.WithOptions(MarkerInnerWindowIdFromDocShell(docShell)),
|
||||
profilerLabelString);
|
||||
|
||||
rv = maybeSource.constructed<SourceText<char16_t>>()
|
||||
@@ -3014,8 +3017,8 @@ nsresult ScriptLoader::EvaluateScript(ScriptLoadRequest* aRequest) {
|
||||
if (rv == NS_OK) {
|
||||
script = exec.GetScript();
|
||||
AUTO_PROFILER_MARKER_TEXT(
|
||||
"ScriptExecution", JS,
|
||||
MarkerInnerWindowIdFromDocShell(docShell),
|
||||
"ScriptExecution",
|
||||
JS.WithOptions(MarkerInnerWindowIdFromDocShell(docShell)),
|
||||
profilerLabelString);
|
||||
rv = ExecuteCompiledScript(cx, aRequest, exec, classicScript);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user