TI+JM: [infer failure] Missing type in object #6:22:Object x: BoundFunction

RESOLVED FIXED

Status

()

Core
JavaScript Engine
RESOLVED FIXED
6 years ago
6 years ago

People

(Reporter: jandem, Unassigned)

Tracking

(Blocks: 1 bug)

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

6 years ago
--
function bind(f) {
    return f.call.apply(f.bind, arguments);
};
function h(a, b) {
    a.x;
}
function g(a, b) {
    a.x = b;
    h(a);
}
function f() {
    for(var i=0; i<20; i++) {
        g.call(this, {}, bind(function(){}));
    }
}
f();
--
$ ./js -m -n -a test.js
[infer failure] Missing type in object #6:22:Object x: BoundFunction
Lowered Function.call could go through the fast entry point of its callee (bypassing argument type checks).  Fix marks all FUNCALL and FUNAPPLY sites as monitored.  This is a recent regression, these natives used to be cluttered with special type handlers marking the site as monitored (in changing this, I somehow thought lowered FUNCALL always went through the arity check in the same way as lowered FUNAPPLY).

http://hg.mozilla.org/projects/jaegermonkey/rev/3b0ae9af7194
Status: NEW → RESOLVED
Last Resolved: 6 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.