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

Method equals

chapter20/src/main/java/com/seaofnodes/simple/node/Node.java:572–582  ·  view source on GitHub ↗
( Object o )

Source from the content-addressed store, hash-verified

570
571 /** Is this Node Memory related */
572 public boolean isMem() { return false; }
573
574 // Semantic change to the graph (so NOT a peephole), used by the Parser.
575 // If any input is a float, flip to a float-flavored opcode and widen any
576 // non-float input.
577 public final Node widen() {
578 if( !hasFloatInput() ) return this;
579 Node flt = copyF();
580 if( flt==null ) return this;
581 for( int i=1; i<nIns(); i++ )
582 flt.setDef(i, in(i)._type instanceof TypeFloat ? in(i) : new ToFloatNode(in(i)).peephole());
583 kill();
584 return flt;
585 }

Callers 6

_print1Method · 0.45
idealizeMethod · 0.45
findMethod · 0.45
defineMethod · 0.45
idealizeMethod · 0.45
mlabelMethod · 0.45

Calls 3

inMethod · 0.95
eqMethod · 0.95
sizeMethod · 0.45

Tested by

no test coverage detected