| 389 | } |
| 390 | |
| 391 | private static Object store( StoreNode st ) { |
| 392 | if( st._name.equals("#") ) |
| 393 | return "$mem"; // Eval stores the length in the java object[], no need to set it now |
| 394 | TypeMemPtr tmp = (TypeMemPtr)st.ptr()._type; |
| 395 | Object[] fs = (Object[])val(st.ptr()); |
| 396 | int idx = tmp._obj.isAry() |
| 397 | ? offToIdx(x(st.off()),tmp._obj) |
| 398 | : tmp._obj.find(st._name); |
| 399 | Object val = val(st.val()); |
| 400 | fs[idx] = val; |
| 401 | return "$mem"; |
| 402 | } |
| 403 | |
| 404 | |
| 405 | // ------------------------------------------------------------------------ |