|
|
@ -200,7 +200,7 @@ func newHomesteadInstructionSet() JumpTable { |
|
|
|
// newFrontierInstructionSet returns the frontier instructions
|
|
|
|
// newFrontierInstructionSet returns the frontier instructions
|
|
|
|
// that can be executed during the frontier phase.
|
|
|
|
// that can be executed during the frontier phase.
|
|
|
|
func newFrontierInstructionSet() JumpTable { |
|
|
|
func newFrontierInstructionSet() JumpTable { |
|
|
|
return JumpTable{ |
|
|
|
tbl := JumpTable{ |
|
|
|
STOP: { |
|
|
|
STOP: { |
|
|
|
execute: opStop, |
|
|
|
execute: opStop, |
|
|
|
constantGas: 0, |
|
|
|
constantGas: 0, |
|
|
@ -1002,4 +1002,13 @@ func newFrontierInstructionSet() JumpTable { |
|
|
|
maxStack: maxStack(1, 0), |
|
|
|
maxStack: maxStack(1, 0), |
|
|
|
}, |
|
|
|
}, |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Fill all unassigned slots with opUndefined.
|
|
|
|
|
|
|
|
for i, entry := range tbl { |
|
|
|
|
|
|
|
if entry == nil { |
|
|
|
|
|
|
|
tbl[i] = &operation{execute: opUndefined, maxStack: maxStack(0, 0)} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return tbl |
|
|
|
} |
|
|
|
} |
|
|
|