core/vm: speed up push1, push2

This commit is contained in:
MariusVanDerWijden 2025-05-08 11:44:16 +02:00
parent d3a32816f9
commit 1e101b39fd

View file

@ -86,6 +86,8 @@ func (s *Stack) push(d *uint256.Int) {
s.size++ s.size++
} }
// get returns a pointer to a newly created element
// on top of the stack
func (s *Stack) get() *uint256.Int { func (s *Stack) get() *uint256.Int {
elem := &s.inner.data[s.inner.top] elem := &s.inner.data[s.inner.top]
s.inner.top++ s.inner.top++