[macruby-changes] [1934] MacRuby/branches/experimental/vm.cpp
source_changes at macosforge.org
source_changes at macosforge.org
Fri Jun 26 06:52:21 PDT 2009
Revision: 1934
http://trac.macosforge.org/projects/ruby/changeset/1934
Author: vincent.isambart at gmail.com
Date: 2009-06-26 06:52:20 -0700 (Fri, 26 Jun 2009)
Log Message:
-----------
corrected one of the tests added just before
Modified Paths:
--------------
MacRuby/branches/experimental/vm.cpp
Modified: MacRuby/branches/experimental/vm.cpp
===================================================================
--- MacRuby/branches/experimental/vm.cpp 2009-06-26 12:56:34 UTC (rev 1933)
+++ MacRuby/branches/experimental/vm.cpp 2009-06-26 13:52:20 UTC (rev 1934)
@@ -3004,10 +3004,6 @@
rb_vm_add_lvar_use(block_for_uses->parent_var_uses, block, VM_LVAR_USE_TYPE_BLOCK);
}
-
- // we should not keep references that won't be used
- block->parent_block = NULL;
- block->parent_var_uses = NULL;
}
static void
@@ -3079,6 +3075,11 @@
}
}
}
+
+ // the parent pointers can't be used anymore
+ block->parent_block = NULL;
+ block->parent_var_uses = NULL;
+
locals_to_replace = block->locals;
}
else { // VM_LVAR_USE_TYPE_BINDING
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20090626/1ee74423/attachment.html>
More information about the macruby-changes
mailing list