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

Method make

chapter23/src/main/java/com/seaofnodes/simple/type/Field.java:55–60  ·  view source on GitHub ↗
( String fname, Type type, int alias, boolean xfinal, boolean one )

Source from the content-addressed store, hash-verified

53
54 // Make and intern with listed fields
55 public static Field make( String fname, Type type, int alias, boolean xfinal, boolean one ) {
56 Field f = malloc(fname,type,alias,xfinal,one);
57 Field f2 = f.intern();
58 if( f2==f ) return f;
59 return VISIT.isEmpty() ? f2.free(f) : f2.delayFree(f);
60 }
61 public Field makeFrom( Type type ) {
62 return type == _t ? this : make(_fname,type,_alias,_final,_one);
63 }

Callers 11

testTypeAdHocMethod · 0.95
testListMethod · 0.95
parseStructMethod · 0.95
makeFromMethod · 0.95
FieldClass · 0.95
xmeetMethod · 0.95
_makeROMethod · 0.95
glb2Method · 0.95
makeAryMethod · 0.95
TypeStructClass · 0.95
gatherMethod · 0.95

Calls 5

mallocMethod · 0.95
freeMethod · 0.95
internMethod · 0.45
isEmptyMethod · 0.45
delayFreeMethod · 0.45

Tested by 2

testTypeAdHocMethod · 0.76
testListMethod · 0.76