mirror of
https://github.com/servo/servo.git
synced 2025-08-04 21:20:23 +01:00
Don’t rely on unstable 'const fn's in rust-mozjs, so we can remove them.
This commit is contained in:
parent
a819cfb0fa
commit
3bb76a5be5
1 changed files with 10 additions and 12 deletions
|
@ -3661,18 +3661,16 @@ class CGMemberJITInfo(CGThing):
|
||||||
protoID: PrototypeList::ID::${name} as u16,
|
protoID: PrototypeList::ID::${name} as u16,
|
||||||
depth: ${depth},
|
depth: ${depth},
|
||||||
_bitfield_1:
|
_bitfield_1:
|
||||||
JSJitInfo::new_bitfield_1(
|
((JSJitInfo_OpType::${opType} as u8 as u32) << 0) |
|
||||||
JSJitInfo_OpType::${opType} as u8,
|
((JSJitInfo_AliasSet::${aliasSet} as u8 as u32) << 4) |
|
||||||
JSJitInfo_AliasSet::${aliasSet} as u8,
|
((JSValueType::${returnType} as u8 as u32) << 8) |
|
||||||
JSValueType::${returnType} as u8,
|
((${isInfallible} as u32) << 16) |
|
||||||
${isInfallible},
|
((${isMovable} as u32) << 17) |
|
||||||
${isMovable},
|
((${isEliminatable} as u32) << 18) |
|
||||||
${isEliminatable},
|
((${isAlwaysInSlot} as u32) << 19) |
|
||||||
${isAlwaysInSlot},
|
((${isLazilyCachedInSlot} as u32) << 20) |
|
||||||
${isLazilyCachedInSlot},
|
((${isTypedMethod} as u32) << 21) |
|
||||||
${isTypedMethod},
|
((${slotIndex} as u32) << 22)
|
||||||
${slotIndex} as u16,
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
""",
|
""",
|
||||||
opName=opName,
|
opName=opName,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue