Mercurial > hg > truffle
comparison graal/GraalCompiler/src/com/sun/c1x/graph/GraphBuilder.java @ 2669:405e7947a940
Fixed RegisterFinalizer stateBefore.
author | Thomas Wuerthinger <thomas@wuerthinger.net> |
---|---|
date | Thu, 12 May 2011 16:55:03 +0200 |
parents | 440ceca8e3d7 |
children | d8601d421b96 |
comparison
equal
deleted
inserted
replaced
2662:440ceca8e3d7 | 2669:405e7947a940 |
---|---|
810 } | 810 } |
811 } | 811 } |
812 | 812 |
813 if (needsCheck) { | 813 if (needsCheck) { |
814 // append a call to the finalizer registration | 814 // append a call to the finalizer registration |
815 append(new RegisterFinalizer(frameState.loadLocal(0), graph)); | 815 RegisterFinalizer r = new RegisterFinalizer(frameState.loadLocal(0), graph); |
816 append(r); | |
817 r.setStateBefore(frameState.create(bci())); | |
816 C1XMetrics.InlinedFinalizerChecks++; | 818 C1XMetrics.InlinedFinalizerChecks++; |
817 } | 819 } |
818 } | 820 } |
819 | 821 |
820 private void genReturn(Value x) { | 822 private void genReturn(Value x) { |