Commit Graph

20453 Commits

Author SHA1 Message Date
chriseth
8d5e82b406 Fix source location of builtin function calls. 2021-07-06 16:54:29 +02:00
chriseth
09578e7e22
Merge pull request #11550 from ethereum/runs-constant
Constant for default --runs
2021-07-06 10:44:07 +02:00
chriseth
19b217dcf7
Merge pull request #10286 from ethereum/yul-evmasm-optim
Optimise libevmasm in yul
2021-07-05 14:24:27 +02:00
chriseth
ae3f06a8e5
Merge pull request #11563 from ethereum/fix-11555
Document difference in evaluation order of arguments of addmod/mulmod…
2021-07-05 13:52:41 +02:00
Kamil Śliwak
105b4b4c8b Update tests 2021-07-05 13:46:53 +02:00
Alex Beregszaszi
847e30e6ff Optimise libevmasm in yul 2021-07-05 13:46:53 +02:00
Bhargava Shastry
3e275335c7 Document difference in evaluation order of arguments of addmod/mulmod by old and new code gens. 2021-07-05 13:39:14 +02:00
Kamil Śliwak
f6cb933f24
Merge pull request #11589 from ethereum/testable-common-io
Make CommonIO testable
2021-07-02 15:39:56 +02:00
Kamil Śliwak
a72857df03 CommonIO: Replace readStandardInput() with readUntilEnd() with a configurable stream 2021-07-02 14:58:30 +02:00
chriseth
98e1dee45f
Merge pull request #11604 from ethereum/make-yul-tests-independent-of-optimizer
Make Yul tests independent of optimizer
2021-07-01 18:33:09 +02:00
Kamil Śliwak
e3b345e5f0 Use a simpler stack optimization test to avoid having ICE message with absolute paths as expected output 2021-07-01 17:29:24 +02:00
Kamil Śliwak
753f359157 Replace stack optimization command-line test with Standard JSON ones
- It's not possible to run optimizer with only stack optimization enabled on the CLI.
2021-07-01 16:54:09 +02:00
Kamil Śliwak
9d08b5001f Add sstore to linker tests to prevent the address from being optimized out 2021-07-01 16:54:09 +02:00
Kamil Śliwak
703a73f949 EVMCodeTransformTest: Disable all non-stack optimizations 2021-07-01 16:54:09 +02:00
Alex Beregszaszi
cd60ade472 Improve some Yul object and command line tests to avoid using pop() which can be optimized out 2021-07-01 16:54:09 +02:00
Alex Beregszaszi
8a6a330d95
Merge pull request #11598 from ethereum/erc20-semantictest-gas
Manually enabled gas statistics for erc20 token test.
2021-06-30 16:14:56 +01:00
hrkrshnn
b628b115ae Manually enabled gas statistics for erc20 token test. 2021-06-30 16:35:53 +02:00
chriseth
13d1fc9f41
Merge pull request #11579 from ethereum/better-errors-about-bad-paths-in-tests-with-external-sources
Better errors about bad paths in tests with external sources
2021-06-30 11:56:47 +02:00
chriseth
54b1c667f1
Merge pull request #11595 from ethereum/issue-11526
Fix yul codegen bug when using binary negation.
2021-06-30 11:55:42 +02:00
chriseth
1dbed8a726
Merge pull request #11599 from ethereum/fix-pylint
Fix pylint issues in CI
2021-06-30 11:54:48 +02:00
hrkrshnn
0ef7d27dbd Fix pylint issues 2021-06-30 10:38:37 +02:00
Mathias Baumann
c47d02066c Fix yul codegen bug when using binary negatition. 2021-06-29 17:41:03 +02:00
chriseth
eaac16c779
Merge pull request #11590 from ethereum/disallow-non-hex-zero-and-fix-bytes32-literals-in-bytes-concat
Disallow non-hex zero literals and fix 32-byte hex literals in `bytes.concat()`
2021-06-29 16:34:26 +02:00
chriseth
ccad22bafa
Merge pull request #11581 from ethereum/fix-crash-on-empty-string-in-bytes-concat
Fix `bytes.concat("")`
2021-06-29 15:02:26 +02:00
Kamil Śliwak
6a50d088a0 Fix ICE for 32-byte hex literals and zero literals in bytes.concat() by disallowing them 2021-06-29 14:48:42 +02:00
Kamil Śliwak
fa3696878b Fix crash when passing empty strings to bytes.concat() 2021-06-29 13:52:01 +02:00
Kamil Śliwak
1d1d74bd0e RationalNumberType: Fix wrong docstring about m_compatibleBytesType being used for explicit conversions 2021-06-29 13:27:21 +02:00
chriseth
7bce83e7c4
Merge pull request #11592 from ethereum/robots-host
Set preferred host in robots.txt
2021-06-29 11:17:03 +02:00
Alex Beregszaszi
37db29e9f1 Set preferred host in robots.txt 2021-06-28 21:26:00 +01:00
Harikrishnan Mulackal
d91dc9953f
Merge pull request #10015 from ethereum/moveFunctionArgumentsToMemoryNew
Stack Limit Evader: Move function arguments and return values to memory (v2)
2021-06-28 18:49:40 +02:00
Daniel Kirchner
c341445f8e Maintain disambiguation when generating new functions in StackToMemoryMover. 2021-06-28 18:11:57 +02:00
Daniel Kirchner
17d69e2b99 Changelog entries. 2021-06-28 18:11:57 +02:00
Daniel Kirchner
bc288aacf5 Have the stack optimization in the code transform only reuse slots that are reachable and fix argument slot reuse on functions without return variables. 2021-06-28 18:11:57 +02:00
Daniel Kirchner
dfce7b667d Move function arguments and return values. 2021-06-28 18:11:57 +02:00
Daniel Kirchner
cc0169ad68 Function definition collector. 2021-06-28 18:11:57 +02:00
Harikrishnan Mulackal
f5d659da0c
Merge pull request #11591 from ethereum/fix-develop-docs-ci
[DOCS] Change code block into proper JSON
2021-06-28 18:08:16 +02:00
hrkrshnn
4c216395c6 [DOCS] Change code block into proper JSON
Reran `solc --storage-layout`, so the AST ids changed.
2021-06-28 17:27:33 +02:00
chriseth
22402accfe
Merge pull request #11578 from ethereum/soltest-clearer-error-message-for-std-exception
Clearer error message for `std::exception` in soltest
2021-06-28 16:13:21 +02:00
chriseth
8a4da927e4
Merge pull request #11488 from amidmm/develop
[docs] updating description of the code for new version of solidity
2021-06-28 15:46:38 +02:00
Amid Moeinzadeh
16fdfdc4eb Replace reference to `require by if`. 2021-06-28 15:45:07 +02:00
chriseth
b3ac0976fc
Merge pull request #11575 from ethereum/fix-invalid-yul-escapes-from-literals-in-assembly-blocks
Fix invalid Yul escapes generated from literals in assembly blocks
2021-06-28 14:53:48 +02:00
chriseth
2567eb46ba
Merge pull request #11477 from iskanderandrews/feature/docs-highlight-solc
[Docs]: Highlighting code snippets in .rst docs
2021-06-28 14:40:43 +02:00
chriseth
1fd225ac88
Merge pull request #11576 from ethereum/docs-clarify-docker-volumes-with-standard-json
[Docs] Clarify the statement that docker volumes are not required with `--standard-json`
2021-06-28 14:27:25 +02:00
Kamil Śliwak
19fada966f Do not use \b, \v and \f escapes in string literals in generated Yul code 2021-06-28 14:13:47 +02:00
Kamil Śliwak
6ad6fa2382 Do not hard-code the default 'runs' value as 200 in code that fills out optimizer settings 2021-06-28 14:12:28 +02:00
Kamil Śliwak
6d8ef71277 Consistently use size_t everywhere for runs/expectedExecutionsPerDeployment 2021-06-28 14:09:28 +02:00
Harikrishnan Mulackal
a3c965b7de
Merge pull request #11580 from ethereum/fix-crash-on-zero-in-bytes-concat
Fix `bytes.concat(0)`
2021-06-28 10:06:18 +02:00
Kamil Śliwak
ca0b1bf3f3 Fix crash when passing zero to bytes.concat() 2021-06-25 21:26:28 +02:00
Kamil Śliwak
e841479b4b TestCaseReader: Disallow UNC paths along with absolute ones 2021-06-25 18:41:21 +02:00
Kamil Śliwak
34425c351d Tests for readFileAsString() 2021-06-25 18:41:21 +02:00