iseq.h: bit flags
* iseq.h (rb_compile_option_struct): turn boolean flags to bit fields. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54078 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
a944bdd5fa
commit
46ac76b6ed
20
iseq.h
20
iseq.h
@ -124,16 +124,16 @@ const rb_iseq_t *rb_method_iseq(VALUE body);
|
|||||||
const rb_iseq_t *rb_proc_get_iseq(VALUE proc, int *is_proc);
|
const rb_iseq_t *rb_proc_get_iseq(VALUE proc, int *is_proc);
|
||||||
|
|
||||||
struct rb_compile_option_struct {
|
struct rb_compile_option_struct {
|
||||||
int inline_const_cache;
|
unsigned int inline_const_cache: 1;
|
||||||
int peephole_optimization;
|
unsigned int peephole_optimization: 1;
|
||||||
int tailcall_optimization;
|
unsigned int tailcall_optimization: 1;
|
||||||
int specialized_instruction;
|
unsigned int specialized_instruction: 1;
|
||||||
int operands_unification;
|
unsigned int operands_unification: 1;
|
||||||
int instructions_unification;
|
unsigned int instructions_unification: 1;
|
||||||
int stack_caching;
|
unsigned int stack_caching: 1;
|
||||||
int trace_instruction;
|
unsigned int trace_instruction: 1;
|
||||||
int frozen_string_literal;
|
unsigned int frozen_string_literal: 1;
|
||||||
int debug_frozen_string_literal;
|
unsigned int debug_frozen_string_literal: 1;
|
||||||
int debug_level;
|
int debug_level;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user