aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom
diff options
context:
space:
mode:
authorSimon Sapin <simon.sapin@exyr.org>2017-10-14 14:05:05 +0200
committerSimon Sapin <simon.sapin@exyr.org>2017-10-16 20:20:21 +0200
commit49e4540ece8641afcb6534a9c3b74e88895f5447 (patch)
tree974c9a6d47793f22b93c205029b558e026fd354f /components/script/dom
parent27239e1123303129bb48d976e71bb79aad3fa5e3 (diff)
downloadservo-49e4540ece8641afcb6534a9c3b74e88895f5447.tar.gz
servo-49e4540ece8641afcb6534a9c3b74e88895f5447.zip
Update rust-mozjs
Diffstat (limited to 'components/script/dom')
-rw-r--r--components/script/dom/bindings/codegen/CodegenRust.py23
1 files changed, 12 insertions, 11 deletions
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,