mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	* Rewrite Kernel#tap with Ruby This was good for VM too, but of course my intention is to unblock JIT's inlining of a block over yield (inlining invokeyield has not been committed though). * Fix test_settracefunc About the :tap deletions, the :tap events are actually traced (we already have a TracePoint test for builtin methods), but it's filtered out by tp.path == "xyzzy" (it became "<internal:kernel>"). We could trace tp.path == "<internal:kernel>" cases too, but the lineno is impacted by kernel.rb changes and I didn't want to make it fragile for kernel.rb lineno changes.
		
			
				
	
	
		
			6 lines
		
	
	
	
		
			108 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			6 lines
		
	
	
	
		
			108 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
prelude: |
 | 
						|
  obj = Object.new
 | 
						|
  x = nil
 | 
						|
benchmark:
 | 
						|
  kernel_tap: obj.tap { |o| x = o }
 | 
						|
loop_count: 20000000
 |