[macruby-changes] [4245] MacRuby/trunk/compiler.cpp

source_changes at macosforge.org source_changes at macosforge.org
Fri Jun 18 15:39:41 PDT 2010


Revision: 4245
          http://trac.macosforge.org/projects/ruby/changeset/4245
Author:   lsansonetti at apple.com
Date:     2010-06-18 15:39:40 -0700 (Fri, 18 Jun 2010)
Log Message:
-----------
aot: no need to force compilation to avoid stubs since lazy compilation is disabled

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

Modified: MacRuby/trunk/compiler.cpp
===================================================================
--- MacRuby/trunk/compiler.cpp	2010-06-18 22:38:10 UTC (rev 4244)
+++ MacRuby/trunk/compiler.cpp	2010-06-18 22:39:40 UTC (rev 4245)
@@ -680,10 +680,6 @@
 			Int32Ty, NULL));
     }
 
-    // Make sure the function is compiled before use, this way LLVM won't use
-    // a stub.
-    GET_CORE()->compile(new_function);
-
     Value *args[] = {
 	classVal,
 	ConstantInt::get(Int8Ty, !singleton && dynamic_class ? 1 : 0),
@@ -942,8 +938,6 @@
 RoxorAOTCompiler::compile_prepare_block_args(Function *func, int *flags)
 {
     *flags |= VM_BLOCK_AOT;
-    // Force compilation (no stub).
-    GET_CORE()->compile(func);
     return new BitCastInst(func, PtrTy, "", bb);
 }
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20100618/83832142/attachment.html>


More information about the macruby-changes mailing list