openbsd-ports/www/mozilla-firefox/patches/patch-js_src_nanojit_Assembler_cpp
landry 9b8dad4d1e Add patches to allow building a debug-flavoured working package (at
least on amd64). Codepaths only used in that case.
2010-10-27 08:10:59 +00:00

18 lines
887 B
Plaintext

$OpenBSD: patch-js_src_nanojit_Assembler_cpp,v 1.1 2010/10/27 08:10:59 landry Exp $
allow to build a debug FLAVOR on !i386
--- js/src/nanojit/Assembler.cpp.orig Tue Oct 26 23:36:11 2010
+++ js/src/nanojit/Assembler.cpp Tue Oct 26 23:37:38 2010
@@ -1223,10 +1223,12 @@ namespace nanojit
countlir_label();
LabelState *label = _labels.get(ins);
// add profiling inc, if necessary.
+#ifdef NANOJIT_IA32
verbose_only( if (_logc->lcbits & LC_FragProfile) {
if (ins == _thisfrag->loopLabel)
asm_inc_m32(& _thisfrag->profCount);
})
+#endif
if (!label) {
// label seen first, normal target of forward jump, save addr & allocator
_labels.add(ins, _nIns, _allocator);