[macruby-changes] [2954] MacRuby/trunk/compiler.cpp
source_changes at macosforge.org
source_changes at macosforge.org
Wed Nov 4 11:57:24 PST 2009
Revision: 2954
http://trac.macosforge.org/projects/ruby/changeset/2954
Author: lsansonetti at apple.com
Date: 2009-11-04 11:57:24 -0800 (Wed, 04 Nov 2009)
Log Message:
-----------
bring back #[], #[]= and #<< optimizations
Modified Paths:
--------------
MacRuby/trunk/compiler.cpp
Modified: MacRuby/trunk/compiler.cpp
===================================================================
--- MacRuby/trunk/compiler.cpp 2009-11-04 19:53:55 UTC (rev 2953)
+++ MacRuby/trunk/compiler.cpp 2009-11-04 19:57:24 UTC (rev 2954)
@@ -2514,7 +2514,7 @@
return NULL;
}
- if (params.size() - argc > 6) {
+ if (params.size() - argc > 7) {
// Looks like there is a splat argument there, we can't handle this
// in the primitives.
return NULL;
@@ -2540,7 +2540,7 @@
}
std::vector<Value *> new_params;
- new_params.push_back(params[1]); // self
+ new_params.push_back(params[2]); // self
if (argc == 1) {
new_params.push_back(params.back()); // other
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20091104/a8cbdb5c/attachment.html>
More information about the macruby-changes
mailing list