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