summaryrefslogtreecommitdiffstats
path: root/js/src/jit/CacheIRWriter.h
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/jit/CacheIRWriter.h')
-rw-r--r--js/src/jit/CacheIRWriter.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/js/src/jit/CacheIRWriter.h b/js/src/jit/CacheIRWriter.h
index 6a32885d7c..d888012134 100644
--- a/js/src/jit/CacheIRWriter.h
+++ b/js/src/jit/CacheIRWriter.h
@@ -43,6 +43,7 @@
#include "vm/Opcodes.h"
#include "vm/RealmFuses.h"
#include "vm/Shape.h"
+#include "vm/TypeofEqOperand.h" // TypeofEqOperand
#include "wasm/WasmConstants.h"
#include "wasm/WasmValType.h"
@@ -257,6 +258,9 @@ class MOZ_RAII CacheIRWriter : public JS::CustomAutoRooter {
static_assert(sizeof(JSOp) == sizeof(uint8_t), "JSOp must fit in a byte");
buffer_.writeByte(uint8_t(op));
}
+ void writeTypeofEqOperandImm(TypeofEqOperand operand) {
+ buffer_.writeByte(operand.rawValue());
+ }
void writeGuardClassKindImm(GuardClassKind kind) {
static_assert(sizeof(GuardClassKind) == sizeof(uint8_t),
"GuardClassKind must fit in a byte");