Commit Graph

6023 Commits

Author SHA1 Message Date
Yoichi Hirai
47b11ef2b8
test: add a test case for accessing a state variable under the contract's name
The test comes from the description of #988
2016-10-24 16:28:14 +02:00
chriseth
22f2c6df63 Merge pull request #1271 from wingyplus/iss-781
Remove non-solidity exceptions
2016-10-24 15:55:47 +02:00
chriseth
d651a506fa Merge pull request #1263 from ethereum/1116
Do not push code for `L` in `L.Foo`, an enum Foo defined in a library L
2016-10-24 15:53:11 +02:00
chriseth
9e0594f4c1 Merge pull request #1270 from ethereum/optimise-eq0
Optimise the PUSH 0, EQ case as ISZERO
2016-10-24 15:50:31 +02:00
Yoichi Hirai
abf393126b
Changelog: add a comment about fixing #1116 2016-10-24 15:30:32 +02:00
Yoichi Hirai
7cee39fc17
codegen: skip contract L for L.Foo where Foo is a type
Fixes #1116
2016-10-24 15:30:26 +02:00
Yoichi Hirai
df900c5583
test: add a test about using an inherited enum definition as an expression,
with an explicit mention of the base contract.  The test is about #1131.
2016-10-24 15:28:23 +02:00
chriseth
2f13101243 Merge pull request #1251 from ethereum/fixthrow
Fix crash in throw.
2016-10-24 15:19:13 +02:00
chriseth
57ee387755 Changelog entry. 2016-10-24 14:33:44 +02:00
chriseth
2b00804d1d Fix crash in throw. 2016-10-24 14:32:49 +02:00
chriseth
cb1fcaf6f6 Merge pull request #1240 from ethereum/1151
ast: super contract type does not contain native members
2016-10-24 11:45:54 +02:00
chriseth
84b43b9139 Merge pull request #1267 from ethereum/optimizer
Optimizer: generate code starting with empty state
2016-10-24 10:58:25 +02:00
Thanabodee Charoenpiriyakij
15d0ed6442 Remove non-solidity exceptions
Most exceptions and some errorinfos in 'libdevcore' are not be used.

Close #781
2016-10-23 10:02:39 +07:00
Alex Beregszaszi
6686ea6c03 Optimiser the PUSH 0, EQ case as ISZERO 2016-10-23 00:23:08 +01:00
chriseth
ba42c6e447 Optimizer: generate code starting with empty state 2016-10-21 18:03:57 +02:00
chriseth
3e13e59ff9 Merge pull request #1243 from ethereum/1131
Add enums as inheritable members
2016-10-21 15:29:58 +02:00
Yoichi Hirai
4b7fdaa0bd
test: add a test about accessing an enum member without the name of the enum 2016-10-21 13:01:45 +02:00
Yoichi Hirai
9d9380d30e
ast: add a null check 2016-10-21 13:01:45 +02:00
Yoichi Hirai
f30f421e1c
Changelog: add a point about #1243 2016-10-21 13:01:45 +02:00
Yoichi Hirai
83e8fdecc5
ast: ContractDefinition::inheritableMembers contains enums as well as structs
This fixes #1131
2016-10-21 13:01:45 +02:00
Yoichi Hirai
f967623a5b
test: add tests for #1131
The tests are about enum inheritance.
2016-10-21 13:01:45 +02:00
chriseth
984b8ac1b5 Merge pull request #1261 from ethereum/inline-assembly-in-modifiers
Fix inline assembly variable access within modifiers
2016-10-21 11:27:36 +02:00
Alex Beregszaszi
13b2101ea7 Add tests for inline assembly in modifiers 2016-10-20 23:57:14 +01:00
Alex Beregszaszi
d50204d808 Add changelog entry 2016-10-20 23:45:13 +01:00
Alex Beregszaszi
7b0fb5d06b Support variable references within modifiers for inline assembly 2016-10-20 23:45:13 +01:00
Alex Beregszaszi
5875890576 Merge pull request #1224 from ethereum/inline-assembly-stack-warning
Issue inline assembly stack warning if not balanced
2016-10-20 21:55:45 +01:00
Paweł Bylica
008c4111d7 Merge pull request #1254 from ethereum/appveyor
AppVeyor: build only pushes to master and develop branch
2016-10-20 17:04:04 +02:00
Yoichi Hirai
31ffe01463
Changelog: add an entry about super.x lookup 2016-10-20 16:12:21 +02:00
Yoichi Hirai
7887045a48
ast: simplifications suggested by @chriseth 2016-10-20 16:09:52 +02:00
Yoichi Hirai
ff9039b2a8
When a contract type is super, its members do not contain the functions of itself
Fixes #1151
2016-10-20 16:09:52 +02:00
Yoichi Hirai
6781ec105f
Add a test for #1151 2016-10-20 16:09:52 +02:00
Alex Beregszaszi
6cb2770344 Add two test cases for unbalanced inline assembly 2016-10-20 13:25:28 +01:00
Alex Beregszaszi
0e33b63468 Allow warnings for inline assembly block 2016-10-20 13:25:28 +01:00
Alex Beregszaszi
c3330faf21 Issue warnings if stack is not balanced after inline assembly block 2016-10-20 13:25:28 +01:00
Alex Beregszaszi
e1ff8bebe1 Mention in changelog 2016-10-20 13:25:28 +01:00
Alex Beregszaszi
0dd75ac100 Use warning function in TypeChecker 2016-10-20 13:25:28 +01:00
Paweł Bylica
21eef6aa89
AppVeyor: build only pushes to master and develop branch
This fixes the issue when PRs from a branch in main repo are built twice.
2016-10-20 14:22:38 +02:00
chriseth
9d30450167 Merge pull request #1034 from ethereum/shift-constants
Shift constants (<< and >>)
2016-10-20 14:20:58 +02:00
Alex Beregszaszi
d5c94cb412 Add constant shift to the changelog 2016-10-20 00:04:11 +01:00
Alex Beregszaszi
7ac27c957e Use >> (SAR) to denote constant shifts 2016-10-20 00:03:09 +01:00
Alex Beregszaszi
59603f7b8e Add tests for constant shifts 2016-10-20 00:03:09 +01:00
Alex Beregszaszi
33250eef9e Reject negative shifts within constants 2016-10-20 00:03:09 +01:00
RJ
48f2028911 Support shifting constants 2016-10-20 00:03:09 +01:00
Alex Beregszaszi
2bb37f8203 Merge pull request #1182 from ethereum/inline-assembly-magic-variables
Disallow magic variables in inline assembly
2016-10-20 00:00:29 +01:00
chriseth
06c69c9062 Update Changelog.md 2016-10-19 20:46:28 +01:00
Alex Beregszaszi
d18e56661d Disallow unsupported RValues in inline assembly 2016-10-19 20:44:15 +01:00
Alex Beregszaszi
0a3faf48d4 Add tests for magic variables in inline assembly 2016-10-19 20:44:15 +01:00
Alex Beregszaszi
9616470f67 Disallow magic variables in inline assembly 2016-10-19 20:44:15 +01:00
chriseth
3bcf0909af Merge pull request #1220 from ethereum/doc-updates
Documentation updates
2016-10-19 16:15:33 +02:00
Alex Beregszaszi
024e3f4064 Mapping-in-mapping can have accessors too 2016-10-19 14:16:01 +01:00