Bug 1174542 - Remove unnecessary AutoWritabeJitCode from initTraceLogger. r=luke

This commit is contained in:
Jan de Mooij 2015-06-15 17:27:13 +02:00
parent ef68dc3c99
commit 9fe061278c
2 changed files with 6 additions and 1 deletions

View File

@ -0,0 +1,6 @@
var du = new Debugger();
if (typeof du.setupTraceLogger === "function")
du.setupTraceLogger({Scripts: true});
(function() {
for (var i = 0; i < 15; ++i) {}
})();

View File

@ -912,7 +912,6 @@ BaselineScript::initTraceLogger(JSRuntime* runtime, JSScript* script)
traceLoggerScriptEvent_ = TraceLoggerEvent(logger, TraceLogger_Scripts);
if (TraceLogTextIdEnabled(TraceLogger_Engine) || TraceLogTextIdEnabled(TraceLogger_Scripts)) {
AutoWritableJitCode awjc(method_);
CodeLocationLabel enter(method_, CodeOffsetLabel(traceLoggerEnterToggleOffset_));
CodeLocationLabel exit(method_, CodeOffsetLabel(traceLoggerExitToggleOffset_));
Assembler::ToggleToCmp(enter);