mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	newhashfromarray should be a leaf insn.
* insns.def (newhashfromarray): `rb_hash_bulk_insert()` can call Ruby methods like #hash so that it should not be a leaf insn. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65345 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
		
							parent
							
								
									434207e84d
								
							
						
					
					
						commit
						6fa2b5e8d4
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		|  | @ -518,6 +518,7 @@ newhashfromarray | ||||||
| (rb_num_t num, VALUE ary) | (rb_num_t num, VALUE ary) | ||||||
| () | () | ||||||
| (VALUE hash) | (VALUE hash) | ||||||
|  | // attr bool leaf = false; /* rb_hash_bulk_insert() can call methods. */ | ||||||
| { | { | ||||||
|     VM_ASSERT(num * 2 == (rb_num_t)RARRAY_LEN(ary)); |     VM_ASSERT(num * 2 == (rb_num_t)RARRAY_LEN(ary)); | ||||||
|     hash = rb_hash_new_with_size(num); |     hash = rb_hash_new_with_size(num); | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 ko1
						ko1