summaryrefslogtreecommitdiffstats
path: root/js/src/jit/GenerateCacheIRFiles.py
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/jit/GenerateCacheIRFiles.py')
-rw-r--r--js/src/jit/GenerateCacheIRFiles.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/js/src/jit/GenerateCacheIRFiles.py b/js/src/jit/GenerateCacheIRFiles.py
index d71c70b753..9baf3b7a27 100644
--- a/js/src/jit/GenerateCacheIRFiles.py
+++ b/js/src/jit/GenerateCacheIRFiles.py
@@ -79,6 +79,8 @@ arg_writer_info = {
"DoubleField": ("double", "writeDoubleField"),
"AllocSiteField": ("gc::AllocSite*", "writeAllocSiteField"),
"JSOpImm": ("JSOp", "writeJSOpImm"),
+ "JSTypeImm": ("JSType", "writeJSTypeImm"),
+ "TypeofEqOperandImm": ("TypeofEqOperand", "writeTypeofEqOperandImm"),
"BoolImm": ("bool", "writeBoolImm"),
"ByteImm": ("uint32_t", "writeByteImm"), # uint32_t to enable fits-in-byte asserts.
"GuardClassKindImm": ("GuardClassKind", "writeGuardClassKindImm"),
@@ -182,6 +184,8 @@ arg_reader_info = {
"DoubleField": ("uint32_t", "Offset", "reader.stubOffset()"),
"AllocSiteField": ("uint32_t", "Offset", "reader.stubOffset()"),
"JSOpImm": ("JSOp", "", "reader.jsop()"),
+ "JSTypeImm": ("JSType", "", "reader.jstype()"),
+ "TypeofEqOperandImm": ("TypeofEqOperand", "", "reader.typeofEqOperand()"),
"BoolImm": ("bool", "", "reader.readBool()"),
"ByteImm": ("uint8_t", "", "reader.readByte()"),
"GuardClassKindImm": ("GuardClassKind", "", "reader.guardClassKind()"),
@@ -275,6 +279,8 @@ arg_spewer_method = {
"DoubleField": "spewField",
"AllocSiteField": "spewField",
"JSOpImm": "spewJSOpImm",
+ "JSTypeImm": "spewJSTypeImm",
+ "TypeofEqOperandImm": "spewTypeofEqOperandImm",
"BoolImm": "spewBoolImm",
"ByteImm": "spewByteImm",
"GuardClassKindImm": "spewGuardClassKindImm",
@@ -420,6 +426,8 @@ arg_length = {
"ScalarTypeImm": 1,
"UnaryMathFunctionImm": 1,
"JSOpImm": 1,
+ "JSTypeImm": 1,
+ "TypeofEqOperandImm": 1,
"ValueTypeImm": 1,
"GuardClassKindImm": 1,
"ArrayBufferViewKindImm": 1,