From 3bb76a5be590a40451ead6c926d19ea2d705ad03 Mon Sep 17 00:00:00 2001 From: Simon Sapin Date: Thu, 12 Oct 2017 20:27:10 +0200 Subject: =?UTF-8?q?Don=E2=80=99t=20rely=20on=20unstable=20'const=20fn's=20?= =?UTF-8?q?in=20rust-mozjs,=20so=20we=20can=20remove=20them.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../script/dom/bindings/codegen/CodegenRust.py | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) (limited to 'components/script/dom/bindings/codegen/CodegenRust.py') diff --git a/components/script/dom/bindings/codegen/CodegenRust.py b/components/script/dom/bindings/codegen/CodegenRust.py index 5d4e66f71f4..feb39a532f6 100644 --- a/components/script/dom/bindings/codegen/CodegenRust.py +++ b/components/script/dom/bindings/codegen/CodegenRust.py @@ -3661,18 +3661,16 @@ class CGMemberJITInfo(CGThing): protoID: PrototypeList::ID::${name} as u16, depth: ${depth}, _bitfield_1: - JSJitInfo::new_bitfield_1( - JSJitInfo_OpType::${opType} as u8, - JSJitInfo_AliasSet::${aliasSet} as u8, - JSValueType::${returnType} as u8, - ${isInfallible}, - ${isMovable}, - ${isEliminatable}, - ${isAlwaysInSlot}, - ${isLazilyCachedInSlot}, - ${isTypedMethod}, - ${slotIndex} as u16, - ) + ((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) } """, opName=opName, -- cgit v1.2.3