harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From var...@apache.org
Subject svn commit: r666017 - /harmony/enhanced/drlvm/trunk/vm/jitrino/src/translator/java/JavaByteCodeTranslator.cpp
Date Tue, 10 Jun 2008 08:55:58 GMT
Author: varlax
Date: Tue Jun 10 01:55:57 2008
New Revision: 666017

URL: http://svn.apache.org/viewvc?rev=666017&view=rev
Log:
putfield to magic field should be handled with properly converted type, same as getfield

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

Modified: harmony/enhanced/drlvm/trunk/vm/jitrino/src/translator/java/JavaByteCodeTranslator.cpp
URL: http://svn.apache.org/viewvc/harmony/enhanced/drlvm/trunk/vm/jitrino/src/translator/java/JavaByteCodeTranslator.cpp?rev=666017&r1=666016&r2=666017&view=diff
==============================================================================
--- harmony/enhanced/drlvm/trunk/vm/jitrino/src/translator/java/JavaByteCodeTranslator.cpp
(original)
+++ harmony/enhanced/drlvm/trunk/vm/jitrino/src/translator/java/JavaByteCodeTranslator.cpp
Tue Jun 10 01:55:57 2008
@@ -830,6 +830,10 @@
     if (field && !field->isStatic()) {
         Type* fieldType = getFieldType(field,constPoolIndex);
         assert(fieldType);
+        if (VMMagicUtils::isVMMagicClass(fieldType->getName())) {
+            fieldType = convertVMMagicType2HIR(typeManager, fieldType);
+        }
+
         Opnd* value = popOpnd();
         Opnd* ref = popOpnd();
         irBuilder.genStField(fieldType,ref,field,value);



Mime
View raw message