diff options
Diffstat (limited to 'js/src/jit/CacheIRGenerator.h')
-rw-r--r-- | js/src/jit/CacheIRGenerator.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/js/src/jit/CacheIRGenerator.h b/js/src/jit/CacheIRGenerator.h index 2e15b2d8a6..778a49071e 100644 --- a/js/src/jit/CacheIRGenerator.h +++ b/js/src/jit/CacheIRGenerator.h @@ -460,6 +460,23 @@ class MOZ_RAII TypeOfIRGenerator : public IRGenerator { AttachDecision tryAttachStub(); }; +class MOZ_RAII TypeOfEqIRGenerator : public IRGenerator { + HandleValue val_; + JSType type_; + JSOp compareOp_; + + AttachDecision tryAttachPrimitive(ValOperandId valId); + AttachDecision tryAttachObject(ValOperandId valId); + void trackAttached(const char* name /* must be a C string literal */); + + public: + TypeOfEqIRGenerator(JSContext* cx, HandleScript, jsbytecode* pc, + ICState state, HandleValue value, JSType type, + JSOp compareOp); + + AttachDecision tryAttachStub(); +}; + class MOZ_RAII GetIteratorIRGenerator : public IRGenerator { HandleValue val_; |