mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
[arm] Disable regexp tracer on ARM
This commit is contained in:
parent
26b45638d4
commit
1ecb39bb70
@ -66,6 +66,12 @@
|
|||||||
#include "jsscope.h"
|
#include "jsscope.h"
|
||||||
#include "jsstr.h"
|
#include "jsstr.h"
|
||||||
|
|
||||||
|
#ifdef NANOJIT_ARM
|
||||||
|
// Something's broken with regexp tracing on ARM;
|
||||||
|
// disable to get everything else limping along.
|
||||||
|
#undef JS_TRACER
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef JS_TRACER
|
#ifdef JS_TRACER
|
||||||
#include "jstracer.h"
|
#include "jstracer.h"
|
||||||
using namespace avmplus;
|
using namespace avmplus;
|
||||||
@ -3649,11 +3655,21 @@ MatchRegExp(REGlobalData *gData, REMatchState *x)
|
|||||||
u.code = fragment->code();
|
u.code = fragment->code();
|
||||||
REMatchState *lr;
|
REMatchState *lr;
|
||||||
gData->skipped = (ptrdiff_t) x->cp;
|
gData->skipped = (ptrdiff_t) x->cp;
|
||||||
|
|
||||||
|
debug_only_v(printf("entering REGEXP trace at %s:%u@%u, code: %p\n",
|
||||||
|
gData->cx->fp->script->filename,
|
||||||
|
js_PCToLineNumber(gData->cx, gData->cx->fp->script, gData->cx->fp->regs->pc),
|
||||||
|
gData->cx->fp->regs->pc - gData->cx->fp->script->code,
|
||||||
|
fragment->code()););
|
||||||
|
|
||||||
#if defined(JS_NO_FASTCALL) && defined(NANOJIT_IA32)
|
#if defined(JS_NO_FASTCALL) && defined(NANOJIT_IA32)
|
||||||
SIMULATE_FASTCALL(lr, x, gData, u.func);
|
SIMULATE_FASTCALL(lr, x, gData, u.func);
|
||||||
#else
|
#else
|
||||||
lr = u.func(x, gData);
|
lr = u.func(x, gData);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
debug_only_v(printf("leaving REGEXP trace\n"));
|
||||||
|
|
||||||
gData->skipped = ((const jschar *) gData->skipped) - cp;
|
gData->skipped = ((const jschar *) gData->skipped) - cp;
|
||||||
return lr;
|
return lr;
|
||||||
}
|
}
|
||||||
@ -4609,7 +4625,9 @@ static JSFunctionSpec regexp_methods[] = {
|
|||||||
JS_FN(js_toString_str, regexp_toString, 0,0),
|
JS_FN(js_toString_str, regexp_toString, 0,0),
|
||||||
JS_FN("compile", regexp_compile, 2,0),
|
JS_FN("compile", regexp_compile, 2,0),
|
||||||
JS_FN("exec", regexp_exec, 1,0),
|
JS_FN("exec", regexp_exec, 1,0),
|
||||||
|
#ifdef JS_TRACER
|
||||||
JS_TN("test", regexp_test, 1,0, regexp_test_trcinfo),
|
JS_TN("test", regexp_test, 1,0, regexp_test_trcinfo),
|
||||||
|
#endif
|
||||||
JS_FS_END
|
JS_FS_END
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user