aboutsummaryrefslogtreecommitdiffstats
path: root/core/vm/memory_table.go
diff options
context:
space:
mode:
authorJeffrey Wilcke <jeffrey@ethereum.org>2017-08-15 16:23:23 +0800
committerPéter Szilágyi <peterke@gmail.com>2017-08-15 18:03:49 +0800
commit3d123bcde67973b57c0a9e7edc219cc2ea589443 (patch)
treee806ab2faae07184fdcdfe23488b7111e75a9057 /core/vm/memory_table.go
parent9facf6423dbd38ebd7fbd9069cbcb98b0fd243c2 (diff)
downloaddexon-3d123bcde67973b57c0a9e7edc219cc2ea589443.tar
dexon-3d123bcde67973b57c0a9e7edc219cc2ea589443.tar.gz
dexon-3d123bcde67973b57c0a9e7edc219cc2ea589443.tar.bz2
dexon-3d123bcde67973b57c0a9e7edc219cc2ea589443.tar.lz
dexon-3d123bcde67973b57c0a9e7edc219cc2ea589443.tar.xz
dexon-3d123bcde67973b57c0a9e7edc219cc2ea589443.tar.zst
dexon-3d123bcde67973b57c0a9e7edc219cc2ea589443.zip
core/vm: implement metropolis static call opcode
Diffstat (limited to 'core/vm/memory_table.go')
-rw-r--r--core/vm/memory_table.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/core/vm/memory_table.go b/core/vm/memory_table.go
index 654137c70..9d293a2f2 100644
--- a/core/vm/memory_table.go
+++ b/core/vm/memory_table.go
@@ -74,6 +74,13 @@ func memoryDelegateCall(stack *Stack) *big.Int {
return math.BigMax(x, y)
}
+func memoryStaticCall(stack *Stack) *big.Int {
+ x := calcMemSize(stack.Back(4), stack.Back(5))
+ y := calcMemSize(stack.Back(2), stack.Back(3))
+
+ return math.BigMax(x, y)
+}
+
func memoryReturn(stack *Stack) *big.Int {
return calcMemSize(stack.Back(0), stack.Back(1))
}