( long off, TypeStruct t)
| 312 | |
| 313 | // Convert array size to array element count |
| 314 | private static int offToIdx( long off, TypeStruct t) { |
| 315 | off -= t.aryBase(); |
| 316 | int scale = t.aryScale(); |
| 317 | long mask = (1L << scale)-1; |
| 318 | assert (off & mask) == 0; |
| 319 | return (int)(off>>scale); |
| 320 | } |
| 321 | |
| 322 | // Builds and returns a pointer Object |
| 323 | private static Object alloc(NewNode alloc) { |