[macruby-changes] [3149] MacRuby/trunk/vm.cpp

source_changes at macosforge.org source_changes at macosforge.org
Tue Dec 22 14:42:25 PST 2009


Revision: 3149
          http://trac.macosforge.org/projects/ruby/changeset/3149
Author:   martinlagardette at apple.com
Date:     2009-12-22 14:42:22 -0800 (Tue, 22 Dec 2009)
Log Message:
-----------
Fixes Bug #415

Modified Paths:
--------------
    MacRuby/trunk/vm.cpp

Modified: MacRuby/trunk/vm.cpp
===================================================================
--- MacRuby/trunk/vm.cpp	2009-12-22 19:51:05 UTC (rev 3148)
+++ MacRuby/trunk/vm.cpp	2009-12-22 22:42:22 UTC (rev 3149)
@@ -735,11 +735,17 @@
     return get_sizeof(RoxorCompiler::shared->convert_type(type));
 }
 
+#ifdef __LP64__
+# define LARGE_STRUCT_SIZE 128
+#else
+# define LARGE_STRUCT_SIZE 64
+#endif /* !__LP64__ */
+
 bool
 RoxorCore::is_large_struct_type(const Type *type)
 {
     return type->getTypeID() == Type::StructTyID
-	&& ee->getTargetData()->getTypeSizeInBits(type) > 128;
+	&& ee->getTargetData()->getTypeSizeInBits(type) > LARGE_STRUCT_SIZE;
 }
 
 inline GlobalVariable *
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20091222/738a2385/attachment.html>


More information about the macruby-changes mailing list