[macruby-changes] [2107] MacRuby/branches/experimental/compiler.cpp

source_changes at macosforge.org source_changes at macosforge.org
Tue Jul 28 19:35:20 PDT 2009


Revision: 2107
          http://trac.macosforge.org/projects/ruby/changeset/2107
Author:   lsansonetti at apple.com
Date:     2009-07-28 19:35:18 -0700 (Tue, 28 Jul 2009)
Log Message:
-----------
fixed a bug in the way we compile return-from-block handlers; IMPORTANT this bug was actually masking a lot of spec failures (some of them are regressions!), now spec:ci shows around 60 failures

Modified Paths:
--------------
    MacRuby/branches/experimental/compiler.cpp

Modified: MacRuby/branches/experimental/compiler.cpp
===================================================================
--- MacRuby/branches/experimental/compiler.cpp	2009-07-29 01:21:23 UTC (rev 2106)
+++ MacRuby/branches/experimental/compiler.cpp	2009-07-29 02:35:18 UTC (rev 2107)
@@ -4125,6 +4125,8 @@
 
 		current_mid = mid;
 		current_instance_method = !singleton_method;
+		const bool old_current_block = current_block;
+		current_block = false;
 
 		DEBUG_LEVEL_INC();
 		Value *val = compile_node(body);
@@ -4132,6 +4134,7 @@
 		Function *new_function = cast<Function>(val);
 		DEBUG_LEVEL_DEC();
 
+		current_block = old_current_block;
 		current_mid = 0;
 		current_instance_method = false;
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20090728/cc3f26fe/attachment.html>


More information about the macruby-changes mailing list