Closed theo25 closed 3 years ago
Question: does the intialization of the code cell still get reverted with this change if the constructor raises an exception?
@dwightguth I think so. We call #pushWorldState
before any initialization code runs and before the code
cell gets populated even with this change. And if there is some exception, #popWorldState
should revert the initialization of the code
cell.
This PR moves the initialization of the
<code>
cell before the execution of initialization code, so that instructions such ascalladdress
that need the cell have it available.