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

Method push

core/vm/stack.go:40–45  ·  view source on GitHub ↗
(d *big.Int)

Source from the content-addressed store, hash-verified

38}
39
40func (st *Stack) push(d *big.Int) {
41 // NOTE push limit (1024) is checked in baseCheck
42 //stackItem := new(big.Int).Set(d)
43 //st.data = append(st.data, stackItem)
44 st.data = append(st.data, d)
45}
46func (st *Stack) pushN(ds ...*big.Int) {
47 st.data = append(st.data, ds...)
48}

Callers 15

dupMethod · 0.95
putMethod · 0.45
opMulFunction · 0.45
opSdivFunction · 0.45
opModFunction · 0.45
opSmodFunction · 0.45
opExpFunction · 0.45
opSignExtendFunction · 0.45
opAndFunction · 0.45
opAddmodFunction · 0.45
opMulmodFunction · 0.45
opSARFunction · 0.45

Calls

no outgoing calls

Tested by 4

TestStoreCaptureFunction · 0.36
testTwoOperandOpFunction · 0.36
TestByteOpFunction · 0.36
opBenchmarkFunction · 0.36