MCPcopy Create free account
hub / github.com/SeaOfNodes/Simple / link

Method link

chapter18/src/main/java/com/seaofnodes/simple/CodeGen.java:102–105  ·  view source on GitHub ↗
( TypeFunPtr tfp )

Source from the content-addressed store, hash-verified

100
101 // Reverse from a constant function pointer to the IR function being called
102 public FunNode link( TypeFunPtr tfp ) {
103 assert tfp.isConstant();
104 return _linker.get(tfp.makeFrom(Type.BOTTOM));
105 }
106
107 public void link(FunNode fun) {
108 _linker.put(fun.sig().makeFrom(Type.BOTTOM),fun);

Callers 2

callMethod · 0.45
parseFunctionBodyMethod · 0.45

Calls 5

isConstantMethod · 0.45
getMethod · 0.45
makeFromMethod · 0.45
putMethod · 0.45
sigMethod · 0.45

Tested by 1

callMethod · 0.36