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

Method emitKeywordCallsites

src/jvm/clojure/lang/Compiler.java:5249–5262  ·  view source on GitHub ↗
(GeneratorAdapter clinitgen)

Source from the content-addressed store, hash-verified

5247 }
5248
5249 private void emitKeywordCallsites(GeneratorAdapter clinitgen){
5250 for(int i=0;i<keywordCallsites.count();i++)
5251 {
5252 Keyword k = (Keyword) keywordCallsites.nth(i);
5253 clinitgen.newInstance(KEYWORD_LOOKUPSITE_TYPE);
5254 clinitgen.dup();
5255 emitValue(k,clinitgen);
5256 clinitgen.invokeConstructor(KEYWORD_LOOKUPSITE_TYPE,
5257 Method.getMethod("void <init>(clojure.lang.Keyword)"));
5258 clinitgen.dup();
5259 clinitgen.putStatic(objtype, siteNameStatic(i), KEYWORD_LOOKUPSITE_TYPE);
5260 clinitgen.putStatic(objtype, thunkNameStatic(i), ILOOKUP_THUNK_TYPE);
5261 }
5262 }
5263
5264 protected void emitStatics(ClassVisitor gen){
5265 }

Callers 1

compileMethod · 0.95

Calls 10

emitValueMethod · 0.95
getMethodMethod · 0.95
siteNameStaticMethod · 0.95
thunkNameStaticMethod · 0.95
newInstanceMethod · 0.80
dupMethod · 0.80
putStaticMethod · 0.80
countMethod · 0.65
nthMethod · 0.65
invokeConstructorMethod · 0.45

Tested by

no test coverage detected