diff options
Diffstat (limited to 'js/src/jit/BaselineCodeGen.cpp')
-rw-r--r-- | js/src/jit/BaselineCodeGen.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/js/src/jit/BaselineCodeGen.cpp b/js/src/jit/BaselineCodeGen.cpp index 8ab65458ea..ae930a40eb 100644 --- a/js/src/jit/BaselineCodeGen.cpp +++ b/js/src/jit/BaselineCodeGen.cpp @@ -4544,6 +4544,18 @@ bool BaselineCodeGen<Handler>::emit_TypeofExpr() { } template <typename Handler> +bool BaselineCodeGen<Handler>::emit_TypeofEq() { + frame.popRegsAndSync(1); + + if (!emitNextIC()) { + return false; + } + + frame.push(R0); + return true; +} + +template <typename Handler> bool BaselineCodeGen<Handler>::emit_ThrowMsg() { prepareVMCall(); pushUint8BytecodeOperandArg(R2.scratchReg()); |