diff graal/com.oracle.graal.hotspot.sparc/src/com/oracle/graal/hotspot/sparc/SPARCHotSpotEpilogueOp.java @ 13234:7e237378923d

made the frameContext of a CompilationResultBuilder always non-null and added FrameContext.hasFrame() to determine if a frame is actually generated
author Doug Simon <doug.simon@oracle.com>
date Tue, 03 Dec 2013 18:02:11 +0100
parents 1a66453f73db
children 4347ad3df3d7
line wrap: on
line diff
--- a/graal/com.oracle.graal.hotspot.sparc/src/com/oracle/graal/hotspot/sparc/SPARCHotSpotEpilogueOp.java	Tue Dec 03 17:11:06 2013 +0100
+++ b/graal/com.oracle.graal.hotspot.sparc/src/com/oracle/graal/hotspot/sparc/SPARCHotSpotEpilogueOp.java	Tue Dec 03 18:02:11 2013 +0100
@@ -31,8 +31,6 @@
 abstract class SPARCHotSpotEpilogueOp extends SPARCLIRInstruction {
 
     protected void leaveFrame(CompilationResultBuilder crb) {
-        if (crb.frameContext != null) {
-            crb.frameContext.leave(crb);
-        }
+        crb.frameContext.leave(crb);
     }
 }