From 2314b80d4c5ed712308f6b32aa8bf865d8d9ffff Mon Sep 17 00:00:00 2001 From: nobu Date: Mon, 24 Sep 2012 08:36:53 +0000 Subject: 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 --- iseq.h | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'iseq.h') diff --git a/iseq.h b/iseq.h index 39f139ff94..17eebfff12 100644 --- a/iseq.h +++ b/iseq.h @@ -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 -- cgit v1.2.3