mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 21:51:50 +00:00 
			
		
		
		
	GH-99298: Clean up attribute specializations (GH-99398)
This commit is contained in:
		
							parent
							
								
									8555dee5ae
								
							
						
					
					
						commit
						b629fdd88a
					
				
					 5 changed files with 39 additions and 57 deletions
				
			
		
							
								
								
									
										12
									
								
								Python/generated_cases.c.h
									
										
									
										generated
									
									
									
								
							
							
						
						
									
										12
									
								
								Python/generated_cases.c.h
									
										
									
										generated
									
									
									
								
							|  | @ -1136,11 +1136,7 @@ | |||
|                 PyObject *owner = TOP(); | ||||
|                 PyObject *name = GETITEM(names, oparg); | ||||
|                 next_instr--; | ||||
|                 if (_Py_Specialize_StoreAttr(owner, next_instr, name)) { | ||||
|                     // "undo" the rewind so end up in the correct handler:
 | ||||
|                     next_instr++; | ||||
|                     goto error; | ||||
|                 } | ||||
|                 _Py_Specialize_StoreAttr(owner, next_instr, name); | ||||
|                 DISPATCH_SAME_OPARG(); | ||||
|             } | ||||
|             STAT_INC(STORE_ATTR, deferred); | ||||
|  | @ -1718,11 +1714,7 @@ | |||
|                 PyObject *owner = TOP(); | ||||
|                 PyObject *name = GETITEM(names, oparg>>1); | ||||
|                 next_instr--; | ||||
|                 if (_Py_Specialize_LoadAttr(owner, next_instr, name)) { | ||||
|                     // "undo" the rewind so end up in the correct handler:
 | ||||
|                     next_instr++; | ||||
|                     goto error; | ||||
|                 } | ||||
|                 _Py_Specialize_LoadAttr(owner, next_instr, name); | ||||
|                 DISPATCH_SAME_OPARG(); | ||||
|             } | ||||
|             STAT_INC(LOAD_ATTR, deferred); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Brandt Bucher
						Brandt Bucher