[macruby-changes] [2574] MacRuby/trunk/parse.y
source_changes at macosforge.org
source_changes at macosforge.org
Sat Sep 19 01:39:35 PDT 2009
Revision: 2574
http://trac.macosforge.org/projects/ruby/changeset/2574
Author: lsansonetti at apple.com
Date: 2009-09-19 01:39:31 -0700 (Sat, 19 Sep 2009)
Log Message:
-----------
don't use a Binding lvar for lvar assignments that are outside the main scope
Modified Paths:
--------------
MacRuby/trunk/parse.y
Modified: MacRuby/trunk/parse.y
===================================================================
--- MacRuby/trunk/parse.y 2009-09-19 07:37:35 UTC (rev 2573)
+++ MacRuby/trunk/parse.y 2009-09-19 08:39:31 UTC (rev 2574)
@@ -8094,9 +8094,9 @@
}
else {
if (!local_id(id)) {
- if (!rb_local_define(id)) {
+ //if (!rb_local_define(id)) {
local_var(id);
- }
+ //}
}
return NEW_LASGN(id, val);
}
@@ -10085,6 +10085,7 @@
}
#ifdef YYMALLOC
+// FIXME the following functions are definitely missing write barriers
#define HEAPCNT(n, size) ((n) * (size) / sizeof(YYSTYPE))
#define NEWHEAP() rb_node_newnode(NODE_ALLOCA, 0, (VALUE)parser->heap, 0)
#define ADD2HEAP(n, c, p) ((parser->heap = (n))->u1.node = (p), \
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20090919/7631239d/attachment.html>
More information about the macruby-changes
mailing list