Search in sources :

Example 1 with SLoadOperation

use of org.hyperledger.besu.evm.operation.SLoadOperation in project besu by hyperledger.

the class MainnetEVMs method registerFrontierOperations.

public static void registerFrontierOperations(final OperationRegistry registry, final GasCalculator gasCalculator) {
    registry.put(new AddOperation(gasCalculator));
    registry.put(new MulOperation(gasCalculator));
    registry.put(new SubOperation(gasCalculator));
    registry.put(new DivOperation(gasCalculator));
    registry.put(new SDivOperation(gasCalculator));
    registry.put(new ModOperation(gasCalculator));
    registry.put(new SModOperation(gasCalculator));
    registry.put(new ExpOperation(gasCalculator));
    registry.put(new AddModOperation(gasCalculator));
    registry.put(new MulModOperation(gasCalculator));
    registry.put(new SignExtendOperation(gasCalculator));
    registry.put(new LtOperation(gasCalculator));
    registry.put(new GtOperation(gasCalculator));
    registry.put(new SLtOperation(gasCalculator));
    registry.put(new SGtOperation(gasCalculator));
    registry.put(new EqOperation(gasCalculator));
    registry.put(new IsZeroOperation(gasCalculator));
    registry.put(new AndOperation(gasCalculator));
    registry.put(new OrOperation(gasCalculator));
    registry.put(new XorOperation(gasCalculator));
    registry.put(new NotOperation(gasCalculator));
    registry.put(new ByteOperation(gasCalculator));
    registry.put(new Keccak256Operation(gasCalculator));
    registry.put(new AddressOperation(gasCalculator));
    registry.put(new BalanceOperation(gasCalculator));
    registry.put(new OriginOperation(gasCalculator));
    registry.put(new CallerOperation(gasCalculator));
    registry.put(new CallValueOperation(gasCalculator));
    registry.put(new CallDataLoadOperation(gasCalculator));
    registry.put(new CallDataSizeOperation(gasCalculator));
    registry.put(new CallDataCopyOperation(gasCalculator));
    registry.put(new CodeSizeOperation(gasCalculator));
    registry.put(new CodeCopyOperation(gasCalculator));
    registry.put(new GasPriceOperation(gasCalculator));
    registry.put(new ExtCodeCopyOperation(gasCalculator));
    registry.put(new ExtCodeSizeOperation(gasCalculator));
    registry.put(new BlockHashOperation(gasCalculator));
    registry.put(new CoinbaseOperation(gasCalculator));
    registry.put(new TimestampOperation(gasCalculator));
    registry.put(new NumberOperation(gasCalculator));
    registry.put(new DifficultyOperation(gasCalculator));
    registry.put(new GasLimitOperation(gasCalculator));
    registry.put(new PopOperation(gasCalculator));
    registry.put(new MLoadOperation(gasCalculator));
    registry.put(new MStoreOperation(gasCalculator));
    registry.put(new MStore8Operation(gasCalculator));
    registry.put(new SLoadOperation(gasCalculator));
    registry.put(new SStoreOperation(gasCalculator, SStoreOperation.FRONTIER_MINIMUM));
    registry.put(new JumpOperation(gasCalculator));
    registry.put(new JumpiOperation(gasCalculator));
    registry.put(new PCOperation(gasCalculator));
    registry.put(new MSizeOperation(gasCalculator));
    registry.put(new GasOperation(gasCalculator));
    registry.put(new JumpDestOperation(gasCalculator));
    registry.put(new ReturnOperation(gasCalculator));
    registry.put(new InvalidOperation(gasCalculator));
    registry.put(new StopOperation(gasCalculator));
    registry.put(new SelfDestructOperation(gasCalculator));
    registry.put(new CreateOperation(gasCalculator));
    registry.put(new CallOperation(gasCalculator));
    registry.put(new CallCodeOperation(gasCalculator));
    // Register the PUSH1, PUSH2, ..., PUSH32 operations.
    for (int i = 1; i <= 32; ++i) {
        registry.put(new PushOperation(i, gasCalculator));
    }
    // Register the DUP1, DUP2, ..., DUP16 operations.
    for (int i = 1; i <= 16; ++i) {
        registry.put(new DupOperation(i, gasCalculator));
    }
    // Register the SWAP1, SWAP2, ..., SWAP16 operations.
    for (int i = 1; i <= 16; ++i) {
        registry.put(new SwapOperation(i, gasCalculator));
    }
    // Register the LOG0, LOG1, ..., LOG4 operations.
    for (int i = 0; i < 5; ++i) {
        registry.put(new LogOperation(i, gasCalculator));
    }
}
Also used : NumberOperation(org.hyperledger.besu.evm.operation.NumberOperation) CallDataSizeOperation(org.hyperledger.besu.evm.operation.CallDataSizeOperation) TimestampOperation(org.hyperledger.besu.evm.operation.TimestampOperation) MSizeOperation(org.hyperledger.besu.evm.operation.MSizeOperation) PCOperation(org.hyperledger.besu.evm.operation.PCOperation) PushOperation(org.hyperledger.besu.evm.operation.PushOperation) JumpiOperation(org.hyperledger.besu.evm.operation.JumpiOperation) SwapOperation(org.hyperledger.besu.evm.operation.SwapOperation) DivOperation(org.hyperledger.besu.evm.operation.DivOperation) SDivOperation(org.hyperledger.besu.evm.operation.SDivOperation) CallCodeOperation(org.hyperledger.besu.evm.operation.CallCodeOperation) SDivOperation(org.hyperledger.besu.evm.operation.SDivOperation) XorOperation(org.hyperledger.besu.evm.operation.XorOperation) StaticCallOperation(org.hyperledger.besu.evm.operation.StaticCallOperation) DelegateCallOperation(org.hyperledger.besu.evm.operation.DelegateCallOperation) CallOperation(org.hyperledger.besu.evm.operation.CallOperation) MStoreOperation(org.hyperledger.besu.evm.operation.MStoreOperation) SelfDestructOperation(org.hyperledger.besu.evm.operation.SelfDestructOperation) JumpDestOperation(org.hyperledger.besu.evm.operation.JumpDestOperation) SGtOperation(org.hyperledger.besu.evm.operation.SGtOperation) GtOperation(org.hyperledger.besu.evm.operation.GtOperation) CodeSizeOperation(org.hyperledger.besu.evm.operation.CodeSizeOperation) ExtCodeSizeOperation(org.hyperledger.besu.evm.operation.ExtCodeSizeOperation) ExtCodeCopyOperation(org.hyperledger.besu.evm.operation.ExtCodeCopyOperation) LogOperation(org.hyperledger.besu.evm.operation.LogOperation) ExtCodeSizeOperation(org.hyperledger.besu.evm.operation.ExtCodeSizeOperation) LtOperation(org.hyperledger.besu.evm.operation.LtOperation) SLtOperation(org.hyperledger.besu.evm.operation.SLtOperation) JumpOperation(org.hyperledger.besu.evm.operation.JumpOperation) SModOperation(org.hyperledger.besu.evm.operation.SModOperation) ExpOperation(org.hyperledger.besu.evm.operation.ExpOperation) DifficultyOperation(org.hyperledger.besu.evm.operation.DifficultyOperation) DupOperation(org.hyperledger.besu.evm.operation.DupOperation) MulModOperation(org.hyperledger.besu.evm.operation.MulModOperation) StopOperation(org.hyperledger.besu.evm.operation.StopOperation) SLoadOperation(org.hyperledger.besu.evm.operation.SLoadOperation) ReturnOperation(org.hyperledger.besu.evm.operation.ReturnOperation) SLtOperation(org.hyperledger.besu.evm.operation.SLtOperation) Keccak256Operation(org.hyperledger.besu.evm.operation.Keccak256Operation) CoinbaseOperation(org.hyperledger.besu.evm.operation.CoinbaseOperation) CallDataCopyOperation(org.hyperledger.besu.evm.operation.CallDataCopyOperation) GasLimitOperation(org.hyperledger.besu.evm.operation.GasLimitOperation) BalanceOperation(org.hyperledger.besu.evm.operation.BalanceOperation) SelfBalanceOperation(org.hyperledger.besu.evm.operation.SelfBalanceOperation) AddOperation(org.hyperledger.besu.evm.operation.AddOperation) CallDataLoadOperation(org.hyperledger.besu.evm.operation.CallDataLoadOperation) MLoadOperation(org.hyperledger.besu.evm.operation.MLoadOperation) CallerOperation(org.hyperledger.besu.evm.operation.CallerOperation) BlockHashOperation(org.hyperledger.besu.evm.operation.BlockHashOperation) OriginOperation(org.hyperledger.besu.evm.operation.OriginOperation) GasPriceOperation(org.hyperledger.besu.evm.operation.GasPriceOperation) GasOperation(org.hyperledger.besu.evm.operation.GasOperation) MulOperation(org.hyperledger.besu.evm.operation.MulOperation) CallValueOperation(org.hyperledger.besu.evm.operation.CallValueOperation) IsZeroOperation(org.hyperledger.besu.evm.operation.IsZeroOperation) AddressOperation(org.hyperledger.besu.evm.operation.AddressOperation) MStore8Operation(org.hyperledger.besu.evm.operation.MStore8Operation) EqOperation(org.hyperledger.besu.evm.operation.EqOperation) CodeCopyOperation(org.hyperledger.besu.evm.operation.CodeCopyOperation) ExtCodeCopyOperation(org.hyperledger.besu.evm.operation.ExtCodeCopyOperation) NotOperation(org.hyperledger.besu.evm.operation.NotOperation) AndOperation(org.hyperledger.besu.evm.operation.AndOperation) InvalidOperation(org.hyperledger.besu.evm.operation.InvalidOperation) PopOperation(org.hyperledger.besu.evm.operation.PopOperation) SubOperation(org.hyperledger.besu.evm.operation.SubOperation) ModOperation(org.hyperledger.besu.evm.operation.ModOperation) SModOperation(org.hyperledger.besu.evm.operation.SModOperation) AddModOperation(org.hyperledger.besu.evm.operation.AddModOperation) MulModOperation(org.hyperledger.besu.evm.operation.MulModOperation) OrOperation(org.hyperledger.besu.evm.operation.OrOperation) CreateOperation(org.hyperledger.besu.evm.operation.CreateOperation) SStoreOperation(org.hyperledger.besu.evm.operation.SStoreOperation) ByteOperation(org.hyperledger.besu.evm.operation.ByteOperation) AddModOperation(org.hyperledger.besu.evm.operation.AddModOperation) SignExtendOperation(org.hyperledger.besu.evm.operation.SignExtendOperation) SGtOperation(org.hyperledger.besu.evm.operation.SGtOperation)

