harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ge...@apache.org
Subject svn commit: r471210 - /incubator/harmony/enhanced/drlvm/trunk/vm/jitrino/src/translator/java/JavaByteCodeTranslator.cpp
Date Sat, 04 Nov 2006 15:00:52 GMT
Author: geirm
Date: Sat Nov  4 07:00:51 2006
New Revision: 471210

URL: http://svn.apache.org/viewvc?view=rev&rev=471210
Log:
HARMONY-1844

[drlvm][jit] -Xem opt: crash when use getstatic instruction for method getstatic 
java.util.zip.ZipConstants.CENSIG

Fixed test case.

Ubuntu 6 - smoke, c-unit, ~kernel


Modified:
    incubator/harmony/enhanced/drlvm/trunk/vm/jitrino/src/translator/java/JavaByteCodeTranslator.cpp

Modified: incubator/harmony/enhanced/drlvm/trunk/vm/jitrino/src/translator/java/JavaByteCodeTranslator.cpp
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/drlvm/trunk/vm/jitrino/src/translator/java/JavaByteCodeTranslator.cpp?view=diff&rev=471210&r1=471209&r2=471210
==============================================================================
--- incubator/harmony/enhanced/drlvm/trunk/vm/jitrino/src/translator/java/JavaByteCodeTranslator.cpp
(original)
+++ incubator/harmony/enhanced/drlvm/trunk/vm/jitrino/src/translator/java/JavaByteCodeTranslator.cpp
Sat Nov  4 07:00:51 2006
@@ -1076,7 +1076,9 @@
     }
     // generate helper call for throwing respective exception
     linkingException(constPoolIndex, OPCODE_GETSTATIC);
-    pushOpnd(irBuilder.genLdNull());
+    Type* type = compilationInterface.getFieldType(&methodToCompile, constPoolIndex);
+    ConstInst::ConstValue nullValue;
+    pushOpnd(irBuilder.genLdConstant(type,nullValue));
 }
 
 void 



Mime
View raw message