@@ -1526,10 +1526,10 @@ public static SixModelObject create(SixModelObject obj, ThreadContext tc) {
1526
1526
return res ;
1527
1527
}
1528
1528
public static SixModelObject clone (SixModelObject obj , ThreadContext tc ) {
1529
- return obj .clone (tc );
1529
+ return decont ( obj , tc ) .clone (tc );
1530
1530
}
1531
1531
public static long isconcrete (SixModelObject obj , ThreadContext tc ) {
1532
- return obj == null || obj instanceof TypeObject ? 0 : 1 ;
1532
+ return obj == null || decont ( obj , tc ) instanceof TypeObject ? 0 : 1 ;
1533
1533
}
1534
1534
public static SixModelObject knowhow (ThreadContext tc ) {
1535
1535
return tc .gc .KnowHOW ;
@@ -1733,24 +1733,24 @@ public static SixModelObject box_s(String value, SixModelObject type, ThreadCont
1733
1733
return res ;
1734
1734
}
1735
1735
public static long unbox_i (SixModelObject obj , ThreadContext tc ) {
1736
- return obj .get_int (tc );
1736
+ return decont ( obj , tc ) .get_int (tc );
1737
1737
}
1738
1738
public static double unbox_n (SixModelObject obj , ThreadContext tc ) {
1739
- return obj .get_num (tc );
1739
+ return decont ( obj , tc ) .get_num (tc );
1740
1740
}
1741
1741
public static String unbox_s (SixModelObject obj , ThreadContext tc ) {
1742
- return obj .get_str (tc );
1742
+ return decont ( obj , tc ) .get_str (tc );
1743
1743
}
1744
1744
public static long isint (SixModelObject obj , ThreadContext tc ) {
1745
- StorageSpec ss = obj .st .REPR .get_storage_spec (tc , obj .st );
1745
+ StorageSpec ss = decont ( obj , tc ) .st .REPR .get_storage_spec (tc , obj .st );
1746
1746
return (ss .can_box & StorageSpec .CAN_BOX_INT ) == 0 ? 0 : 1 ;
1747
1747
}
1748
1748
public static long isnum (SixModelObject obj , ThreadContext tc ) {
1749
- StorageSpec ss = obj .st .REPR .get_storage_spec (tc , obj .st );
1749
+ StorageSpec ss = decont ( obj , tc ) .st .REPR .get_storage_spec (tc , obj .st );
1750
1750
return (ss .can_box & StorageSpec .CAN_BOX_NUM ) == 0 ? 0 : 1 ;
1751
1751
}
1752
1752
public static long isstr (SixModelObject obj , ThreadContext tc ) {
1753
- StorageSpec ss = obj .st .REPR .get_storage_spec (tc , obj .st );
1753
+ StorageSpec ss = decont ( obj , tc ) .st .REPR .get_storage_spec (tc , obj .st );
1754
1754
return (ss .can_box & StorageSpec .CAN_BOX_STR ) == 0 ? 0 : 1 ;
1755
1755
}
1756
1756
0 commit comments