[macruby-changes] [2627] MacRuby/trunk

source_changes at macosforge.org source_changes at macosforge.org
Thu Sep 24 13:28:30 PDT 2009


Revision: 2627
          http://trac.macosforge.org/projects/ruby/changeset/2627
Author:   lsansonetti at apple.com
Date:     2009-09-24 13:28:30 -0700 (Thu, 24 Sep 2009)
Log Message:
-----------
fixed some inlining stuff

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

Modified: MacRuby/trunk/compiler.cpp
===================================================================
--- MacRuby/trunk/compiler.cpp	2009-09-24 01:10:20 UTC (rev 2626)
+++ MacRuby/trunk/compiler.cpp	2009-09-24 20:28:30 UTC (rev 2627)
@@ -1261,7 +1261,7 @@
     return val;
 }
 
-inline Value *
+Value *
 RoxorCompiler::compile_current_class(void)
 {
     if (current_opened_class == NULL) {
@@ -6381,7 +6381,7 @@
     return CallInst::Create(func, params.begin(), params.end(), "", bb);
 }
 
-inline const Type *
+const Type *
 RoxorCompiler::convert_type(const char *type)
 {
     type = SkipTypeModifiers(type);

Modified: MacRuby/trunk/vm.cpp
===================================================================
--- MacRuby/trunk/vm.cpp	2009-09-24 01:10:20 UTC (rev 2626)
+++ MacRuby/trunk/vm.cpp	2009-09-24 20:28:30 UTC (rev 2627)
@@ -2554,7 +2554,7 @@
     	argc + 1, new_argv);
 }
 
-inline void *
+void *
 RoxorCore::gen_stub(std::string types, int argc, bool is_objc)
 {
     lock();
@@ -3508,7 +3508,7 @@
     return new_b;
 }
 
-rb_vm_block_t *
+inline rb_vm_block_t *
 RoxorVM::uncache_or_create_block(void *key, bool *cached, int dvars_size)
 {
     std::map<void *, rb_vm_block_t *>::iterator iter = blocks.find(key);
@@ -3943,9 +3943,9 @@
 rb_vm_method_t *
 rb_vm_get_method(VALUE klass, VALUE obj, ID mid, int scope)
 {
-    SEL sel;
-    IMP imp;
-    rb_vm_method_node_t *node;
+    SEL sel = 0;
+    IMP imp = NULL;
+    rb_vm_method_node_t *node = NULL;
 
     // TODO honor scope
 
@@ -4089,7 +4089,7 @@
     return rb_proc_alloc_with_block(rb_cProc, b);
 }
 
-static inline VALUE
+static force_inline VALUE
 rb_vm_block_eval0(rb_vm_block_t *b, SEL sel, VALUE self, int argc,
 	const VALUE *argv)
 {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20090924/7a6e098e/attachment.html>


More information about the macruby-changes mailing list