if (getJitCompilerOptions()["ion.warmup.trigger"] > 20)
    setJitCompilerOption("ion.warmup.trigger", 20);
function callRegExpTest(i) 

function callRegExpExec(i) {
    var s = "" + i;
    var re = /(\d+)/;
    var res = re.exec(s);
    assertEq(RegExp.$1, s);
    return res;
}
function callRegExpReplace(i) {
    var s = "" + i;
    var re = /(\d+)/;
    s.replace(re, "");
    assertEq(RegExp.$1, s);
}
for (var i = 0; i < 60; i++) {
    callRegExpTest(i);
    callRegExpExec(i);
    callRegExpReplace(i);
}

{
    var s = "" + i;
    var re = /(\d+)/;
    re.test(s);
    assertEq(RegExp.$1, s);
}