summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/asm.js/testBug1357053.js
blob: 054e2e35ad9df51357268237aae36925f0432365 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// |jit-test| --arm-asm-nop-fill=1

try {
    enableSingleStepProfiling();
    disableSingleStepProfiling();
} catch(e) {
    // Single step profiling not supported here.
    quit();
}

enableGeckoProfiling();
var m = new Function('g', "'use asm'; var tof=g.Math.fround; var fun=g.Math.ceil; function f(d) { d=tof(d); return tof(fun(d)) } return f");
var f = m(this);
enableSingleStepProfiling();
f(.1);