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

Method emit

src/jvm/clojure/lang/Compiler.java:3741–3758  ·  view source on GitHub ↗
(C context, ObjExpr objx, GeneratorAdapter gen)

Source from the content-addressed store, hash-verified

3739 }
3740
3741 public void emit(C context, ObjExpr objx, GeneratorAdapter gen){
3742 if(args.count() <= Tuple.MAX_SIZE)
3743 {
3744 for(int i = 0; i < args.count(); i++) {
3745 ((Expr) args.nth(i)).emit(C.EXPRESSION, objx, gen);
3746 }
3747 gen.invokeStatic(TUPLE_TYPE, createTupleMethods[args.count()]);
3748 }
3749
3750 else
3751 {
3752 MethodExpr.emitArgsAsArray(args, objx, gen);
3753 gen.invokeStatic(RT_TYPE, vectorMethod);
3754 }
3755
3756 if(context == C.STATEMENT)
3757 gen.pop();
3758 }
3759
3760 public boolean hasJavaClass() {
3761 return true;

Callers

nothing calls this directly

Calls 6

emitArgsAsArrayMethod · 0.95
countMethod · 0.65
emitMethod · 0.65
nthMethod · 0.65
popMethod · 0.65
invokeStaticMethod · 0.45

Tested by

no test coverage detected