Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Added tests and review suggestions | Leonardo Alt | 2018-07-11 | 4 | -22/+22 |
| | |||||
* | [050] Reserving and popping local vars in their scope | Leonardo Alt | 2018-07-11 | 4 | -41/+110 |
| | |||||
* | Fix allocation of byte arrays. | chriseth | 2018-07-05 | 1 | -1/+1 |
| | |||||
* | Merge pull request #4224 from ethereum/revert_wrong_calldata | chriseth | 2018-07-02 | 3 | -48/+34 |
|\ | | | | | [BREAKING] Revert if calldata has wrong size | ||||
| * | Revert if calldata is too short or points out of bounds | Leonardo Alt | 2018-06-26 | 3 | -48/+34 |
| | | |||||
* | | Save double encode call for sha3. | chriseth | 2018-06-25 | 1 | -8/+16 |
| | | |||||
* | | Bare functions take single bytes argument. | chriseth | 2018-06-25 | 1 | -56/+15 |
| | | |||||
* | | Single bytes argument. | chriseth | 2018-06-25 | 1 | -11/+28 |
|/ | | | | | In 0.5.0 mode, only accept a single bytes argument for ``.call``, ``keccak256`` and others and do not pad when encoding. | ||||
* | Change comments | Alex Beregszaszi | 2018-06-14 | 3 | -5/+5 |
| | |||||
* | Merge pull request #4272 from ethereum/assert-break-continue | chriseth | 2018-06-13 | 1 | -4/+4 |
|\ | | | | | Fail if break/continue statements are used outside for/while loops in ContractCompiler | ||||
| * | Fail if break/continue statements are used outside for/while loops in ↵ | Alex Beregszaszi | 2018-06-12 | 1 | -4/+4 |
| | | | | | | | | ContractCompiler | ||||
* | | Properly pad data from calldata. | chriseth | 2018-06-13 | 1 | -6/+11 |
| | | |||||
* | | Extend explanatory remark and argue using bitwise operations instead of ↵ | Daniel Kirchner | 2018-06-12 | 1 | -6/+14 |
| | | | | | | | | rounding. | ||||
* | | Use proper SAR for signed right shifts and emulate on pre-constantinople. | Daniel Kirchner | 2018-06-12 | 1 | -4/+21 |
|/ | |||||
* | Fixes assembly bug and adds tests to cover it. | Erik Kundt | 2018-05-30 | 1 | -5/+4 |
| | |||||
* | Adds syntax tests, documentation and changelog entry. | Erik Kundt | 2018-05-30 | 2 | -2/+2 |
| | | | | Refines comment for array utility function. | ||||
* | Improves assembly and adds more tests. | Erik Kundt | 2018-05-30 | 2 | -32/+14 |
| | |||||
* | Implements pop() for byte arrays. | Erik Kundt | 2018-05-29 | 1 | -10/+65 |
| | |||||
* | Implements pop() for value type arrays. | bitshift | 2018-05-29 | 3 | -1/+64 |
| | |||||
* | Fix continue inside do-while. | Daniel Kirchner | 2018-05-17 | 1 | -12/+16 |
| | |||||
* | Fix revert with reason coming from a string variable | Alex Beregszaszi | 2018-05-09 | 2 | -1/+4 |
| | |||||
* | fixed grammar in error in CompilerUtils.cpp line 399, 'less variables.' ↵ | njwest | 2018-05-07 | 1 | -3/+3 |
| | | | | should be 'fewer variables.' | ||||
* | Change bytes to unsigned in FixedBytesType | daniel | 2018-05-04 | 1 | -2/+2 |
| | |||||
* | Removed signed shift right from the utilities. | chriseth | 2018-05-01 | 6 | -24/+24 |
| | |||||
* | Do not use SAR instead of SDIV in shifts because it rounds differently | Alex Beregszaszi | 2018-05-01 | 3 | -7/+10 |
| | |||||
* | Use native shift instructions in ABIFunctions on Constantinople | Alex Beregszaszi | 2018-05-01 | 3 | -26/+70 |
| | |||||
* | Use native shift instructions on Constantinople | Alex Beregszaszi | 2018-05-01 | 2 | -4/+19 |
| | |||||
* | Add virtual destructor in LValue class. | Alexander Arlt | 2018-04-25 | 1 | -0/+1 |
| | |||||
* | Remove redundant cleanup for abi.encode. | Alex Beregszaszi | 2018-04-16 | 1 | -2/+1 |
| | |||||
* | Properly force-clean for shortening bytesXX conversions. | chriseth | 2018-04-16 | 1 | -10/+9 |
| | |||||
* | Merge pull request #3364 from ethereum/revertWithReason | chriseth | 2018-04-13 | 6 | -12/+76 |
|\ | | | | | Revert with reason | ||||
| * | Use error signature for revert data. | chriseth | 2018-04-12 | 3 | -20/+24 |
| | | |||||
| * | Only forward returndata if EVM version supports it. | chriseth | 2018-04-12 | 2 | -1/+3 |
| | | |||||
| * | Bubble up error messages. | chriseth | 2018-04-12 | 5 | -11/+26 |
| | | |||||
| * | Allow error string for ``require``. | chriseth | 2018-04-12 | 1 | -0/+26 |
| | | |||||
| * | Code generator for revert with reason string. | chriseth | 2018-04-12 | 1 | -1/+18 |
| | | |||||
* | | Add abi.encode, abi.encodePacked, abi.encodeWithSelector and ↵ | Alex Beregszaszi | 2018-04-12 | 1 | -0/+102 |
|/ | | | | abi.encodeWithSignature. | ||||
* | Error when using no parentheses in modifier-style constructor calls. | Daniel Kirchner | 2018-04-10 | 1 | -3/+6 |
| | |||||
* | Move constructor argument override check to TypeChecker and reuse ↵ | Daniel Kirchner | 2018-04-09 | 2 | -28/+13 |
| | | | | annotations in ContractCompiler. | ||||
* | Merge pull request #3824 from ethereum/baseArgumentsEmptyParenthesis | Daniel Kirchner | 2018-04-05 | 1 | -2/+2 |
|\ | | | | | Error when using empty parentheses for base class constructors that r… | ||||
| * | Error when using empty parenthesis for base class constructors that require ↵ | Daniel Kirchner | 2018-04-05 | 1 | -2/+2 |
| | | | | | | | | arguments. | ||||
* | | More specific push implementation. | chriseth | 2018-04-04 | 3 | -13/+71 |
| | | |||||
* | | Create empty dynamic memory arrays more efficiently. | chriseth | 2018-04-04 | 2 | -8/+29 |
|/ | |||||
* | Merge pull request #3693 from ethereum/optimizeMLOAD | Alex Beregszaszi | 2018-04-03 | 2 | -25/+32 |
|\ | | | | | Optimize across MLOAD if MSIZE is not used. | ||||
| * | Optimize across MLOAD if MSIZE is not used. | chriseth | 2018-04-03 | 2 | -25/+32 |
| | | |||||
* | | Fix: Treat empty base constructor argument list as not provided. | chriseth | 2018-04-03 | 1 | -3/+5 |
|/ | |||||
* | Prevent encoding of weird types and support packed encoding of external ↵ | chriseth | 2018-03-29 | 1 | -1/+0 |
| | | | | function types. | ||||
* | Add runtimeOnly option to pushCombinedFunctionEntryLabel | Alex Beregszaszi | 2018-03-27 | 3 | -8/+8 |
| | |||||
* | Use shortcut for internal function calls to avoid runtime reference. | chriseth | 2018-03-27 | 1 | -1/+23 |
| | |||||
* | Decode dynamic data. | chriseth | 2018-03-21 | 3 | -17/+47 |
| | |||||
* | Move dynamic type removal out of the type system. | chriseth | 2018-03-21 | 1 | -5/+12 |
| | |||||
* | Simple size check for old ABI decoder. | chriseth | 2018-03-21 | 3 | -32/+97 |
| | |||||
* | Move the old ABI decoder code. | chriseth | 2018-03-20 | 4 | -105/+106 |
| | |||||
* | Merge pull request #3725 from ethereum/blockhashNoCall | chriseth | 2018-03-15 | 1 | -0/+3 |
|\ | | | | | Allow ``block.blockhash`` without it being called. | ||||
| * | Allow ``block.blockhash`` without being called. | chriseth | 2018-03-14 | 1 | -0/+3 |
| | | |||||
* | | Bugfix in virtual lookup for modifiers in libraries. | chriseth | 2018-03-13 | 3 | -5/+16 |
|/ | |||||
* | Properly skip cleanup if only enlarging storage array. | chriseth | 2018-03-09 | 1 | -2/+2 |
| | |||||
* | Warn about using loose inline assembly features as experimental 0.5.0 feature. | chriseth | 2018-03-07 | 1 | -0/+1 |
| | |||||
* | Use STATICCALL for pure function calls if EVM version supports it and 0.5.0 ↵ | chriseth | 2018-03-06 | 1 | -0/+9 |
| | | | | is activated. | ||||
* | Merge pull request #3652 from ethereum/gasleft_v2 | chriseth | 2018-03-06 | 1 | -5/+0 |
|\ | | | | | Use StaticAnalyzer to deprecate msg.gas instead of conditionally remo… | ||||
| * | Use StaticAnalyzer to deprecate msg.gas instead of conditionally removing it ↵ | Daniel Kirchner | 2018-03-06 | 1 | -5/+0 |
| | | | | | | | | in MagicType. | ||||
* | | Merge pull request #3599 from ethereum/sendAllGasOnByzantium | chriseth | 2018-03-06 | 1 | -10/+13 |
|\ \ | | | | | | | Send all gas on byzantium | ||||
| * | | Do not retain any gas in external calls (except if EVM version is set to ↵ | chriseth | 2018-03-06 | 1 | -10/+13 |
| | | | | | | | | | | | | homestead). | ||||
* | | | Merge pull request #3643 from ethereum/gasleft | chriseth | 2018-03-06 | 1 | -0/+8 |
|\ \ \ | |/ / |/| / | |/ | Move msg.gas to global function gasleft(). Closes #2971. | ||||
| * | Style improvements. | Daniel Kirchner | 2018-03-06 | 1 | -2/+5 |
| | | |||||
| * | Move msg.gas to global function gasleft(). Closes #2971. | Daniel Kirchner | 2018-03-05 | 1 | -1/+6 |
| | | |||||
* | | Use EVM version in gas meter and optimizer. | chriseth | 2018-03-05 | 4 | -5/+5 |
| | | |||||
* | | Provide EVM version to assembly analysis. | chriseth | 2018-03-02 | 1 | -0/+1 |
| | | |||||
* | | Provide target EVM version in CompilerContext. | chriseth | 2018-03-02 | 3 | -7/+17 |
|/ | |||||
* | Introduce emit statement. | chriseth | 2018-02-22 | 2 | -0/+10 |
| | |||||
* | Expect end of string at end of top-level block for assembly parser. | chriseth | 2018-02-21 | 1 | -1/+1 |
| | |||||
* | Make addmod and mulmod revert if the last argument is zero. | chriseth | 2018-02-15 | 1 | -1/+5 |
| | |||||
* | Allow `this.f.selector` to be pure. | chriseth | 2018-02-13 | 1 | -0/+24 |
| | |||||
* | Prevent libraries from being called. | chriseth | 2018-01-19 | 4 | -3/+81 |
| | |||||
* | Split inline assembly into loose and strict flavours. | chriseth | 2018-01-06 | 2 | -4/+9 |
| | |||||
* | Reset source location after using inline assembly. | chriseth | 2018-01-04 | 1 | -0/+3 |
| | |||||
* | Favour if over switch in ABI coder. | chriseth | 2017-12-15 | 1 | -14/+14 |
| | |||||
* | Cleanup and overflow checks for data pointers. | chriseth | 2017-11-30 | 4 | -23/+47 |
| | |||||
* | ABI decoder. | chriseth | 2017-11-30 | 6 | -4/+503 |
| | |||||
* | Use if statement in abi functions. | chriseth | 2017-11-22 | 1 | -3/+3 |
| | |||||
* | Add explanation to unimplemented assertions | Alex Beregszaszi | 2017-11-16 | 2 | -3/+3 |
| | |||||
* | Do not accept truncated function selectors. | chriseth | 2017-10-18 | 1 | -7/+4 |
| | |||||
* | Allocate one byte per memory byte array element instead of 32. | chriseth | 2017-10-17 | 1 | -2/+9 |
| | |||||
* | Merge pull request #2982 from ethereum/encoderFixes | Alex Beregszaszi | 2017-10-05 | 2 | -25/+18 |
|\ | | | | | ABI encoder fixes and test. | ||||
| * | Rename "compacted" to "fromStack". | chriseth | 2017-10-04 | 2 | -22/+18 |
| | | |||||
| * | ABI encoder fixes and test. | chriseth | 2017-09-27 | 1 | -5/+2 |
| | | |||||
* | | Merge pull request #3029 from ethereum/tanwisgas | Alex Beregszaszi | 2017-10-05 | 1 | -0/+3 |
|\ \ | | | | | | | Send all gas for 0.5.0. | ||||
| * | | Send all gas for 0.5.0. | chriseth | 2017-10-05 | 1 | -0/+3 |
| | | | |||||
* | | | Merge pull request #2968 from ethereum/calldataencodedsize | chriseth | 2017-10-05 | 1 | -0/+3 |
|\ \ \ | |/ / |/| | | Add some asserts about calldata encoded size. | ||||
| * | | Add some asserts about calldata encoded size. | chriseth | 2017-10-04 | 1 | -0/+3 |
| | | | |||||
* | | | Merge pull request #2962 from ethereum/optionalDebugInfoAsm | chriseth | 2017-10-04 | 1 | -5/+16 |
|\ \ \ | | | | | | | | | Debugging info in CompilerContext. | ||||
| * | | | Debugging info in CompilerContext. | chriseth | 2017-10-04 | 1 | -5/+16 |
| | | | | |||||
* | | | | Better readable encoder assembly. | chriseth | 2017-09-27 | 1 | -6/+28 |
| |_|/ |/| | | |||||
* | | | Split encodeToMemory to packedEncode and abiEncode | Alex Beregszaszi | 2017-09-27 | 4 | -18/+41 |
| | | | |||||
* | | | Make most of the parameters mandatory in encodeToMemory | Alex Beregszaszi | 2017-09-27 | 2 | -6/+6 |
| | | | |||||
* | | | Ensure that address types are always declared as 160bit | Alex Beregszaszi | 2017-09-27 | 3 | -6/+6 |
| |/ |/| | |||||
* | | Simplify switch statements by refactoring internal break statements | Alex Beregszaszi | 2017-09-25 | 2 | -24/+24 |
| | | |||||
* | | Avoid switch fallthrough in ExpressionCompiler | Alex Beregszaszi | 2017-09-25 | 1 | -26/+32 |
| | | |||||
* | | Avoid switch fallthrough in CompilerUtils | Alex Beregszaszi | 2017-09-25 | 1 | -6/+3 |
|/ | |||||
* | More verbose errors for generated assembly. | chriseth | 2017-09-22 | 1 | -2/+18 |
| | |||||
* | Mark functions static | Alex Beregszaszi | 2017-09-20 | 2 | -2/+2 |
| | |||||
* | Ensure parameter names match between headers and implementation | Alex Beregszaszi | 2017-09-20 | 1 | -2/+2 |
| | |||||
* | Implement struct encoder. | chriseth | 2017-09-16 | 3 | -6/+131 |
| | |||||
* | Update tests and error messages. | chriseth | 2017-09-16 | 1 | -1/+1 |
| | |||||
* | Move ABI encoder into its own function. | chriseth | 2017-09-16 | 5 | -66/+82 |
| | |||||
* | Named assembly labels. | chriseth | 2017-09-16 | 3 | -15/+8 |
| | |||||
* | Rename .sig to .selector on function types | Alex Beregszaszi | 2017-09-13 | 1 | -1/+1 |
| | |||||
* | Add sig member on function type | Alex Beregszaszi | 2017-09-13 | 1 | -1/+8 |
| | |||||
* | Introduce assemblyString | Alex Beregszaszi | 2017-09-11 | 2 | -4/+4 |
| | |||||
* | Do not return the stream in asssemblyStream | Alex Beregszaszi | 2017-09-11 | 2 | -4/+4 |
| | |||||
* | Split out the JSON functionality from assembly.stream() | Alex Beregszaszi | 2017-09-11 | 2 | -6/+15 |
| | |||||
* | Merge pull request #2847 from ethereum/codegen-docs | Alex Beregszaszi | 2017-08-29 | 3 | -1/+25 |
|\ | | | | | Document more of the codegen features | ||||
| * | Document more of the codegen features | Alex Beregszaszi | 2017-08-29 | 3 | -1/+25 |
| | | |||||
* | | Merge pull request #2833 from ethereum/statemutability-builtins | chriseth | 2017-08-29 | 1 | -1/+1 |
|\ \ | | | | | | | Mark all built in functions with appropriate statemutability | ||||
| * | | Swap declaration/statemutability in FunctionType constructor | Alex Beregszaszi | 2017-08-29 | 1 | -1/+1 |
| |/ | |||||
* / | Move all file specific globals to anonymous namespace | Alex Beregszaszi | 2017-08-29 | 1 | -0/+5 |
|/ | |||||
* | Mark to places fall-through | Alex Beregszaszi | 2017-08-25 | 2 | -0/+2 |
| | |||||
* | Remove fallthrough from ArrayUtils | Alex Beregszaszi | 2017-08-25 | 1 | -3/+3 |
| | |||||
* | Mark a lot of functions static (where possible) | Alex Beregszaszi | 2017-08-22 | 2 | -2/+2 |
| | |||||
* | Mark appropriate constructors explicit | Alex Beregszaszi | 2017-08-22 | 3 | -3/+3 |
| | |||||
* | Mark a lot of functions const (where possible) | Alex Beregszaszi | 2017-08-22 | 6 | -9/+9 |
| | |||||
* | Merge pull request #2704 from ethereum/newEncoder | chriseth | 2017-08-14 | 7 | -10/+1296 |
|\ | | | | | New ABI encoder | ||||
| * | Experimental feature switch for ABI encoder. | chriseth | 2017-08-14 | 3 | -2/+10 |
| | | |||||
| * | Remove unused magic global feature. | chriseth | 2017-08-14 | 2 | -10/+2 |
| | | |||||
| * | Interface for new ABI encoder. | chriseth | 2017-08-14 | 2 | -0/+40 |
| | | |||||
| * | New ABI encoder. | chriseth | 2017-08-14 | 2 | -0/+1246 |
| | | |||||
* | | Remove constant/payable in all function types | Alex Beregszaszi | 2017-08-14 | 1 | -2/+1 |
|/ | |||||
* | .delegatecall() should always return a boolean of execution status | Alex Beregszaszi | 2017-08-02 | 1 | -1/+1 |
| | |||||
* | Provide new account gas for low-level callcode/delegatecall | Alex Beregszaszi | 2017-08-01 | 1 | -1/+1 |
| | |||||
* | Rename Bare to Barecall | Alex Beregszaszi | 2017-08-01 | 1 | -5/+5 |
| | |||||
* | Fix for invalid clearing of memory in ecrecover. | chriseth | 2017-07-28 | 1 | -1/+1 |
| | |||||
* | Remove the need of jumping out of the fallback | Alex Beregszaszi | 2017-07-28 | 1 | -8/+4 |
| | |||||
* | Merge pull request #2652 from ethereum/fixMultiModifier | chriseth | 2017-07-27 | 2 | -6/+11 |
|\ | | | | | Re-allow multiple modifiers per function. | ||||
| * | Re-allow multiple modifiers per function. | chriseth | 2017-07-27 | 2 | -6/+11 |
| | | |||||
* | | Merge pull request #2645 from ethereum/asserts | Alex Beregszaszi | 2017-07-27 | 2 | -14/+12 |
|\ \ | |/ |/| | Use solAssert where possible | ||||
| * | Use solAssert instead of boost throw where possible | Alex Beregszaszi | 2017-07-27 | 2 | -14/+12 |
| | | |||||
* | | Report location on stack too deep if possible | Alex Beregszaszi | 2017-07-27 | 2 | -1/+7 |
|/ | |||||
* | Change fixed point types to have digit count | VoR0220 | 2017-07-20 | 1 | -1/+1 |
| | | | | Signed-off-by: VoR0220 <rj@erisindustries.com> | ||||
* | Fix internal "variable already present" error. | chriseth | 2017-07-05 | 1 | -0/+3 |
| | |||||
* | Add assert to shift helper | Alex Beregszaszi | 2017-07-03 | 1 | -0/+2 |
| | |||||
* | Use shift helper in LValue | Alex Beregszaszi | 2017-07-03 | 1 | -4/+2 |
| | |||||
* | More uses of shift helper | Alex Beregszaszi | 2017-07-03 | 1 | -6/+10 |
| | |||||
* | Change shiftNumberOnStack to bits | Alex Beregszaszi | 2017-07-03 | 3 | -13/+13 |
| | |||||
* | Use shift helper | Alex Beregszaszi | 2017-07-03 | 2 | -8/+8 |
| | |||||
* | Add shift helper to CompilerUtils | Alex Beregszaszi | 2017-07-03 | 2 | -0/+16 |
| | |||||
* | Abort early if there is nothing to encode or decode. | chriseth | 2017-06-30 | 2 | -3/+9 |
| | |||||
* | Document appendFunctionSelector | Alex Beregszaszi | 2017-06-29 | 1 | -0/+4 |
| | |||||
* | Stack adjustment and code generation for fallback function. | chriseth | 2017-06-29 | 1 | -4/+6 |
| | | | | This assumes that the fallback function does not have return parameters. | ||||
* | Fix negative stack size checks. | chriseth | 2017-06-28 | 2 | -0/+11 |
| | |||||
* | Merge pull request #2459 from ethereum/noComparisonForSomeTypes | Alex Beregszaszi | 2017-06-27 | 1 | -0/+1 |
|\ | | | | | No comparison for some types | ||||
| * | Disallow comparisons between some types. | chriseth | 2017-06-26 | 1 | -0/+1 |
| | | |||||
* | | Merge pull request #2453 from ethereum/memcopyAsForLoop | Alex Beregszaszi | 2017-06-27 | 2 | -23/+20 |
|\ \ | |/ |/| | Use for loop for assembly memcopy. | ||||
| * | Comment about zero length. | chriseth | 2017-06-27 | 1 | -0/+2 |
| | | |||||
| * | Reformat. | chriseth | 2017-06-26 | 1 | -6/+9 |
| | | |||||
| * | Use for loop for assembly memcopy. | chriseth | 2017-06-26 | 1 | -23/+15 |
| | | |||||
* | | Merge pull request #2460 from ethereum/disallowMultiModifier | Alex Beregszaszi | 2017-06-26 | 2 | -0/+5 |
|\ \ | |/ |/| | Disallow invoking the same modifier multiple times. | ||||
| * | Disallow invoking the same modifier multiple times. | chriseth | 2017-06-24 | 2 | -0/+5 |
| | | |||||
* | | Review suggestions. | chriseth | 2017-06-24 | 1 | -1/+1 |
| | | |||||
* | | Change invalid opcode to revert for input validation. | chriseth | 2017-06-24 | 6 | -20/+52 |
|/ | |||||
* | Merge pull request #2444 from ethereum/parser-scanner | Alex Beregszaszi | 2017-06-23 | 1 | -0/+1 |
|\ | | | | | Avoid including Scanner.h in ParserBase.h | ||||
| * | Avoid including Scanner.h in ParserBase.h | Alex Beregszaszi | 2017-06-23 | 1 | -0/+1 |
| | | |||||
* | | Fix ABI encoding of empty string literal. | chriseth | 2017-06-22 | 1 | -1/+1 |
|/ | |||||
* | Merge interface/Exceptions and interface/Utils | Alex Beregszaszi | 2017-06-22 | 3 | -2/+3 |
| | |||||
* | Move subroutine helpers from CompilerContext to Assembly | Alex Beregszaszi | 2017-06-15 | 1 | -3/+3 |
| | |||||
* | Remove obsolete errorTag() | Alex Beregszaszi | 2017-06-15 | 1 | -2/+0 |
| | |||||
* | Use inline assembly directly and not via AsmStack | Alex Beregszaszi | 2017-06-09 | 1 | -3/+17 |
| | |||||
* | Remove error reporter from code generation phase. | chriseth | 2017-06-08 | 1 | -5/+1 |
| | |||||
* | Initial EVM1.5 assembly implementation. | chriseth | 2017-06-08 | 2 | -7/+13 |
| | |||||
* | Merge pull request #2317 from ethereum/keccak256 | chriseth | 2017-05-31 | 4 | -8/+8 |
|\ | | | | | Use keccak256 in tests and replace the SHA3 instruction in assembly | ||||
| * | Rename the SHA3 assembly instruction to KECCAK256 | Alex Beregszaszi | 2017-05-30 | 4 | -8/+8 |
| | | |||||
* | | Refactor error reporting | Rhett Aultman | 2017-05-30 | 1 | -2/+3 |
|/ | | | | | | | | | This commit introduces ErrorReporter, a utility class which consolidates all of the error logging functionality into a common set of functions. It also replaces all direct interactions with an ErrorList with calls to an ErrorReporter. This commit resolves issue #2209 | ||||
* | Adapt EVM codegen to new namespace. | chriseth | 2017-05-26 | 2 | -9/+9 |
| | |||||
* | Merge pull request #1810 from ethereum/compactJson | chriseth | 2017-05-22 | 1 | -3/+3 |
|\ | | | | | Compact format for AST-Json. | ||||
| * | refactoring functionCallAnnotation | djudjuu | 2017-05-19 | 1 | -3/+3 |
| | | |||||
* | | Refactor to abstract assembly to JULIA. | chriseth | 2017-05-20 | 2 | -24/+28 |
|/ | |||||
* | Remove error label / invalid jump label. | chriseth | 2017-04-28 | 2 | -23/+0 |
| | |||||
* | Refactor to combined scope and stack height info. | chriseth | 2017-04-26 | 1 | -1/+2 |
| | |||||
* | Special case for storage types with offset zero. | chriseth | 2017-04-25 | 1 | -3/+18 |
| | |||||
* | Build fix. | chriseth | 2017-04-25 | 1 | -1/+1 |
| | |||||
* | Storage access from inline assembly. | chriseth | 2017-04-25 | 1 | -10/+35 |
| | |||||
* | Move analysis out of code generator. | chriseth | 2017-04-25 | 1 | -1/+3 |
| | |||||
* | Only allow access to local variables and only if they have a stack size of one. | chriseth | 2017-04-25 | 1 | -34/+14 |
| | |||||
* | Review comments. | chriseth | 2017-04-25 | 2 | -2/+6 |
| | |||||
* | Review comments and cleanup. | chriseth | 2017-04-25 | 1 | -2/+5 |
| | |||||
* | Split external identifier access into resolving and code generation. | chriseth | 2017-04-25 | 2 | -80/+95 |
| | |||||
* | Change references to FunctionType::Location | Alex Beregszaszi | 2017-03-16 | 3 | -86/+84 |
| | |||||
* | Require and Assert. | chriseth | 2017-03-14 | 1 | -2/+6 |
| | |||||
* | Merge pull request #1702 from ethereum/assertError | Yoichi Hirai | 2017-03-04 | 1 | -3/+2 |
|\ | | | | | Change effect of assert to invalid opcode. | ||||
| * | Change effect of assert to invalid opcode. | chriseth | 2017-02-16 | 1 | -3/+2 |
| | | |||||
* | | Merge pull request #1700 from ethereum/fixNoMobile | chriseth | 2017-02-24 | 1 | -0/+3 |
|\ \ | | | | | | | Some checks for the existence of mobile type. | ||||
| * | | Some checks for the existence of mobile type. | chriseth | 2017-02-16 | 1 | -0/+3 |
| |/ | |||||
* | | Disallow setting .gas() on .transfer() | Alex Beregszaszi | 2017-02-24 | 1 | -8/+4 |
| | | |||||
* | | Do not keep the gas stipend if sending non-zero value | Alex Beregszaszi | 2017-02-24 | 1 | -1/+1 |
| | | |||||
* | | Support gas modifier on addr.transfer() | Alex Beregszaszi | 2017-02-24 | 1 | -1/+2 |
| | | |||||
* | | Implement address.transfer() | Alex Beregszaszi | 2017-02-24 | 1 | -4/+15 |
|/ | |||||
* | Use the revert opcode in assert() | Alex Beregszaszi | 2017-02-11 | 1 | -2/+8 |
| | |||||
* | Use the REVERT opcode for throw; | Alex Beregszaszi | 2017-02-11 | 1 | -1/+3 |
| | |||||
* | Support revert() | Alex Beregszaszi | 2017-02-11 | 1 | -0/+5 |
| | |||||
* | Cleanup is not needed for assert() | Alex Beregszaszi | 2017-02-10 | 1 | -1/+1 |
| | |||||
* | Implement assert as a global function | Alex Beregszaszi | 2017-02-10 | 1 | -0/+8 |
| | |||||
* | Rename SUICIDE opcode to SELFDESTRUCT in libevmasm | Alex Beregszaszi | 2017-02-07 | 1 | -1/+1 |
| | |||||
* | Warn early when exhausting stack | Alex Beregszaszi | 2017-02-02 | 1 | -0/+1 |
| | |||||
* | Only capture function type to address conversion | Alex Beregszaszi | 2017-02-01 | 1 | -8/+10 |
| | |||||
* | Be more verbose on the stack-mismatch errors | Alex Beregszaszi | 2017-02-01 | 1 | -1/+1 |
| | |||||
* | Support explicit conversion of external function type to address | Alex Beregszaszi | 2017-02-01 | 2 | -1/+13 |
| | |||||
* | Changelog and review suggestions. | chriseth | 2017-01-27 | 1 | -1/+1 |
| | |||||
* | Uninitialized internal function should call INVALID. | chriseth | 2017-01-26 | 1 | -1/+3 |
| | |||||
* | Allow inserting low-level functions without calling them. | chriseth | 2017-01-26 | 2 | -5/+26 |
| | |||||
* | Split line. | chriseth | 2017-01-26 | 1 | -1/+3 |
| | |||||
* | Address feedback from code review. | Valentin Wüstholz | 2017-01-26 | 2 | -6/+6 |
| | |||||
* | Change translation of implicit throws (issue #1589). | Valentin Wüstholz | 2017-01-26 | 6 | -13/+31 |
| | | | | | | | This adds a new invalid instruction that is used for encoding implicit throws that are emitted by the compiler. This makes it possible to distinguish such runtime errors from user-provided, explicit throws. | ||||
* | Warn about invalid checksums of addresses. | chriseth | 2017-01-25 | 1 | -0/+1 |
| | |||||
* | Include creation code only once. | chriseth | 2017-01-25 | 1 | -14/+18 |
| | |||||
* | Use int arithmetics for stack adjustment. | chriseth | 2017-01-24 | 1 | -1/+1 |
| | |||||
* | Change clearStorageLoop to TypePointer. | chriseth | 2017-01-24 | 2 | -16/+18 |
| | |||||
* | Use shared_ptrs to enable shared_from_this. | chriseth | 2017-01-24 | 1 | -4/+4 |
| | |||||
* | Convert ArrayUtils routines into low-level functions. | chriseth | 2017-01-24 | 1 | -228/+251 |
| | |||||
* | Move some util functions to low-level functions. | chriseth | 2017-01-24 | 5 | -244/+320 |
| | |||||
* | Low level named functions for CompilerContext. | chriseth | 2017-01-24 | 2 | -0/+23 |
| | |||||
* | Report source location on "stack too deep" errors. | chriseth | 2017-01-21 | 2 | -2/+14 |
| | |||||
* | Use fully-qualified names for linking, too | Rhett Aultman | 2017-01-17 | 2 | -3/+3 |
| | | | | | | | | | | | | | | | Using libraries leaves behind a library link reference in the binary which the linker must later resolve. These link references were still being generated by name and not by fully-qualified name. This would lead to a link-time collision between two libraries having the same name but in different source units. This change changes linker symbols over to fully-qualified names, which resolves that issue. This does potentially introduce a new problem, which is that linker symbols appear to be limited to 36 characters and are truncated. Storing paths extends the average symbol size, and it would be great if truncation was from the tail rather than the head. | ||||
* | ast, codegen: enable accessing events through contract names. | Yoichi Hirai | 2017-01-03 | 1 | -9/+33 |
| | | | | Fixes #1286 | ||||
* | Merge pull request #1487 from ethereum/shift-ops | Yoichi Hirai | 2016-12-14 | 2 | -30/+98 |
|\ | | | | | Shift operators | ||||
| * | Use correct type for storing. | chriseth | 2016-12-13 | 1 | -7/+7 |
| | | |||||
| * | Cleaner shift handling and type conversion for binary operations. | chriseth | 2016-12-12 | 2 | -45/+80 |
| | | |||||
| * | Support bitshifting in variables | Alex Beregszaszi | 2016-12-12 | 2 | -9/+42 |
| | | |||||
* | | Renamed padToWordBoundaries -> padToWords | chriseth | 2016-12-13 | 2 | -14/+14 |
| | | |||||
* | | Split memcopy into three functions. | chriseth | 2016-12-12 | 3 | -54/+79 |
| | | |||||
* | | Fix inline assembly. | chriseth | 2016-12-12 | 1 | -1/+2 |
| | | |||||
* | | Reset stack height after inline assembly block | Alex Beregszaszi | 2016-12-12 | 1 | -0/+1 |
| | | |||||
* | | Better assert message for appendInlineAssembnly | Alex Beregszaszi | 2016-12-12 | 1 | -1/+1 |
| | | |||||
* | | Implement identity call in inline assembly | Alex Beregszaszi | 2016-12-12 | 1 | -14/+21 |
| | | |||||
* | | Turn off the identity precompile for testing | Alex Beregszaszi | 2016-12-12 | 1 | -1/+1 |
| | | |||||
* | | Implement CompilerUtils::memoryCopy using inline assembly | Alex Beregszaszi | 2016-12-12 | 1 | -1/+26 |
| | | |||||
* | | Add usingIdentity option to CompilerUtils::memoryCopy | Alex Beregszaszi | 2016-12-12 | 2 | -2/+9 |
|/ | |||||
* | Merge pull request #1351 from ethereum/truncate_bit | chriseth | 2016-12-08 | 3 | -3/+5 |
|\ | | | | | Truncate a boolean from calldata into one bit | ||||
| * | codegen: clean not only booleans but all types before storing them into memory | Yoichi Hirai | 2016-12-01 | 2 | -4/+3 |
| | | |||||
| * | codegen: clean any data from the input | Yoichi Hirai | 2016-12-01 | 1 | -2/+2 |
| | | |||||
| * | codegen: truncate booleans before they enter storage | Yoichi Hirai | 2016-12-01 | 1 | -1/+0 |
| | | |||||
| * | codegen: cleanup booleans before storing them into memory | Yoichi Hirai | 2016-12-01 | 1 | -0/+2 |
| | | |||||
| * | codegen: truncate a boolean calldata down to one bit | Yoichi Hirai | 2016-12-01 | 1 | -0/+2 |
| | | |||||
* | | Throw if calling the identity precompile (memoryCopy) failed | Alex Beregszaszi | 2016-12-02 | 1 | -1/+2 |
| | | |||||
* | | Use CBOR encoding. | chriseth | 2016-12-01 | 2 | -3/+3 |
| | | |||||
* | | Fix tests. | chriseth | 2016-12-01 | 2 | -10/+0 |
| | | |||||
* | | Add swarm hash to the end of the bytecode. | chriseth | 2016-12-01 | 3 | -12/+3 |
| | | |||||
* | | Metadata stamp. | chriseth | 2016-12-01 | 4 | -7/+16 |
| | | |||||
* | | Merge pull request #1462 from ethereum/fix-incorrect-assertion | chriseth | 2016-12-01 | 1 | -1/+1 |
|\ \ | | | | | | | codegen: assertion did not assert non-nullness | ||||
| * | | codegen: assertion did not assert non-nullness | Yoichi Hirai | 2016-12-01 | 1 | -1/+1 |
| |/ | | | | | | | | | This commit strengthens an assertion so that it makes sure that a pointer is not null. Moreover, `isLocalVariable(variable)` is now positively asserted, following the error message. | ||||
* / | codegen: this commit removes one of duplicate assignments | Yoichi Hirai | 2016-12-01 | 1 | -2/+0 |
|/ | |||||
* | Use solUnimplemented wherever possible | Alex Beregszaszi | 2016-11-28 | 2 | -3/+3 |
| |