Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Change translation of implicit throws (issue #1589). | Valentin Wüstholz | 2017-01-26 | 1 | -6/+6 |
| | | | | | | | 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 |
| | |||||
* | Report source location on "stack too deep" errors. | chriseth | 2017-01-21 | 1 | -1/+6 |
| | |||||
* | Use fully-qualified names for linking, too | Rhett Aultman | 2017-01-17 | 1 | -2/+2 |
| | | | | | | | | | | | | | | | 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 | ||||
* | 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 | 1 | -44/+75 |
| | |||||
* | Support bitshifting in variables | Alex Beregszaszi | 2016-12-12 | 1 | -8/+41 |
| | |||||
* | Use solUnimplemented wherever possible | Alex Beregszaszi | 2016-11-28 | 1 | -2/+2 |
| | |||||
* | Fix licensing headers | VoR0220 | 2016-11-23 | 1 | -4/+4 |
| | | | | Signed-off-by: VoR0220 <rj@erisindustries.com> | ||||
* | Converted sub assembly to smart pointer. | chriseth | 2016-11-16 | 1 | -1/+4 |
| | |||||
* | Stored combined creation and runtime tags. | chriseth | 2016-11-16 | 1 | -7/+24 |
| | | | | | | | Includes a change to Assembly to allow tags from sub-assemblies to be used. Sorry, this get a bit bigger than I thought. | ||||
* | Unimplemented features moved to their own exception (#1361) | Rhett Aultman | 2016-11-15 | 1 | -7/+7 |
| | | | | | | | | | | | | | | | | | | Unimplemented features moved to their own exception InternalCompilerError is an exception that really should be reserved for actual internal errors of the compiler. Unimplemented features can now use either solUnimplemented( ) or, if it should be conditional, then solUnimplementedAssert( ). * Revert some unimplemented exceptions, add handlers The jsonCompiler and CommandLineInterface needed handlers for the new UnimplementedFeatureException, and some cases I had moved on to the new exception were better treated as real internal compiler errors. * Standardize on "Unimplemented feature" message | ||||
* | Merge pull request #1264 from ethereum/988 | chriseth | 2016-10-25 | 1 | -9/+14 |
|\ | | | | | State variable under contract's name | ||||
| * | codegen: refactor common code | Yoichi Hirai | 2016-10-24 | 1 | -20/+13 |
| | | |||||
| * | codegen: if a member access has been resolved as a variable, follow that | Yoichi Hirai | 2016-10-24 | 1 | -0/+12 |
| | | | | | | | | This fixes at least the first example in #988 | ||||
* | | More checks for missing mobile type. | chriseth | 2016-10-24 | 1 | -5/+13 |
|/ | |||||
* | codegen: skip contract L for L.Foo where Foo is a type | Yoichi Hirai | 2016-10-24 | 1 | -1/+6 |
| | | | | Fixes #1116 | ||||
* | Rename dev::sha3 to dev::keccak256 | Alex Beregszaszi | 2016-10-06 | 1 | -1/+1 |
| | |||||
* | Access output memory area so that we do not pay for resize during call. | chriseth | 2016-09-17 | 1 | -4/+13 |
| | |||||
* | Provide gas stipend manually for send(0). | chriseth | 2016-09-06 | 1 | -1/+6 |
| | |||||
* | Merge pull request #665 from axic/feature/accept-ether | chriseth | 2016-09-06 | 1 | -0/+2 |
|\ | | | | | BREAKING: Add payable modifier | ||||
| * | Change function type to include and propagate payable and constant modifier. | chriseth | 2016-09-06 | 1 | -0/+2 |
| | | |||||
* | | Do not pay new account gas. | chriseth | 2016-09-05 | 1 | -1/+3 |
|/ | | | | | If we checked that the target contract exists, we do not have to pay the "new account gas". | ||||
* | Merge pull request #839 from chriseth/checkcode | chriseth | 2016-08-17 | 1 | -0/+7 |
|\ | | | | | BREAKING: Make function calls throw if target does not have code. | ||||
| * | Make function calls throw if target does not have code. | chriseth | 2016-08-17 | 1 | -0/+7 |
| | | | | | | | | | | Low-level calls still just execute and will actually report "success". This allows `x.call.value(y)()` for x being a non-contract account. | ||||
* | | Throw on division by zero. | chriseth | 2016-08-17 | 1 | -3/+10 |
|/ | |||||
* | Merge pull request #838 from chriseth/ecrecover | chriseth | 2016-08-17 | 1 | -5/+38 |
|\ | | | | | Make ecrecover return zero for malformed input. | ||||
| * | Actually better to return zero on error. | chriseth | 2016-08-16 | 1 | -2/+0 |
| | | |||||
| * | Make ecrecover throw for malformed input. | chriseth | 2016-08-16 | 1 | -5/+40 |
| | | |||||
* | | Provide inline assembly to the code generator. (#840) | chriseth | 2016-08-16 | 1 | -0/+1 |
| | | | | | | | | | | | | * Directly usable inline assembly. * Add missing header. | ||||
* | | Throw if contract creation fails. | chriseth | 2016-08-16 | 1 | -0/+3 |
|/ | |||||
* | Remove After from ExpressionCompiler | Denton Liu | 2016-08-11 | 1 | -3/+0 |
| | |||||
* | Bugfix: Allocate empty array. | chriseth | 2016-07-28 | 1 | -3/+6 |
| | |||||
* | Include SHR case in ExpressionCompiler::appendShiftOperatorCode | Alex Beregszaszi | 2016-06-08 | 1 | -0/+2 |
| | |||||
* | Fixes for invalid cleanups for small types. | chriseth | 2016-05-20 | 1 | -2/+5 |
| | |||||
* | Remove unused tests and add asserts for not implemented parts in code ↵ | chriseth | 2016-05-11 | 1 | -4/+3 |
| | | | | | | | | | | | | generation. quick fix on christian's rational change so that ubuntu will stop yelling be more specific with rational declaration for Windows sake rational in namespace correction for windows | ||||
* | changed names for Rational Constants and categories | VoR0220 | 2016-05-10 | 1 | -4/+4 |
| | |||||
* | initial work for fixed types...potentially needing a constant literal type ↵ | RJ Catalano | 2016-05-10 | 1 | -4/+4 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | for this notation Rational implemented...trying to figure out exponential fix for token bug, also quick fix for the wei and seconds fixed problem with var...probably a conversion problem for fixed in size capabilities adding fixed type tests Removing bitshift and regrouping fixed type tests together size capabilities functioning properly for fixed types got exponents up and working with their inverse, changed a few of the tests....something is working that likely shouldn't be slight changes to how to flip the rational negative around...still trying to figure it out tests added updated tests odd differences in trying soltest from solc binary, let me know if you can replicate test not working for odd reason fixed test problem with fixed literals...still need a way to log this error broken up the tests, added some, changed some things in types and began compiler work moar tests and prepping for rebuilding much of the types.cpp file further fixing initial work for fixed types...potentially needing a constant literal type for this | ||||
* | Allow calling internal functions of libraries. | chriseth | 2016-05-04 | 1 | -32/+68 |
| | | | | | | | | | | | | Internal functions of libraries can be called as if the library were a base contract of the calling contract. As the calling convention for internal functions is to not create a new call context, the code of these functions will be pulled into the context of the caller, duplicating their code. This might pull in code of further internal or even private functions. The use case for such functions is to allow libraries which can operate on memory types such that these types can also be modified in place. | ||||
* | Make solidity independent from ethcore. | chriseth | 2016-04-07 | 1 | -7/+4 |
| | |||||
* | reduce unnecessary solidity:: namespace | Dimitry | 2016-04-04 | 1 | -121/+121 |
| | |||||
* | rename namespace for instruction.h/cpp in libevmasm | Dimitry | 2016-04-02 | 1 | -121/+121 |
| | |||||
* | Correctly clean higher order bits for index access. | chriseth | 2016-03-31 | 1 | -0/+2 |
| | |||||
* | Fixed Windows warnings | Bob Summerwill | 2016-03-18 | 1 | -1/+2 |
| | |||||
* | BREAKING: Implement delegatecall and make default for library calls. | chriseth | 2016-03-12 | 1 | -11/+18 |
| | |||||
* | Index access for bytesXX. | chriseth | 2016-02-10 | 1 | -0/+26 |
| | |||||
* | [cond-expr] fixup according to code review | Lu Guanqun | 2016-01-23 | 1 | -1/+3 |
| | |||||
* | [cond-expr] make the codegen one instruction less | Lu Guanqun | 2016-01-23 | 1 | -5/+4 |
| | |||||
* | [cond-expr] generate assembly for _ ? _ : _ | Lu Guanqun | 2016-01-23 | 1 | -0/+15 |
| | |||||
* | Detect library name clashes. | chriseth | 2016-01-14 | 1 | -2/+0 |
| | |||||
* | final changes to typechecker, the expression compiler, and a couple more ↵ | RJ Catalano | 2016-01-12 | 1 | -8/+7 |
| | | | | tests for good measure | ||||
* | Update ExpressionCompiler.cpp | RJ | 2016-01-11 | 1 | -14/+16 |
| | |||||
* | Update ExpressionCompiler.cpp | RJ | 2016-01-11 | 1 | -4/+2 |
| | |||||
* | Update ExpressionCompiler.cpp | RJ | 2016-01-10 | 1 | -17/+39 |
| | |||||
* | support decayed tuple expression as left value | Lu Guanqun | 2016-01-04 | 1 | -1/+6 |
| | |||||
* | Add structs and enums to contract types. | chriseth | 2015-12-18 | 1 | -7/+9 |
| | |||||
* | Fix: Segfaults connected to paramater types. | chriseth | 2015-12-10 | 1 | -2/+2 |
| | | | | parameterTypes does not return by const reference anymore. | ||||
* | Code generation for calling bound methods. | chriseth | 2015-12-01 | 1 | -4/+37 |
| | |||||
* | Merge pull request #251 from chriseth/bind2 | chriseth | 2015-11-30 | 1 | -1/+1 |
|\ | | | | | Bind library functions to types. | ||||
| * | Add bound functions to types. | chriseth | 2015-11-29 | 1 | -1/+1 |
| | | |||||
* | | Introduce selfdestruct alias for suicide. | chriseth | 2015-11-29 | 1 | -1/+1 |
|/ | |||||
* | Make members context-sensitive. | chriseth | 2015-11-26 | 1 | -6/+2 |
| | |||||
* | Code generation for creating arrays. | chriseth | 2015-11-26 | 1 | -0/+47 |
| | |||||
* | Fixed string inside struct allocation bug. | chriseth | 2015-11-24 | 1 | -1/+1 |
| | |||||
* | Merge pull request #236 from ethereum/hot_gav | Gav Wood | 2015-11-23 | 1 | -5/+7 |
|\ | | | | | Fix up for new API from EIP-1.1. | ||||
| * | Fix up for new API from EIP-1.1. | Gav Wood | 2015-11-21 | 1 | -5/+7 |
| | | |||||
* | | Addmod and mulmod. | chriseth | 2015-11-19 | 1 | -0/+14 |
| | | |||||
* | | Fix dynamic indexed event arguments - applies sha3. | chriseth | 2015-11-17 | 1 | -5/+18 |
|/ | |||||
* | File reorganisation. | chriseth | 2015-10-21 | 1 | -0/+1370 |