Bug 1342553 - Part 0.2: Support JSOP_CHECKISCALLABLE in JIT

Issue #74
This commit is contained in:
janekptacijarabaci 2018-03-25 17:00:47 +02:00 committed by Roy Tam
commit 5bf58e6044
14 changed files with 189 additions and 43 deletions

View file

@ -1349,5 +1349,14 @@ BaselineGetFunctionThis(JSContext* cx, BaselineFrame* frame, MutableHandleValue
return GetFunctionThis(cx, frame, res);
}
bool
CheckIsCallable(JSContext* cx, HandleValue v, CheckIsCallableKind kind)
{
if (!IsCallable(v))
return ThrowCheckIsCallable(cx, kind);
return true;
}
} // namespace jit
} // namespace js