mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-26 06:36:43 +00:00
core/vm: speed up push1, push2
This commit is contained in:
parent
d3a32816f9
commit
1e101b39fd
1 changed files with 2 additions and 0 deletions
|
|
@ -86,6 +86,8 @@ func (s *Stack) push(d *uint256.Int) {
|
|||
s.size++
|
||||
}
|
||||
|
||||
// get returns a pointer to a newly created element
|
||||
// on top of the stack
|
||||
func (s *Stack) get() *uint256.Int {
|
||||
elem := &s.inner.data[s.inner.top]
|
||||
s.inner.top++
|
||||
|
|
|
|||
Loading…
Reference in a new issue