Bug 1119220 - TraceLogger: Report start of ionmonkey code, before doing argument checks, r=bbouvier

This commit is contained in:
Hannes Verschore 2015-01-13 13:37:25 +01:00
Родитель 8ca470fa5d
Коммит 110cba0490
4 изменённых файлов: 22 добавлений и 15 удалений

Просмотреть файл

@ -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.