MCPcopy Create free account
hub / github.com/CPChain/chain / dup

Method dup

core/vm/stack.go:64–66  ·  view source on GitHub ↗
(pool *intPool, n int)

Source from the content-addressed store, hash-verified

62}
63
64func (st *Stack) dup(pool *intPool, n int) {
65 st.push(pool.get().Set(st.data[st.len()-n]))
66}
67
68func (st *Stack) peek() *big.Int {
69 return st.data[st.len()-1]

Callers 1

makeDupFunction · 0.80

Calls 4

pushMethod · 0.95
lenMethod · 0.95
SetMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected