mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1174542 - Remove unnecessary AutoWritabeJitCode from initTraceLogger. r=luke
This commit is contained in:
parent
ef68dc3c99
commit
9fe061278c
6
js/src/jit-test/tests/tracelogger/bug1174542.js
Normal file
6
js/src/jit-test/tests/tracelogger/bug1174542.js
Normal 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) {}
|
||||
})();
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user