Mercurial > hg > truffle
changeset 18645:f08d320a77d0
use deterministic iteration-order data structures
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Mon, 08 Dec 2014 14:35:38 +0100 |
parents | 47263ffe47bd |
children | 290dc460feb3 |
files | graal/com.oracle.graal.compiler/src/com/oracle/graal/compiler/gen/PhiResolver.java graal/com.oracle.graal.hotspot.amd64/src/com/oracle/graal/hotspot/amd64/AMD64HotSpotLIRGenerationResult.java |
diffstat | 2 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/graal/com.oracle.graal.compiler/src/com/oracle/graal/compiler/gen/PhiResolver.java Mon Dec 08 14:34:07 2014 +0100 +++ b/graal/com.oracle.graal.compiler/src/com/oracle/graal/compiler/gen/PhiResolver.java Mon Dec 08 14:35:38 2014 +0100 @@ -29,6 +29,7 @@ import java.util.*; import com.oracle.graal.api.meta.*; +import com.oracle.graal.compiler.common.remote.*; import com.oracle.graal.lir.gen.*; import com.oracle.graal.nodes.*; @@ -119,7 +120,7 @@ /** * Maps operands to nodes. */ - private final HashMap<Value, PhiResolverNode> operandToNodeMap = new HashMap<>(); + private final HashMap<Value, PhiResolverNode> operandToNodeMap = Context.newMap(); public PhiResolver(LIRGeneratorTool gen) { this.gen = gen;
--- a/graal/com.oracle.graal.hotspot.amd64/src/com/oracle/graal/hotspot/amd64/AMD64HotSpotLIRGenerationResult.java Mon Dec 08 14:34:07 2014 +0100 +++ b/graal/com.oracle.graal.hotspot.amd64/src/com/oracle/graal/hotspot/amd64/AMD64HotSpotLIRGenerationResult.java Mon Dec 08 14:35:38 2014 +0100 @@ -25,6 +25,7 @@ import java.util.*; import com.oracle.graal.api.code.*; +import com.oracle.graal.compiler.common.remote.*; import com.oracle.graal.hotspot.stubs.*; import com.oracle.graal.lir.*; import com.oracle.graal.lir.StandardOp.SaveRegistersOp; @@ -45,7 +46,7 @@ * Map from debug infos that need to be updated with callee save information to the operations * that provide the information. */ - private Map<LIRFrameState, SaveRegistersOp> calleeSaveInfo = new HashMap<>(); + private Map<LIRFrameState, SaveRegistersOp> calleeSaveInfo = Context.newMap(); public AMD64HotSpotLIRGenerationResult(LIR lir, FrameMapBuilder frameMapBuilder, Object stub) { super(lir, frameMapBuilder);