ruby-changes:42004
From: nobu <ko1@a...>
Date: Thu, 10 Mar 2016 16:06:45 +0900 (JST)
Subject: [ruby-changes:42004] nobu:r54078 (trunk): iseq.h: bit flags
nobu 2016-03-10 16:06:39 +0900 (Thu, 10 Mar 2016) New Revision: 54078 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=54078 Log: iseq.h: bit flags * iseq.h (rb_compile_option_struct): turn boolean flags to bit fields. Modified files: trunk/iseq.h Index: iseq.h =================================================================== --- iseq.h (revision 54077) +++ iseq.h (revision 54078) @@ -124,16 +124,16 @@ const rb_iseq_t *rb_method_iseq(VALUE bo https://github.com/ruby/ruby/blob/trunk/iseq.h#L124 const rb_iseq_t *rb_proc_get_iseq(VALUE proc, int *is_proc); struct rb_compile_option_struct { - int inline_const_cache; - int peephole_optimization; - int tailcall_optimization; - int specialized_instruction; - int operands_unification; - int instructions_unification; - int stack_caching; - int trace_instruction; - int frozen_string_literal; - int debug_frozen_string_literal; + unsigned int inline_const_cache: 1; + unsigned int peephole_optimization: 1; + unsigned int tailcall_optimization: 1; + unsigned int specialized_instruction: 1; + unsigned int operands_unification: 1; + unsigned int instructions_unification: 1; + unsigned int stack_caching: 1; + unsigned int trace_instruction: 1; + unsigned int frozen_string_literal: 1; + unsigned int debug_frozen_string_literal: 1; int debug_level; }; -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/