MCPcopy Create free account
hub / github.com/SeaOfNodes/Simple / store

Method store

chapter18/src/test/java/com/seaofnodes/simple/Eval2.java:359–368  ·  view source on GitHub ↗
( StoreNode st )

Source from the content-addressed store, hash-verified

357 }
358
359 private static Object store( StoreNode st ) {
360 TypeMemPtr tmp = (TypeMemPtr)st.ptr()._type;
361 Object[] fs = (Object[])val(st.ptr());
362 int idx = tmp._obj.isAry()
363 ? offToIdx(x(st.off()),tmp._obj)
364 : tmp._obj.find(st._name);
365 Object val = val(st.val());
366 fs[idx] = val;
367 return "$mem";
368 }
369
370
371 // ------------------------------------------------------------------------

Callers 1

computeMethod · 0.95

Calls 7

valMethod · 0.95
offToIdxMethod · 0.95
xMethod · 0.95
ptrMethod · 0.45
isAryMethod · 0.45
offMethod · 0.45
findMethod · 0.45

Tested by

no test coverage detected