mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 11:25:00 +00:00
Bug 1450311 - Update jsval.rs's glue code for JS::Value::layout going away and its former members being renamed. r=me on the dead-simple changes
--HG-- extra : rebase_source : 23bbbc8ae51aea90647edb6369f072ede435bfef
This commit is contained in:
parent
99a28341f3
commit
0b7bf2909d
@ -70,9 +70,7 @@ const JSVAL_PAYLOAD_MASK: u64 = 0x00007FFFFFFFFFFF;
|
||||
#[inline(always)]
|
||||
fn AsJSVal(val: u64) -> JS::Value {
|
||||
JS::Value {
|
||||
data: JS::Value_layout {
|
||||
asBits: val,
|
||||
}
|
||||
asBits_: val,
|
||||
}
|
||||
}
|
||||
|
||||
@ -192,7 +190,7 @@ pub fn PrivateValue(o: *const c_void) -> JS::Value {
|
||||
impl JS::Value {
|
||||
#[inline(always)]
|
||||
unsafe fn asBits(&self) -> u64 {
|
||||
self.data.asBits
|
||||
self.asBits_
|
||||
}
|
||||
|
||||
#[inline(always)]
|
||||
|
Loading…
Reference in New Issue
Block a user