mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1123864 - Stop reporting ion-compile events to profiler. r=h4writer
This commit is contained in:
parent
9053a12e15
commit
8fcd1d3b9b
@ -7210,19 +7210,6 @@ CodeGenerator::link(JSContext *cx, types::CompilerConstraintList *constraints)
|
||||
code->setHasBytecodeMap();
|
||||
}
|
||||
|
||||
if (cx->runtime()->spsProfiler.enabled()) {
|
||||
const char *filename = script->filename();
|
||||
if (filename == nullptr)
|
||||
filename = "<unknown>";
|
||||
unsigned len = strlen(filename) + 50;
|
||||
char *buf = js_pod_malloc<char>(len);
|
||||
if (!buf)
|
||||
return false;
|
||||
JS_snprintf(buf, len, "Ion compiled %s:%d", filename, (int) script->lineno());
|
||||
cx->runtime()->spsProfiler.markEvent(buf);
|
||||
js_free(buf);
|
||||
}
|
||||
|
||||
ionScript->setMethod(code);
|
||||
ionScript->setSkipArgCheckEntryOffset(getSkipArgCheckEntryOffset());
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user