Skip to content

Commit

Permalink
Update rust-mozjs
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonSapin committed Oct 16, 2017
1 parent 27239e1 commit 49e4540
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 12 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 12 additions & 11 deletions components/script/dom/bindings/codegen/CodegenRust.py
Expand Up @@ -3660,17 +3660,18 @@ def jitInfoInitializer(isTypedMethod):
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,
Expand Down

0 comments on commit 49e4540

Please sign in to comment.