diff options
author | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-03-25 17:00:47 +0200 |
---|---|---|
committer | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-03-25 17:00:47 +0200 |
commit | 727c27a30d10a811d5a3fe04e2407cd7b3993b5e (patch) | |
tree | ffca6abc0cae35533a84df6f19b88f31ca3ad97b /js/src/jit/VMFunctions.cpp | |
parent | b311e8fa718e2a32805c25847781cc8a6a0541bd (diff) | |
download | UXP-727c27a30d10a811d5a3fe04e2407cd7b3993b5e.tar UXP-727c27a30d10a811d5a3fe04e2407cd7b3993b5e.tar.gz UXP-727c27a30d10a811d5a3fe04e2407cd7b3993b5e.tar.lz UXP-727c27a30d10a811d5a3fe04e2407cd7b3993b5e.tar.xz UXP-727c27a30d10a811d5a3fe04e2407cd7b3993b5e.zip |
Bug 1342553 - Part 0.2: Support JSOP_CHECKISCALLABLE in JIT
Issue #74
Diffstat (limited to 'js/src/jit/VMFunctions.cpp')
-rw-r--r-- | js/src/jit/VMFunctions.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/js/src/jit/VMFunctions.cpp b/js/src/jit/VMFunctions.cpp index 4edbc3c83..77b9e3647 100644 --- a/js/src/jit/VMFunctions.cpp +++ b/js/src/jit/VMFunctions.cpp @@ -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 |