diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-09-24 08:36:53 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-09-24 08:36:53 +0000 |
commit | 2314b80d4c5ed712308f6b32aa8bf865d8d9ffff (patch) | |
tree | 8a531352ebd8b352e6c1b5cadeeb7d49d28da147 /iseq.h | |
parent | 8ac52a95d577d00ed7b783fde8bca5b2b76cb404 (diff) |
Feature #7035
* compile.c (defined_expr), insns.def (defined): share single frozen
strings. [EXPERIMENTAL] [ruby-core:47558][Feature #7035]
* iseq.c (rb_iseq_defined_string): make expression strings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37025 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'iseq.h')
-rw-r--r-- | iseq.h | 15 |
1 files changed, 12 insertions, 3 deletions
@@ -106,18 +106,27 @@ struct iseq_compile_data { /* defined? */ enum defined_type { - DEFINED_IVAR = 1, - DEFINED_IVAR2, + DEFINED_NIL = 1, + DEFINED_IVAR, + DEFINED_LVAR, DEFINED_GVAR, DEFINED_CVAR, DEFINED_CONST, DEFINED_METHOD, DEFINED_YIELD, - DEFINED_REF, DEFINED_ZSUPER, + DEFINED_SELF, + DEFINED_TRUE, + DEFINED_FALSE, + DEFINED_ASGN, + DEFINED_EXPR, + DEFINED_IVAR2, + DEFINED_REF, DEFINED_FUNC }; +VALUE rb_iseq_defined_string(enum defined_type type); + #if defined __GNUC__ && __GNUC__ >= 4 #pragma GCC visibility pop #endif |