Bug 1123864 - Stop reporting ion-compile events to profiler. r=h4writer

This commit is contained in:
Kannan Vijayan 2015-01-21 17:42:08 -05:00
parent 9053a12e15
commit 8fcd1d3b9b

View File

@ -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());