changeset 8939:8fab4f4fde34

Make static the private calls of the WriteBarrierAdditionPhase
author Christos Kotselidis <christos.kotselidis@oracle.com>
date Tue, 09 Apr 2013 11:55:19 +0200
parents 78bf450b45b9
children f5aa4361a1fc f065dc502356 7ef66078d837 da5140eedfa1
files graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/phases/WriteBarrierAdditionPhase.java
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/phases/WriteBarrierAdditionPhase.java	Tue Apr 09 11:38:46 2013 +0200
+++ b/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/phases/WriteBarrierAdditionPhase.java	Tue Apr 09 11:55:19 2013 +0200
@@ -42,14 +42,14 @@
         }
     }
 
-    private void addWriteNodeBarriers(WriteNode node, StructuredGraph graph) {
+    private static void addWriteNodeBarriers(WriteNode node, StructuredGraph graph) {
         if (node.needsWriteBarrier()) {
             graph.addAfterFixed(node, graph.add(new SerialWriteBarrier(node.object(), node.location(), node.usePreciseWriteBarriers())));
         }
 
     }
 
-    private void addCASBarriers(CompareAndSwapNode node, StructuredGraph graph) {
+    private static void addCASBarriers(CompareAndSwapNode node, StructuredGraph graph) {
         if (node.needsWriteBarrier()) {
             LocationNode location = IndexedLocationNode.create(LocationNode.ANY_LOCATION, node.expected().kind(), node.displacement(), node.offset(), graph, 1);
             graph.addAfterFixed(node, graph.add(new SerialWriteBarrier(node.object(), location, node.usePreciseWriteBarriers())));