popContext method

void popContext()

Implementation

void popContext() {
  // Our top context is done; pop it off, and copy the return value in temp 0.
  if (stack.length == 1) {
    return; // down to just the global stack (which we keep)
  }
  var context = stack.removeLast();
  final result = context.getTemp(0, null);
  final storage = context.resultStorage;
  context = stack.last;
  context.storeValue(storage, result);
}