Mercurial > hg > graal-jvmci-8
comparison graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/meta/HotSpotRuntime.java @ 10821:0910c930c66e
Method and variables' renaming
author | Christos Kotselidis <christos.kotselidis@oracle.com> |
---|---|
date | Fri, 19 Jul 2013 22:10:48 +0200 |
parents | 4bfbd4be6e7a |
children | b05e1ff3aac0 |
comparison
equal
deleted
inserted
replaced
10819:02222bffbe43 | 10821:0910c930c66e |
---|---|
580 CompareAndSwapNode cas = (CompareAndSwapNode) n; | 580 CompareAndSwapNode cas = (CompareAndSwapNode) n; |
581 LocationNode location = IndexedLocationNode.create(ANY_LOCATION, cas.expected().kind(), cas.displacement(), cas.offset(), graph, 1); | 581 LocationNode location = IndexedLocationNode.create(ANY_LOCATION, cas.expected().kind(), cas.displacement(), cas.offset(), graph, 1); |
582 cas.setLocation(location); | 582 cas.setLocation(location); |
583 cas.setWriteBarrierType(getCompareAndSwapBarrier(cas)); | 583 cas.setWriteBarrierType(getCompareAndSwapBarrier(cas)); |
584 if (cas.expected().kind() == Kind.Object) { | 584 if (cas.expected().kind() == Kind.Object) { |
585 cas.setCompress(); | 585 cas.setCompressible(); |
586 } | 586 } |
587 } else if (n instanceof LoadIndexedNode) { | 587 } else if (n instanceof LoadIndexedNode) { |
588 LoadIndexedNode loadIndexed = (LoadIndexedNode) n; | 588 LoadIndexedNode loadIndexed = (LoadIndexedNode) n; |
589 GuardingNode boundsCheck = createBoundsCheck(loadIndexed, tool); | 589 GuardingNode boundsCheck = createBoundsCheck(loadIndexed, tool); |
590 Kind elementKind = loadIndexed.elementKind(); | 590 Kind elementKind = loadIndexed.elementKind(); |
626 graph.replaceFixedWithFixed(storeIndexed, memoryWrite); | 626 graph.replaceFixedWithFixed(storeIndexed, memoryWrite); |
627 | 627 |
628 } else if (n instanceof UnsafeLoadNode) { | 628 } else if (n instanceof UnsafeLoadNode) { |
629 UnsafeLoadNode load = (UnsafeLoadNode) n; | 629 UnsafeLoadNode load = (UnsafeLoadNode) n; |
630 assert load.kind() != Kind.Illegal; | 630 assert load.kind() != Kind.Illegal; |
631 boolean compress = (!load.object().isNullConstant() && load.accessKind() == Kind.Object); | 631 boolean compressible = (!load.object().isNullConstant() && load.accessKind() == Kind.Object); |
632 if (addReadBarrier(load, tool)) { | 632 if (addReadBarrier(load, tool)) { |
633 unsafeLoadSnippets.lower(load, tool); | 633 unsafeLoadSnippets.lower(load, tool); |
634 } else { | 634 } else { |
635 IndexedLocationNode location = IndexedLocationNode.create(ANY_LOCATION, load.accessKind(), load.displacement(), load.offset(), graph, 1); | 635 IndexedLocationNode location = IndexedLocationNode.create(ANY_LOCATION, load.accessKind(), load.displacement(), load.offset(), graph, 1); |
636 ReadNode memoryRead = graph.add(new ReadNode(load.object(), location, load.stamp(), WriteBarrierType.NONE, compress)); | 636 ReadNode memoryRead = graph.add(new ReadNode(load.object(), location, load.stamp(), WriteBarrierType.NONE, compressible)); |
637 // An unsafe read must not float outside its block otherwise | 637 // An unsafe read must not float outside its block otherwise |
638 // it may float above an explicit null check on its object. | 638 // it may float above an explicit null check on its object. |
639 memoryRead.setGuard(AbstractBeginNode.prevBegin(load)); | 639 memoryRead.setGuard(AbstractBeginNode.prevBegin(load)); |
640 graph.replaceFixedWithFixed(load, memoryRead); | 640 graph.replaceFixedWithFixed(load, memoryRead); |
641 } | 641 } |