diff graal/com.oracle.max.graal.compiler/src/com/oracle/max/graal/compiler/GraalCompilation.java @ 4142:bc8527f3071c

Adjust code base to new level of warnings.
author Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
date Sun, 18 Dec 2011 05:24:06 +0100
parents e233f5660da4
children f5328dda9714
line wrap: on
line diff
--- a/graal/com.oracle.max.graal.compiler/src/com/oracle/max/graal/compiler/GraalCompilation.java	Sun Dec 18 05:23:52 2011 +0100
+++ b/graal/com.oracle.max.graal.compiler/src/com/oracle/max/graal/compiler/GraalCompilation.java	Sun Dec 18 05:24:06 2011 +0100
@@ -138,7 +138,7 @@
         AbstractAssembler masm = compiler.backend.newAssembler(registerConfig);
         TargetMethodAssembler tasm = new TargetMethodAssembler(this, masm);
         tasm.setFrameSize(frameMap.frameSize());
-        tasm.targetMethod.setCustomStackAreaOffset(frameMap.offsetToCustomArea());
+        tasm.targetMethod.setCustomStackAreaOffset(FrameMap.offsetToCustomArea());
         return tasm;
     }
 
@@ -275,7 +275,7 @@
             }
 
             List<Block> blocks = schedule.getBlocks();
-            NodeMap<LIRBlock> valueToBlock = new NodeMap<LIRBlock>(graph);
+            NodeMap<LIRBlock> valueToBlock = new NodeMap<>(graph);
             for (Block b : blocks) {
                 for (Node i : b.getInstructions()) {
                     valueToBlock.set(i, (LIRBlock) b);
@@ -315,7 +315,7 @@
         }
     }
 
-    public void initFrameMap(int numberOfLocks) {
+    public void initFrameMap() {
         frameMap = this.compiler.backend.newFrameMap(this, method);
     }
 
@@ -327,7 +327,7 @@
                 nodeOperands = graph.createNodeMap();
                 LIRGenerator lirGenerator = null;
                 try {
-                    initFrameMap(maxLocks());
+                    initFrameMap();
 
                     lirGenerator = compiler.backend.newLIRGenerator(this, xir);
 
@@ -406,9 +406,9 @@
         return compiler.context;
     }
 
-    public void printGraph(String phase, Graph graph) {
+    public void printGraph(String phase, Graph printedGraph) {
         if (context().isObserved()) {
-            context().observable.fireCompilationEvent(phase, this, graph);
+            context().observable.fireCompilationEvent(phase, this, printedGraph);
         }
     }
 }