Mercurial > hg > truffle
comparison graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/calc/NegateNode.java @ 18644:47263ffe47bd
made lambdas stored in Nodes be Serializable
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Mon, 08 Dec 2014 14:34:07 +0100 |
parents | 45b45f902bed |
children | 290dc460feb3 |
comparison
equal
deleted
inserted
replaced
18643:3e71078c2efe | 18644:47263ffe47bd |
---|---|
20 * or visit www.oracle.com if you need additional information or have any | 20 * or visit www.oracle.com if you need additional information or have any |
21 * questions. | 21 * questions. |
22 */ | 22 */ |
23 package com.oracle.graal.nodes.calc; | 23 package com.oracle.graal.nodes.calc; |
24 | 24 |
25 import java.io.*; | |
26 import java.util.function.*; | |
27 | |
25 import com.oracle.graal.compiler.common.type.*; | 28 import com.oracle.graal.compiler.common.type.*; |
26 import com.oracle.graal.compiler.common.type.ArithmeticOpTable.UnaryOp.Neg; | 29 import com.oracle.graal.compiler.common.type.ArithmeticOpTable.*; |
30 import com.oracle.graal.compiler.common.type.ArithmeticOpTable.UnaryOp.*; | |
27 import com.oracle.graal.graph.spi.*; | 31 import com.oracle.graal.graph.spi.*; |
28 import com.oracle.graal.lir.gen.*; | 32 import com.oracle.graal.lir.gen.*; |
29 import com.oracle.graal.nodeinfo.*; | 33 import com.oracle.graal.nodeinfo.*; |
30 import com.oracle.graal.nodes.*; | 34 import com.oracle.graal.nodes.*; |
31 import com.oracle.graal.nodes.spi.*; | 35 import com.oracle.graal.nodes.spi.*; |
44 public static NegateNode create(ValueNode value) { | 48 public static NegateNode create(ValueNode value) { |
45 return new NegateNode(value); | 49 return new NegateNode(value); |
46 } | 50 } |
47 | 51 |
48 protected NegateNode(ValueNode value) { | 52 protected NegateNode(ValueNode value) { |
49 super(ArithmeticOpTable::getNeg, value); | 53 super((Function<ArithmeticOpTable, UnaryOp<Neg>> & Serializable) ArithmeticOpTable::getNeg, value); |
50 } | 54 } |
51 | 55 |
52 @Override | 56 @Override |
53 public ValueNode canonical(CanonicalizerTool tool, ValueNode forValue) { | 57 public ValueNode canonical(CanonicalizerTool tool, ValueNode forValue) { |
54 ValueNode ret = super.canonical(tool, forValue); | 58 ValueNode ret = super.canonical(tool, forValue); |