mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-21 20:26:41 +00:00
Codegen for GAS
This commit is contained in:
parent
0c259cd267
commit
9b3c446578
1 changed files with 7 additions and 0 deletions
|
|
@ -659,6 +659,13 @@ std::unique_ptr<llvm::Module> Compiler::compile(const dev::bytes& bytecode)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
case Instruction::GAS:
|
||||||
|
{
|
||||||
|
auto value = builder.CreateLoad(gasMeter.getLLVMGasVar());
|
||||||
|
stack.push(value);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
case Instruction::ADDRESS:
|
case Instruction::ADDRESS:
|
||||||
{
|
{
|
||||||
auto value = ext.address();
|
auto value = ext.address();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue