mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-03 02:25:34 +00:00
Bug 1490794 - Add profiling stack frame for script compilation r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D5861 --HG-- extra : moz-landing-system : lando
This commit is contained in:
parent
b56b387123
commit
8d44ed5ac7
@ -26,6 +26,7 @@
|
||||
#include "jit/JitFrames-inl.h"
|
||||
#include "jit/MacroAssembler-inl.h"
|
||||
#include "vm/BytecodeUtil-inl.h"
|
||||
#include "vm/GeckoProfiler-inl.h"
|
||||
#include "vm/JSObject-inl.h"
|
||||
#include "vm/JSScript-inl.h"
|
||||
#include "vm/Stack-inl.h"
|
||||
@ -252,6 +253,7 @@ jit::BaselineCompile(JSContext* cx, JSScript* script, bool forceDebugInstrumenta
|
||||
MOZ_ASSERT(!script->hasBaselineScript());
|
||||
MOZ_ASSERT(script->canBaselineCompile());
|
||||
MOZ_ASSERT(IsBaselineEnabled(cx));
|
||||
AutoGeckoProfilerEntry pseudoFrame(cx, "Baseline script compilation");
|
||||
|
||||
script->ensureNonLazyCanonicalFunction();
|
||||
|
||||
|
@ -60,6 +60,7 @@
|
||||
#include "jit/shared/Lowering-shared-inl.h"
|
||||
#include "vm/Debugger-inl.h"
|
||||
#include "vm/EnvironmentObject-inl.h"
|
||||
#include "vm/GeckoProfiler-inl.h"
|
||||
#include "vm/JSObject-inl.h"
|
||||
#include "vm/JSScript-inl.h"
|
||||
#include "vm/Realm-inl.h"
|
||||
@ -2374,6 +2375,7 @@ Compile(JSContext* cx, HandleScript script, BaselineFrame* osrFrame, jsbytecode*
|
||||
MOZ_ASSERT(jit::IsIonEnabled(cx));
|
||||
MOZ_ASSERT(jit::IsBaselineEnabled(cx));
|
||||
MOZ_ASSERT_IF(osrPc != nullptr, LoopEntryCanIonOsr(osrPc));
|
||||
AutoGeckoProfilerEntry pseudoFrame(cx, "Ion script compilation");
|
||||
|
||||
if (!script->hasBaselineScript()) {
|
||||
return Method_Skipped;
|
||||
|
Loading…
Reference in New Issue
Block a user