aboutsummaryrefslogtreecommitdiffstats
path: root/liblll/CompilerState.cpp
Commit message (Collapse)AuthorAgeFilesLines
* LLL: change (include) to use a callbackAlex Beregszaszi2017-10-031-1/+1
|
* Mark a lot of functions const (where possible)Alex Beregszaszi2017-08-221-1/+1
|
* LLL: rewrite alloc to avoid issues with edge cases.benjaminion2017-07-121-0/+2
|
* LLL: Fix msg macro with six arguments.benjaminion2017-06-221-1/+2
| | | | | | The previous macro used the set built-in in a way incompatible with the current implementation of set. This commit updates the macro to be more transparent in how it's working and avoids the use of the set and alloc built-ins.
* LLL: Fix for edge case in the create macros.benjaminion2017-06-221-2/+3
| | | | | | When (msize) is initially zero the previous create commands failed due to the "lll" expression overwriting the memory at 0x00. This fix "reserves" memory location 0x00 before calling msize. If msize is already 32 or greater it has no effect.
* LLL: Correctly label arguments to ecrecover built-in macro.benjaminion2017-06-221-1/+1
| | | | (r s v hash) -> (hash v r s) which corresponds to the order that the built-in EVM contract uses.
* Support shl/shr in LLLAlex Beregszaszi2017-06-141-0/+3
|
* LLL: fix handling of "sha3" expressionbenjaminion2017-06-141-1/+1
| | | | | | When PR #2317 changed the EVM opcode from SHA3 to KECCAK256 it broke the `(sha3 loc len)` expression in LLL. This PR fixes things while allowing existing code using the sha3 expression (such as the ENS registrar) to continue to compile. I.e. both `(keccak256 loc len)` and `(sha3 loc len)` may be used, and the existing related sha3 macros continue to work. Three end-to-end test cases have been added for kekkac256 and sha3.
* Change opcode generated by (panic) to INVALIDbenjaminion2017-06-141-0/+1
| | | | | | EIP-141 ethereum/EIPs#141 has preserved 0xfe as an invalid opcode for aborting EVM execution. The EVM assembler supports this via the INVALID opcode. The LLL "panic" expression used to generate a jump to an invalid location in order to abort EVM execution. This change brings "panic" into line with EIP-141 by generating the INVALID opcode instead.
* Replace cpp-ethereum with solidity in the license headersAlex Beregszaszi2017-02-021-4/+4
|
* LLL: add Ethereum subunit macrosAlex Beregszaszi2016-10-151-0/+4
|
* Removed obsolete built in macros. Added a new macro to support the use of ↵Daniel Ellison2016-10-131-9/+1
| | | | 'keccak256' in addition to 'sha3'.
* move liblllDimitry2016-03-211-0/+82