mirror of
				https://github.com/python/cpython.git
				synced 2025-10-30 21:21:22 +00:00 
			
		
		
		
	gh-109094: replace frame->prev_instr by frame->instr_ptr (#109095)
This commit is contained in:
		
							parent
							
								
									573eff3e2e
								
							
						
					
					
						commit
						67a91f78e4
					
				
					 23 changed files with 249 additions and 164 deletions
				
			
		|  | @ -372,8 +372,8 @@ def analyze_macro(self, macro: parsing.Macro) -> MacroInstruction: | |||
|                 case Instruction() as instr: | ||||
|                     part, offset = self.analyze_instruction(instr, offset) | ||||
|                     parts.append(part) | ||||
|                     if instr.name != "_SET_IP": | ||||
|                         # _SET_IP in a macro is a no-op in Tier 1 | ||||
|                     if instr.name != "_SAVE_RETURN_OFFSET": | ||||
|                         # _SAVE_RETURN_OFFSET's oparg does not transfer | ||||
|                         flags.add(instr.instr_flags) | ||||
|                 case _: | ||||
|                     assert_never(component) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Irit Katriel
						Irit Katriel