harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gshiman...@apache.org
Subject svn commit: r474808 - /incubator/harmony/enhanced/drlvm/trunk/vm/gc_cc/src/slot.cpp
Date Tue, 14 Nov 2006 14:50:50 GMT
Author: gshimansky
Date: Tue Nov 14 06:50:49 2006
New Revision: 474808

URL: http://svn.apache.org/viewvc?view=rev&rev=474808
Log:
Fixed compilation on x86_64. Since code is x86_64 specific, no testing is done
on other platforms


Modified:
    incubator/harmony/enhanced/drlvm/trunk/vm/gc_cc/src/slot.cpp

Modified: incubator/harmony/enhanced/drlvm/trunk/vm/gc_cc/src/slot.cpp
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/drlvm/trunk/vm/gc_cc/src/slot.cpp?view=diff&rev=474808&r1=474807&r2=474808
==============================================================================
--- incubator/harmony/enhanced/drlvm/trunk/vm/gc_cc/src/slot.cpp (original)
+++ incubator/harmony/enhanced/drlvm/trunk/vm/gc_cc/src/slot.cpp Tue Nov 14 06:50:49 2006
@@ -129,31 +129,36 @@
 template<> InteriorRoots *InteriorRoots::active = 0;
 template<> InteriorRoots *InteriorRoots::base = 0;
 
+template<>
 Partial_Reveal_Object* DirectRoots::fetch(Partial_Reveal_Object **r) {
     assert(*r != 0);
     return *r;
 }
+template<>
 void DirectRoots::store(Partial_Reveal_Object **r, Partial_Reveal_Object *o) {
     assert(o != 0);
     assert(*r == o || o != heap_null);
     *r = o;
 }
-
+template<>
 Partial_Reveal_Object* InteriorRoots::fetch(InteriorPointer p) {
     Partial_Reveal_Object *res = (Partial_Reveal_Object*) (*(Ptr*)p.slot - p.offset);
     assert(res != heap_null);
     if (res == 0) return heap_null;
     return res;
 }
+template<>
 void InteriorRoots::store(InteriorPointer p, Partial_Reveal_Object *o) {
     assert(o != 0);
     if (o == heap_null) o = 0;
     *(Ptr*)p.slot = (Ptr)o + p.offset;
 }
 
+template<>
 Partial_Reveal_Object* CompressedRoots::fetch(uint32 *cr) {
     return (Partial_Reveal_Object*) (heap.base + *cr);
 }
+template<>
 void CompressedRoots::store(uint32 *cr, Partial_Reveal_Object *o) {
     assert(o != 0);
     *cr = (uint32)((Ptr)o - heap.base);



Mime
View raw message