mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
8f837e0784
- Fix MONITOR_BRANCH to restore frame-dependent interpreter locals (we want fewer of these if they can be removed with no perf loss). - Fix FORALL_SLOTS_IN_PENDING_FRAMES not to scan argv in callee when it has scanned operand stack in caller. - Fix import to take the localFrame from whose fun its localNames parameter was computed -- it was using cx->fp which is wrong when FORALL_SLOTS_IN_PENDING_FRAMES iterates other than the top of stack frame. - A few interval tests that were double-ended are single-ended now. - Add call.js mini-test (more cases needed).
14 lines
180 B
JavaScript
14 lines
180 B
JavaScript
function g(x) {
|
|
if ((x & 1) == 1) return 1;
|
|
return 2;
|
|
}
|
|
|
|
function f(n) {
|
|
var q = 0;
|
|
for (var i = 0; i < n; i++)
|
|
q += g(i);
|
|
return q;
|
|
}
|
|
|
|
print(f(1000));
|