Skip to content

Commit

Permalink
install var callsite for AFunctions only
Browse files Browse the repository at this point in the history
  • Loading branch information
richhickey committed Dec 1, 2009
1 parent e13d8a4 commit 53697c9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/jvm/clojure/lang/Compiler.java
Expand Up @@ -3401,6 +3401,9 @@ void compile(String superName, String[] interfaceNames, boolean oneTimeUse) thro
clinitgen.ifZCmp(GeneratorAdapter.EQ,skipLabel);

clinitgen.invokeVirtual(VAR_TYPE,Method.getMethod("Object getRoot()"));
clinitgen.dup();
clinitgen.instanceOf(AFUNCTION_TYPE);
clinitgen.ifZCmp(GeneratorAdapter.EQ,skipLabel);
clinitgen.checkCast(IFN_TYPE);
clinitgen.putStatic(objtype, varCallsiteName(i), IFN_TYPE);
clinitgen.goTo(endLabel);
Expand Down

0 comments on commit 53697c9

Please sign in to comment.