final TypedValue result = frame.stack().pop();
Assert.assertTrue(frame.stack().isEmpty());
return result;
}
private static List<TypedValue> execute(ICallable<TypedValue> f, OptionalInt argCount, int rets, TypedValue... values) {
<BUG>final Frame<TypedValue> frame = FrameFactory.createTopFrame();
for (TypedValue v : values)
frame.stack().push(v);</BUG>
f.call(frame, argCount, OptionalInt.of(rets));
List<TypedValue> results = Lists.newArrayList();

final TypedValue result = frame.stack().pop();
Assert.assertTrue(frame.stack().isEmpty());
return result;
}
private static List<TypedValue> execute(ICallable<TypedValue> f, OptionalInt argCount, int rets, TypedValue... values) {
final Frame<TypedValue> frame = FrameFactory.createTopFrame();
frame.stack().pushAll(Arrays.asList(values));
f.call(frame, argCount, OptionalInt.of(rets));
List<TypedValue> results = Lists.newArrayList();
