Revision: 3149 http://trac.macosforge.org/projects/ruby/changeset/3149 Author: martinlagardette@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 *