| 380 | } |
| 381 | |
| 382 | private static Object store( StoreNode st ) { |
| 383 | if( st._name.equals("#") ) |
| 384 | return "$mem"; // Eval stores the length in the java object[], no need to set it now |
| 385 | TypeMemPtr tmp = (TypeMemPtr)st.ptr()._type; |
| 386 | Object[] fs = (Object[])val(st.ptr()); |
| 387 | int idx = tmp._obj.isAry() |
| 388 | ? offToIdx(x(st.off()),tmp._obj) |
| 389 | : tmp._obj.find(st._name); |
| 390 | Object val = val(st.val()); |
| 391 | fs[idx] = val; |
| 392 | return "$mem"; |
| 393 | } |
| 394 | |
| 395 | |
| 396 | // ------------------------------------------------------------------------ |