Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Index: lib/irb/slex.rb
- ===================================================================
- --- lib/irb/slex.rb (revision 57284)
- +++ lib/irb/slex.rb (revision 57293)
- @@ -53,7 +53,7 @@
- node.preproc=proc
- end
- - #$BMW%A%'%C%/(B?
- + # need a check?
- def postproc(token)
- node = search(token, proc)
- node.postproc=proc
- Index: lib/getoptlong.rb
- ===================================================================
- --- lib/getoptlong.rb (revision 57284)
- +++ lib/getoptlong.rb (revision 57293)
- @@ -1,4 +1,4 @@
- -# frozen_string_literal: false
- +# frozen_string_literal: true
- #
- # GetoptLong for Ruby
- #
- Index: benchmark/driver.rb
- ===================================================================
- --- benchmark/driver.rb (revision 57284)
- +++ benchmark/driver.rb (revision 57293)
- @@ -41,10 +41,16 @@
- else
- h = eval(input.read)
- end
- + results = h[:results] || h["results"]
- obj = allocate
- obj.instance_variable_set("@execs", h[:executables] || h["executables"])
- - obj.instance_variable_set("@results", h[:results] || h["results"])
- + obj.instance_variable_set("@results", results)
- obj.instance_variable_set("@opt", opt)
- + [1, 2].each do |i|
- + loop = results.assoc((n = "loop_whileloop#{i}").intern) || results.assoc(n)
- + obj.instance_variable_set("@loop_wl#{i}", loop ? loop[1].map {|t,*|t} : nil)
- + end
- + obj.instance_variable_set("@measure_target", opt[:measure_target] || opt["measure_target"])
- obj
- end
- @@ -153,7 +159,9 @@
- numformat = " %1$*2$.3f"
- end
- - name_width ||= @results.map {|v,*| v.size}.max
- + name_width ||= @results.map {|v, result|
- + v.size + (case v; when /^vm1_/; @loop_wl1; when /^vm2_/; @loop_wl2; end ? 1 : 0)
- + }.max
- minwidth ||= 7
- width = @execs.map{|(_, v)| [v.size, minwidth].max}
- @@ -413,7 +421,6 @@
- }
- parser.parse!(ARGV)
- - opt[:output] ||= "bmlog-#{Time.now.strftime('%Y%m%d-%H%M%S')}.#{$$}#{formats[opt[:format]]}"
- if input = opt[:rawdata_input]
- b = open(input) {|f|
- @@ -421,6 +428,7 @@
- }
- b.show_results
- else
- + opt[:output] ||= "bmlog-#{Time.now.strftime('%Y%m%d-%H%M%S')}.#{$$}#{formats[opt[:format]]}"
- BenchmarkDriver.benchmark(opt)
- end
- end
- Index: vm_insnhelper.c
- ===================================================================
- --- vm_insnhelper.c (revision 57284)
- +++ vm_insnhelper.c (revision 57293)
- @@ -1538,8 +1538,6 @@
- vm_pop_frame(th, cfp, cfp->ep);
- cfp = th->cfp;
- - RUBY_VM_CHECK_INTS(th);
- -
- sp_orig = sp = cfp->sp;
- /* push self */
- @@ -1558,6 +1556,8 @@
- iseq->body->stack_max);
- cfp->sp = sp_orig;
- + RUBY_VM_CHECK_INTS(th);
- +
- return Qundef;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement