-
-
Notifications
You must be signed in to change notification settings - Fork 34.7k
Remove DELETE_GLOBAL bytecode instruction #145857
Copy link
Copy link
Open
Labels
interpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)performancePerformance or resource usagePerformance or resource usagetype-featureA feature request or enhancementA feature request or enhancement
Metadata
Metadata
Assignees
Labels
interpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)performancePerformance or resource usagePerformance or resource usagetype-featureA feature request or enhancementA feature request or enhancement
Fields
Give feedbackNo fields configured for issues without a type.
Feature or enhancement
Proposal:
DELETE_GLOBALcould be removed by makingSTORE_GLOBALhandle aNULLvalue and replacingDELETE_GLOBALwithPUSH_NULL; STORE_GLOBAL.This wouldn't have an effect on performance or code size, as
STORE_GLOBALwould also need to do the job ofDELETE_GLOBALbut it would free up an opcode for future use. Also, once #145854 and #145855 are implemented, it would make the bytecode for deletion more consistent.Has this already been discussed elsewhere?
This is a minor feature, which does not need previous discussion elsewhere
Linked PRs
DELETE_GLOBALwithPUSH_NULL; STORE_GLOBAL#146314