Christian
1e3929d5ad
Coding style: Prefix for const variables.
10 years ago
Christian
de77918d05
Padding for ABI types.
10 years ago
Lefteris Karapetsas
299305548f
Adjustments to Solidity compiler code for Function Hash
10 years ago
Lefteris Karapetsas
9fff09af6b
Compiler EVM generation now takes into account for the new function hash
identifier
- Changed tests to comply with the new function hash identifier
- Changed the function index offset to 4, and made it a constant for
easy adjustment in the future
10 years ago
Lefteris Karapetsas
69a0dcfa15
work in progress in testing the new function selector in the end to end tests
10 years ago
Lefteris Karapetsas
b8b75c841b
Solidity getInterfaceFunctions is now a map of hash to Function
- Also introduced dependency between libsolidity and libdevcrypto
- Compler's appendFunctionSelector now has a first version of using
function signature hash instead of index
10 years ago
Lefteris Karapetsas
3c6e966160
Solidity ForStatement Compiler part
- Work in progress
10 years ago
Lefteris Karapetsas
30c000d121
Adding a ForStatement solidity AST Node.
- Adding ForStatement node
- Implemented Parsing for ForStatement
- A simple parsing test for the ForStatement
- Work in progress
10 years ago
Christian
4e83ba5ae1
Add functions needed by constructor.
10 years ago
Christian
7801b87ddb
Packing and unpacking of constructor arguments.
10 years ago
Christian
5026c5855d
Create contracts.
10 years ago
Christian
22fa12debf
Do not add at the end of the function selector "loop".
10 years ago
Christian
615438a890
Swap literals to the end if optimizing.
10 years ago
Christian
37a15d96ea
Support empty strings.
10 years ago
Christian
584242357a
Helper functions to access memory.
10 years ago
Christian
781d58d705
String types.
10 years ago
Christian
dc478ba0bd
Take variable stack size correctly into account for return value packer.
10 years ago
Christian
f8c78bafb5
Variable-size stack elements for expression compiler.
10 years ago
Christian
9bcd315e42
Changes in compiler to support variably sized stack elements.
10 years ago
Christian
1462cfbd4b
Cleanup before return.
10 years ago
Christian
e676cd21bc
Register variably-sized variables on stack.
10 years ago
Christian
2506b42da8
Clear separation between ASTVisitor and ASTConstVisitor and more const specifiers.
10 years ago
Christian
1e5ebff359
Const AST visitor for the compiler.
10 years ago
Gav Wood
240f6b0df7
Warnings fixes (well.. the UPnP was actually a crash fix.)
10 years ago
Christian
898f989aa1
Sending ether.
10 years ago
Christian
27d20cd849
Magic variables.
10 years ago
Christian
c7972ba850
Special handling for constructor.
10 years ago
Christian
ec2b010047
Mapping types.
10 years ago
Marek Kotewicz
6cc9e6952e
merge
10 years ago
Christian
f5730edddb
Replace function selector jump table by more resilient linear time check.
10 years ago
Christian
a5542ba2de
State variables.
10 years ago
Christian
57d25f7a54
Prevent optimizer from changing certain parts of the code.
10 years ago
Christian
32d512b12e
Option to activate the optimizer for solidity.
10 years ago
Christian
c87f1c76b4
Ignore break and continue outside of loops.
10 years ago
Christian
ab7d2c8fd1
Proper type promotion and conversion.
10 years ago
Christian
37216a246a
Converted all asserts to exceptions.
10 years ago
Christian
30e4cda0e9
Some tests and bugfixes for the compiler.
10 years ago
Christian
4dbc566a14
Bugfix: Swap before mod and div.
10 years ago
Christian
adcf062367
Actual contract creator and add solidity to AlethZero interface.
10 years ago
Gav Wood
ae960c577a
Big fixes.
10 years ago
Christian
4d654d4e78
Function selector and variable (un)packing.
10 years ago
Christian
ea6d58a0d1
Contract compiler and also add ExpressionStatement to AST.
ExpressionStatement functions as glue between Statements and Expressions.
This way it is possible to detect when the border between statements and
expressions is crossed while walking the AST. Note that ExpressionStatement is
not the only border, almost every statement can contains expressions.
10 years ago
Christian
d83d476002
Fixed placements of const.
10 years ago
Christian
2b6d66374d
Compiler for assignments.
10 years ago
Christian
ec5bf1abe9
NEG->BNOT change
10 years ago
Christian
0877cf6036
Adjustments for the NEG->BNOT change.
10 years ago
Christian
d7278b3d34
Stylistic corrections.
10 years ago
Christian
a72098d541
Removed some more boost asserts.
10 years ago
Christian
d4d5f23e8f
Expression compiler.
10 years ago