aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Cargo.lock2
-rw-r--r--components/script/dom/bindings/codegen/CodegenRust.py23
2 files changed, 13 insertions, 12 deletions
diff --git a/Cargo.lock b/Cargo.lock
index d58133418bf..aeab948428a 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1457,7 +1457,7 @@ dependencies = [
[[package]]
name = "js"
version = "0.1.6"
-source = "git+https://github.com/servo/rust-mozjs#3de4ff3d52361a47a17e3b4fcb02c779b99d93d4"
+source = "git+https://github.com/servo/rust-mozjs#cdb9570900b74cf4e0ba129eeb8bf527cee3ddb5"
dependencies = [
"cmake 0.1.22 (registry+https://github.com/rust-lang/crates.io-index)",
"heapsize 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)",
diff --git a/components/script/dom/bindings/codegen/CodegenRust.py b/components/script/dom/bindings/codegen/CodegenRust.py
index feb39a532f6..d0b5e678db8 100644
--- a/components/script/dom/bindings/codegen/CodegenRust.py
+++ b/components/script/dom/bindings/codegen/CodegenRust.py
@@ -3660,17 +3660,18 @@ class CGMemberJITInfo(CGThing):
call: ${opName} as *const os::raw::c_void,
protoID: PrototypeList::ID::${name} as u16,
depth: ${depth},
- _bitfield_1:
- ((JSJitInfo_OpType::${opType} as u8 as u32) << 0) |
- ((JSJitInfo_AliasSet::${aliasSet} as u8 as u32) << 4) |
- ((JSValueType::${returnType} as u8 as u32) << 8) |
- ((${isInfallible} as u32) << 16) |
- ((${isMovable} as u32) << 17) |
- ((${isEliminatable} as u32) << 18) |
- ((${isAlwaysInSlot} as u32) << 19) |
- ((${isLazilyCachedInSlot} as u32) << 20) |
- ((${isTypedMethod} as u32) << 21) |
- ((${slotIndex} as u32) << 22)
+ _bitfield_1: new_jsjitinfo_bitfield_1!(
+ JSJitInfo_OpType::${opType} as u8,
+ JSJitInfo_AliasSet::${aliasSet} as u8,
+ JSValueType::${returnType} as u8,
+ ${isInfallible},
+ ${isMovable},
+ ${isEliminatable},
+ ${isAlwaysInSlot},
+ ${isLazilyCachedInSlot},
+ ${isTypedMethod},
+ ${slotIndex},
+ ),
}
""",
opName=opName,