Mercurial > hg > truffle
comparison graal/com.oracle.graal.compiler.amd64/src/com/oracle/graal/compiler/amd64/AMD64LIRGenerator.java @ 9742:cff1e11941c0
moved temporaries from CallingConvention to ForeignCallLinkage
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Thu, 16 May 2013 18:05:30 +0200 |
parents | 4cd4926ec683 |
children | 8342b10b9cc3 |
comparison
equal
deleted
inserted
replaced
9741:b27184f5f66b | 9742:cff1e11941c0 |
---|---|
782 append(new MembarOp(necessaryBarriers)); | 782 append(new MembarOp(necessaryBarriers)); |
783 } | 783 } |
784 } | 784 } |
785 | 785 |
786 @Override | 786 @Override |
787 protected void emitForeignCall(ForeignCallLinkage callTarget, Value result, Value[] arguments, Value[] temps, LIRFrameState info) { | 787 protected void emitForeignCall(ForeignCallLinkage linkage, Value result, Value[] arguments, Value[] temps, LIRFrameState info) { |
788 | 788 long maxOffset = linkage.getMaxCallTargetOffset(); |
789 long maxOffset = callTarget.getMaxCallTargetOffset(); | |
790 if (maxOffset != (int) maxOffset) { | 789 if (maxOffset != (int) maxOffset) { |
791 append(new AMD64Call.DirectFarRuntimeCallOp(this, callTarget, result, arguments, temps, info)); | 790 append(new AMD64Call.DirectFarRuntimeCallOp(this, linkage, result, arguments, temps, info)); |
792 } else { | 791 } else { |
793 append(new AMD64Call.DirectNearRuntimeCallOp(callTarget, result, arguments, temps, info)); | 792 append(new AMD64Call.DirectNearRuntimeCallOp(linkage, result, arguments, temps, info)); |
794 } | 793 } |
795 } | 794 } |
796 | 795 |
797 @Override | 796 @Override |
798 public void emitBitCount(Variable result, Value value) { | 797 public void emitBitCount(Variable result, Value value) { |