@@ -102,7 +102,7 @@ fn AssertGCPointerValid(bits: u64) {
102
102
103
103
#[ cfg( target_pointer_width = "32" ) ]
104
104
#[ inline( always) ]
105
- fn AssertIsGCPointerValid ( bits : u64 ) { }
105
+ fn AssertGCPointerValid ( bits : u64 ) { }
106
106
107
107
#[ cfg( target_pointer_width = "64" ) ]
108
108
#[ inline( always) ]
@@ -269,7 +269,6 @@ impl JSVal {
269
269
}
270
270
271
271
#[ inline( always) ]
272
- #[ cfg( target_pointer_width = "64" ) ]
273
272
pub fn is_bigint ( & self ) -> bool {
274
273
self . toTag ( ) == ValueTag :: BIGINT as u64
275
274
}
@@ -358,27 +357,26 @@ impl JSVal {
358
357
}
359
358
360
359
#[ inline( always) ]
361
- #[ cfg( target_pointer_width = "64" ) ]
362
360
pub fn to_string ( & self ) -> * mut JSString {
363
361
assert ! ( self . is_string( ) ) ;
364
362
let ptrBits = self . payload ( ) ;
365
- AssertGCPointerAlignment ( ptrBits) ;
363
+ AssertGCPointerAlignment ( ptrBits as u64 ) ;
366
364
ptrBits as usize as * mut JSString
367
365
}
368
366
369
367
#[ inline( always) ]
370
368
pub fn to_symbol ( & self ) -> * mut Symbol {
371
369
assert ! ( self . is_symbol( ) ) ;
372
370
let ptrBits = self . payload ( ) ;
373
- AssertGCPointerAlignment ( ptrBits) ;
371
+ AssertGCPointerAlignment ( ptrBits as u64 ) ;
374
372
ptrBits as usize as * mut Symbol
375
373
}
376
374
377
375
#[ inline( always) ]
378
376
pub fn to_bigint ( & self ) -> * mut BigInt {
379
377
assert ! ( self . is_bigint( ) ) ;
380
378
let ptrBits = self . payload ( ) ;
381
- AssertGCPointerAlignment ( ptrBits) ;
379
+ AssertGCPointerAlignment ( ptrBits as u64 ) ;
382
380
ptrBits as usize as * mut BigInt
383
381
}
384
382
@@ -409,12 +407,11 @@ impl JSVal {
409
407
pub fn to_gcthing ( & self ) -> * mut c_void {
410
408
assert ! ( self . is_gcthing( ) ) ;
411
409
let ptrBits = self . payload ( ) ;
412
- AssertGCPointerAlignment ( ptrBits) ;
410
+ AssertGCPointerAlignment ( ptrBits as u64 ) ;
413
411
ptrBits as * mut c_void
414
412
}
415
413
416
414
#[ inline( always) ]
417
- #[ cfg( target_pointer_width = "64" ) ]
418
415
pub fn to_boolean ( & self ) -> bool {
419
416
assert ! ( self . is_boolean( ) ) ;
420
417
self . payload ( ) != 0
0 commit comments