зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1119220 - TraceLogger: Report start of ionmonkey code, before doing argument checks, r=bbouvier
This commit is contained in:
Родитель
8ca470fa5d
Коммит
110cba0490
|
@ -6997,13 +6997,6 @@ CodeGenerator::generate()
|
|||
|
||||
masm.bind(&skipPrologue);
|
||||
|
||||
#ifdef JS_TRACE_LOGGING
|
||||
if (!gen->compilingAsmJS()) {
|
||||
emitTracelogScriptStart();
|
||||
emitTracelogStartEvent(TraceLogger_IonMonkey);
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef DEBUG
|
||||
// Assert that the argument types are correct.
|
||||
generateArgumentsChecks(/* bailout = */ false);
|
||||
|
|
|
@ -50,6 +50,12 @@ CodeGeneratorARM::generatePrologue()
|
|||
// Note that this automatically sets MacroAssembler::framePushed().
|
||||
masm.reserveStack(frameSize());
|
||||
masm.checkStackAlignment();
|
||||
|
||||
#ifdef JS_TRACE_LOGGING
|
||||
emitTracelogScriptStart();
|
||||
emitTracelogStartEvent(TraceLogger_IonMonkey);
|
||||
#endif
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
@ -48,6 +48,12 @@ CodeGeneratorMIPS::generatePrologue()
|
|||
// Note that this automatically sets MacroAssembler::framePushed().
|
||||
masm.reserveStack(frameSize());
|
||||
masm.checkStackAlignment();
|
||||
|
||||
#ifdef JS_TRACE_LOGGING
|
||||
emitTracelogScriptStart();
|
||||
emitTracelogStartEvent(TraceLogger_IonMonkey);
|
||||
#endif
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -58,10 +64,8 @@ CodeGeneratorMIPS::generateEpilogue()
|
|||
masm.bind(&returnLabel_);
|
||||
|
||||
#ifdef JS_TRACE_LOGGING
|
||||
if (gen->info().executionMode() == SequentialExecution) {
|
||||
emitTracelogStopEvent(TraceLogger_IonMonkey);
|
||||
emitTracelogScriptStop();
|
||||
}
|
||||
emitTracelogStopEvent(TraceLogger_IonMonkey);
|
||||
emitTracelogScriptStop();
|
||||
#endif
|
||||
|
||||
masm.freeStack(frameSize());
|
||||
|
|
|
@ -46,6 +46,12 @@ CodeGeneratorX86Shared::generatePrologue()
|
|||
|
||||
// Note that this automatically sets MacroAssembler::framePushed().
|
||||
masm.reserveStack(frameSize());
|
||||
|
||||
#ifdef JS_TRACE_LOGGING
|
||||
emitTracelogScriptStart();
|
||||
emitTracelogStartEvent(TraceLogger_IonMonkey);
|
||||
#endif
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -57,10 +63,8 @@ CodeGeneratorX86Shared::generateEpilogue()
|
|||
masm.bind(&returnLabel_);
|
||||
|
||||
#ifdef JS_TRACE_LOGGING
|
||||
if (gen->info().executionMode() == SequentialExecution) {
|
||||
emitTracelogStopEvent(TraceLogger_IonMonkey);
|
||||
emitTracelogScriptStop();
|
||||
}
|
||||
emitTracelogStopEvent(TraceLogger_IonMonkey);
|
||||
emitTracelogScriptStop();
|
||||
#endif
|
||||
|
||||
// Pop the stack we allocated at the start of the function.
|
||||
|
|
Загрузка…
Ссылка в новой задаче