[macruby-changes] [2410] MacRuby/trunk/compiler.cpp
source_changes at macosforge.org
source_changes at macosforge.org
Fri Aug 28 15:44:44 PDT 2009
Revision: 2410
http://trac.macosforge.org/projects/ruby/changeset/2410
Author: lsansonetti at apple.com
Date: 2009-08-28 15:44:43 -0700 (Fri, 28 Aug 2009)
Log Message:
-----------
AOT compile the __ENCODING__ keyword as nil for the moment
Modified Paths:
--------------
MacRuby/trunk/compiler.cpp
Modified: MacRuby/trunk/compiler.cpp
===================================================================
--- MacRuby/trunk/compiler.cpp 2009-08-28 22:32:41 UTC (rev 2409)
+++ MacRuby/trunk/compiler.cpp 2009-08-28 22:44:43 UTC (rev 2410)
@@ -10,6 +10,7 @@
#include "llvm.h"
#include "ruby/ruby.h"
+#include "ruby/encoding.h"
#include "ruby/node.h"
#include "ruby/re.h"
#include "id.h"
@@ -2724,6 +2725,11 @@
if (SPECIAL_CONST_P(val)) {
return RoxorCompiler::compile_immutable_literal(val);
}
+ if (rb_obj_is_kind_of(val, rb_cEncoding)) {
+ // This is the __ENCODING__ keyword.
+ // TODO: compile the real encoding...
+ return nilVal;
+ }
std::map<VALUE, GlobalVariable *>::iterator iter = literals.find(val);
GlobalVariable *gvar = NULL;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20090828/88b05051/attachment.html>
More information about the macruby-changes
mailing list