static bool SendModuleToAttachedProfiler(JSContext *cx, AsmJSModule &module) { #if defined(MOZ_VTUNE) if (IsVTuneProfilingActive() && !SendFunctionsToVTune(cx, module)) return false; #endif #if defined(JS_ION_PERF) if (module.numExportedFunctions() > 0) { size_t firstEntryCode = (size_t) module.entryTrampoline(module.exportedFunction(0)); writePerfSpewerAsmJSEntriesAndExits(firstEntryCode, (size_t) module.globalData() - firstEntryCode); } if (!SendBlocksToPerf(cx, module)) return false; if (!SendFunctionsToPerf(cx, module)) return false; #endif return true; }