| 367 | } |
| 368 | |
| 369 | private static Object store( StoreNode st ) { |
| 370 | if( st._name.equals("#") ) |
| 371 | return "$mem"; // Eval stores the length in the java object[], no need to set it now |
| 372 | TypeMemPtr tmp = (TypeMemPtr)st.ptr()._type; |
| 373 | Object[] fs = (Object[])val(st.ptr()); |
| 374 | int idx = tmp._obj.isAry() |
| 375 | ? offToIdx(x(st.off()),tmp._obj) |
| 376 | : tmp._obj.find(st._name); |
| 377 | Object val = val(st.val()); |
| 378 | fs[idx] = val; |
| 379 | return "$mem"; |
| 380 | } |
| 381 | |
| 382 | |
| 383 | // ------------------------------------------------------------------------ |