You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by va...@apache.org on 2008/06/10 11:13:56 UTC

svn commit: r666027 - in /harmony/enhanced/drlvm/trunk/vm/jitrino/src/jet: cg.cpp cg_meth.cpp

Author: varlax
Date: Tue Jun 10 02:13:56 2008
New Revision: 666027

URL: http://svn.apache.org/viewvc?rev=666027&view=rev
Log:
fighting 64-bit compiler warnings

Modified:
    harmony/enhanced/drlvm/trunk/vm/jitrino/src/jet/cg.cpp
    harmony/enhanced/drlvm/trunk/vm/jitrino/src/jet/cg_meth.cpp

Modified: harmony/enhanced/drlvm/trunk/vm/jitrino/src/jet/cg.cpp
URL: http://svn.apache.org/viewvc/harmony/enhanced/drlvm/trunk/vm/jitrino/src/jet/cg.cpp?rev=666027&r1=666026&r2=666027&view=diff
==============================================================================
--- harmony/enhanced/drlvm/trunk/vm/jitrino/src/jet/cg.cpp (original)
+++ harmony/enhanced/drlvm/trunk/vm/jitrino/src/jet/cg.cpp Tue Jun 10 02:13:56 2008
@@ -758,7 +758,7 @@
         gen_call_throw(ci_helper_lazy, rt_helper_throw_lazy, 0, exnClass, NULL);
     } else {
         static const CallSig ci_new(CCONV_HELPERS, jobj, i32, jobj);
-        unsigned size = class_get_object_size(exnClass);
+        unsigned size = (unsigned)class_get_object_size(exnClass);
         unsigned stackFix;
         Allocation_Handle ah = class_get_allocation_handle(exnClass);
         gen_call_vm(ci_new, rt_helper_new, 0, size, ah);

Modified: harmony/enhanced/drlvm/trunk/vm/jitrino/src/jet/cg_meth.cpp
URL: http://svn.apache.org/viewvc/harmony/enhanced/drlvm/trunk/vm/jitrino/src/jet/cg_meth.cpp?rev=666027&r1=666026&r2=666027&view=diff
==============================================================================
--- harmony/enhanced/drlvm/trunk/vm/jitrino/src/jet/cg_meth.cpp (original)
+++ harmony/enhanced/drlvm/trunk/vm/jitrino/src/jet/cg_meth.cpp Tue Jun 10 02:13:56 2008
@@ -910,7 +910,7 @@
         gen_check_null(thiz, true);
 
         AR gr = valloc(jobj);
-        unsigned offset = method_get_vtable_offset(meth);
+        size_t offset = method_get_vtable_offset(meth);
         Opnd ptr;
 
         if (g_vtbl_squeeze) {
@@ -922,7 +922,7 @@
         }
         else {
             ld(jobj, gr, thiz.reg(), rt_vtable_offset);
-            ptr = Opnd(jobj, gr, offset);
+            ptr = Opnd(jobj, gr, (int)offset);
         }
         call(ptr, cs, is_set(DBG_CHECK_STACK));
         runlock(thiz);