зеркало из https://github.com/github/ruby.git
* vm.c (Init_VM): should pass tokens.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54479 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
b4c0aac4c8
Коммит
eddbebcb19
|
@ -1,3 +1,7 @@
|
|||
Mon Apr 4 16:41:32 2016 Koichi Sasada <ko1@atdot.net>
|
||||
|
||||
* vm.c (Init_VM): should pass tokens.
|
||||
|
||||
Sun Apr 3 09:34:29 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* numeric.c (flodivmod): round division if it is a finite number
|
||||
|
|
8
vm.c
8
vm.c
|
@ -2852,10 +2852,10 @@ Init_VM(void)
|
|||
#if VM_COLLECT_USAGE_DETAILS
|
||||
/* ::RubyVM::USAGE_ANALYSIS_* */
|
||||
#define define_usage_analysis_hash(name) /* shut up rdoc -C */ \
|
||||
rb_define_const(rb_cRubyVM, "USAGE_ANALYSIS_"#name, rb_hash_new())
|
||||
define_usage_analysis_hash("INSN");
|
||||
define_usage_analysis_hash("REGS");
|
||||
define_usage_analysis_hash("INSN_BIGRAM");
|
||||
rb_define_const(rb_cRubyVM, "USAGE_ANALYSIS_" #name, rb_hash_new())
|
||||
define_usage_analysis_hash(INSN);
|
||||
define_usage_analysis_hash(REGS);
|
||||
define_usage_analysis_hash(INSN_BIGRAM);
|
||||
|
||||
rb_define_singleton_method(rb_cRubyVM, "USAGE_ANALYSIS_INSN_STOP", usage_analysis_insn_stop, 0);
|
||||
rb_define_singleton_method(rb_cRubyVM, "USAGE_ANALYSIS_OPERAND_STOP", usage_analysis_operand_stop, 0);
|
||||
|
|
Загрузка…
Ссылка в новой задаче