File tree Expand file tree Collapse file tree 9 files changed +18
-16
lines changed
combined_json_generated_sources
optimizer_inliner_dynamic_reference_constructor
optimizer_inliner_dynamic_reference
standard_generatedSources
standard_optimizer_generatedSources
strict_asm_optimizer_steps Expand file tree Collapse file tree 9 files changed +18
-16
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ Bugfixes:
18
18
* Type Checker: Fix internal error and prevent static calls to unimplemented modifiers.
19
19
* Yul Code Generator: Fix internal compiler error when using a long literal with bitwise negation.
20
20
* Yul Code Generator: Fix source location references for calls to builtin functions.
21
+ * Yul Parser: Fix source location references for `` if `` statements.
21
22
22
23
23
24
### 0.8.6 (2021-06-22)
Original file line number Diff line number Diff line change @@ -107,6 +107,7 @@ Statement Parser::parseStatement()
107
107
advance ();
108
108
_if.condition = make_unique<Expression>(parseExpression ());
109
109
_if.body = parseBlock ();
110
+ _if.debugData = updateLocationEndFrom (_if.debugData , _if.body .debugData ->location );
110
111
return Statement{move (_if)};
111
112
}
112
113
case Token::Switch:
Original file line number Diff line number Diff line change 103
103
"src": "127:35:1"
104
104
},
105
105
"nodeType": "YulIf",
106
- "src": "124:2 :1"
106
+ "src": "124:122 :1"
107
107
},
108
108
{
109
109
"nodeType": "YulAssignment",
188
188
"src": "297:30:1"
189
189
},
190
190
"nodeType": "YulIf",
191
- "src": "294:2 :1"
191
+ "src": "294:117 :1"
192
192
},
193
193
{
194
194
"nodeType": "YulAssignment",
316
316
"src": "461:41:1"
317
317
},
318
318
"nodeType": "YulIf",
319
- "src": "458:2 :1"
319
+ "src": "458:128 :1"
320
320
}
321
321
]
322
322
},
431
431
"src": "712:32:1"
432
432
},
433
433
"nodeType": "YulIf",
434
- "src": "709:2 :1"
434
+ "src": "709:119 :1"
435
435
},
436
436
{
437
437
"nodeType": "YulBlock",
542
542
"src": "914:30:1"
543
543
},
544
544
"nodeType": "YulIf",
545
- "src": "911:2 :1"
545
+ "src": "911:117 :1"
546
546
},
547
547
{
548
548
"nodeType": "YulAssignment",
Original file line number Diff line number Diff line change @@ -162,7 +162,7 @@ sub_0: assembly {
162
162
dup3
163
163
/* "#utility.yul":257:270 */
164
164
gt
165
- /* "#utility.yul":254:256 */
165
+ /* "#utility.yul":254:390 */
166
166
iszero
167
167
tag_30
168
168
jumpi
@@ -188,7 +188,7 @@ sub_0: assembly {
188
188
0x00
189
189
/* "#utility.yul":365:380 */
190
190
revert
191
- /* "#utility.yul":254:256 */
191
+ /* "#utility.yul":254:390 */
192
192
tag_30:
193
193
pop
194
194
/* "#utility.yul":406:415 */
Original file line number Diff line number Diff line change @@ -167,7 +167,7 @@ sub_0: assembly {
167
167
dup3
168
168
/* "#utility.yul":257:270 */
169
169
gt
170
- /* "#utility.yul":254:256 */
170
+ /* "#utility.yul":254:390 */
171
171
iszero
172
172
tag_26
173
173
jumpi
@@ -193,7 +193,7 @@ sub_0: assembly {
193
193
0x00
194
194
/* "#utility.yul":365:380 */
195
195
revert
196
- /* "#utility.yul":254:256 */
196
+ /* "#utility.yul":254:390 */
197
197
tag_26:
198
198
pop
199
199
/* "#utility.yul":406:415 */
Load Diff Large diffs are not rendered by default.
Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ Text representation:
36
36
mstore
37
37
/* "strict_asm_optimizer_steps/input.yul":61:72 */
38
38
callvalue
39
- /* "strict_asm_optimizer_steps/input.yul":58:60 */
39
+ /* "strict_asm_optimizer_steps/input.yul":58:89 */
40
40
iszero
41
41
tag_1
42
42
jumpi
@@ -46,7 +46,7 @@ Text representation:
46
46
dup1
47
47
/* "strict_asm_optimizer_steps/input.yul":75:87 */
48
48
revert
49
- /* "strict_asm_optimizer_steps/input.yul":58:60 */
49
+ /* "strict_asm_optimizer_steps/input.yul":58:89 */
50
50
tag_1:
51
51
/* "strict_asm_optimizer_steps/input.yul":138:162 */
52
52
dataSize(sub_0)
Original file line number Diff line number Diff line change @@ -28,14 +28,14 @@ object "Contract" {
28
28
// tag_5:
29
29
// /* "source":78:79 */
30
30
// dup1
31
- // /* "source":75:77 */
31
+ // /* "source":75:89 */
32
32
// iszero
33
33
// tag_7
34
34
// jumpi
35
35
// /* "source":82:87 */
36
36
// pop
37
37
// jump(tag_6)
38
- // /* "source":75:77 */
38
+ // /* "source":75:89 */
39
39
// tag_7:
40
40
// /* "source":90:102 */
41
41
// tag_8
@@ -64,4 +64,4 @@ object "Contract" {
64
64
// tag_9:
65
65
// Bytecode: 6026565b600b6001600e565b5b565b8015601857506024565b602260028201600e565b505b565b602e6001600e565b
66
66
// Opcodes: PUSH1 0x26 JUMP JUMPDEST PUSH1 0xB PUSH1 0x1 PUSH1 0xE JUMP JUMPDEST JUMPDEST JUMP JUMPDEST DUP1 ISZERO PUSH1 0x18 JUMPI POP PUSH1 0x24 JUMP JUMPDEST PUSH1 0x22 PUSH1 0x2 DUP3 ADD PUSH1 0xE JUMP JUMPDEST POP JUMPDEST JUMP JUMPDEST PUSH1 0x2E PUSH1 0x1 PUSH1 0xE JUMP JUMPDEST
67
- // SourceMappings: 33:21:0:-:0;;;48:4;50:1;48:4;:::i;:::-;33:21;:::o;59:45::-;78:1;75:2 ;;;82:5;;;75:2 ;90:12;99:1;96;92:9;90:12;:::i;:::-;59:45;;:::o;:::-;109:4;111:1;109:4;:::i;:::-
67
+ // SourceMappings: 33:21:0:-:0;;;48:4;50:1;48:4;:::i;:::-;33:21;:::o;59:45::-;78:1;75:14 ;;;82:5;;;75:14 ;90:12;99:1;96;92:9;90:12;:::i;:::-;59:45;;:::o;:::-;109:4;111:1;109:4;:::i;:::-
You can’t perform that action at this time.
0 commit comments