Aggregations

AddModOperation (org.hyperledger.besu.evm.operation.AddModOperation)1 AddOperation (org.hyperledger.besu.evm.operation.AddOperation)1 AddressOperation (org.hyperledger.besu.evm.operation.AddressOperation)1 AndOperation (org.hyperledger.besu.evm.operation.AndOperation)1 BalanceOperation (org.hyperledger.besu.evm.operation.BalanceOperation)1 BlockHashOperation (org.hyperledger.besu.evm.operation.BlockHashOperation)1 ByteOperation (org.hyperledger.besu.evm.operation.ByteOperation)1 CallCodeOperation (org.hyperledger.besu.evm.operation.CallCodeOperation)1 CallDataCopyOperation (org.hyperledger.besu.evm.operation.CallDataCopyOperation)1 CallDataLoadOperation (org.hyperledger.besu.evm.operation.CallDataLoadOperation)1 CallDataSizeOperation (org.hyperledger.besu.evm.operation.CallDataSizeOperation)1 CallOperation (org.hyperledger.besu.evm.operation.CallOperation)1 CallValueOperation (org.hyperledger.besu.evm.operation.CallValueOperation)1 CallerOperation (org.hyperledger.besu.evm.operation.CallerOperation)1 CodeCopyOperation (org.hyperledger.besu.evm.operation.CodeCopyOperation)1 CodeSizeOperation (org.hyperledger.besu.evm.operation.CodeSizeOperation)1 CoinbaseOperation (org.hyperledger.besu.evm.operation.CoinbaseOperation)1 CreateOperation (org.hyperledger.besu.evm.operation.CreateOperation)1 DelegateCallOperation (org.hyperledger.besu.evm.operation.DelegateCallOperation)1 DifficultyOperation (org.hyperledger.besu.evm.operation.DifficultyOperation)1