MCPcopy Index your code
hub / github.com/clojure/clojure / emitListAsObjectArray

Method emitListAsObjectArray

src/jvm/clojure/lang/Compiler.java:5270–5281  ·  view source on GitHub ↗
(Object value, GeneratorAdapter gen)

Source from the content-addressed store, hash-verified

5268 }
5269
5270 void emitListAsObjectArray(Object value, GeneratorAdapter gen){
5271 gen.push(((List) value).size());
5272 gen.newArray(OBJECT_TYPE);
5273 int i = 0;
5274 for(Iterator it = ((List) value).iterator(); it.hasNext(); i++)
5275 {
5276 gen.dup();
5277 gen.push(i);
5278 emitValue(it.next(), gen);
5279 gen.arrayStore(OBJECT_TYPE);
5280 }
5281 }
5282
5283 void emitValue(Object value, GeneratorAdapter gen){
5284 boolean partial = true;

Callers 1

emitValueMethod · 0.95

Calls 9

emitValueMethod · 0.95
newArrayMethod · 0.80
dupMethod · 0.80
arrayStoreMethod · 0.80
iteratorMethod · 0.65
nextMethod · 0.65
pushMethod · 0.45
sizeMethod · 0.45
hasNextMethod · 0.45

Tested by

no test coverage detected