mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	GH-131798: Narrow the result of _CONTAINS_OP_DICT to bool in the JIT (GH-132269)
Co-authored-by: Tomas R. <tomas.roun8@gmail.com>
This commit is contained in:
		
							parent
							
								
									71009cb835
								
							
						
					
					
						commit
						d753d8aed7
					
				
					 4 changed files with 36 additions and 3 deletions
				
			
		
							
								
								
									
										6
									
								
								Python/optimizer_cases.c.h
									
										
									
										generated
									
									
									
								
							
							
						
						
									
										6
									
								
								Python/optimizer_cases.c.h
									
										
									
										generated
									
									
									
								
							|  | @ -1292,9 +1292,9 @@ | |||
|         } | ||||
| 
 | ||||
|         case _CONTAINS_OP_DICT: { | ||||
|             JitOptSymbol *b; | ||||
|             b = sym_new_not_null(ctx); | ||||
|             stack_pointer[-2] = b; | ||||
|             JitOptSymbol *res; | ||||
|             res = sym_new_type(ctx, &PyBool_Type); | ||||
|             stack_pointer[-2] = res; | ||||
|             stack_pointer += -1; | ||||
|             assert(WITHIN_STACK_BOUNDS()); | ||||
|             break; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Nadeshiko Manju
						Nadeshiko Manju