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