You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently any of the triggers listed in ECMA 335 I.8.9.5 will cause the compiler to insert a call to the static constructor.
The code for the static constructor will self modify when running to replace itself with a single return instruction so subsequent calls to it will do nothing.
There is definitely room for improvement in terms of reducing the number of calls to the static constructors.
A method that performs two static field accesses to the same class with a static constructor will end up calling the static constructor twice. Would be good to try and implement some of these unnecessary calls
Consider recording details of static constructors called in a basic block and only add new calls if there isn't already a call being made
The text was updated successfully, but these errors were encountered:
Currently any of the triggers listed in ECMA 335 I.8.9.5 will cause the compiler to insert a call to the static constructor.
The code for the static constructor will self modify when running to replace itself with a single return instruction so subsequent calls to it will do nothing.
There is definitely room for improvement in terms of reducing the number of calls to the static constructors.
A method that performs two static field accesses to the same class with a static constructor will end up calling the static constructor twice. Would be good to try and implement some of these unnecessary calls
Consider recording details of static constructors called in a basic block and only add new calls if there isn't already a call being made
The text was updated successfully, but these errors were encountered: