OLD | NEW |
1 # | 1 # |
2 # Autogenerated by generate-bytecode-expectations. | 2 # Autogenerated by generate-bytecode-expectations. |
3 # | 3 # |
4 | 4 |
5 --- | 5 --- |
6 pool type: string | 6 pool type: string |
7 execute: yes | 7 execute: yes |
8 wrap: no | 8 wrap: no |
9 test function name: f | 9 test function name: f |
10 | 10 |
11 --- | 11 --- |
12 snippet: " | 12 snippet: " |
13 var global = 1; | 13 var global = 1; |
14 function f() { return ++global; } | 14 function f() { return ++global; } |
15 f(); | 15 f(); |
16 " | 16 " |
17 frame size: 0 | 17 frame size: 0 |
18 parameter count: 1 | 18 parameter count: 1 |
19 bytecode array length: 10 | 19 bytecode array length: 9 |
20 bytecodes: [ | 20 bytecodes: [ |
21 B(StackCheck), | 21 B(StackCheck), |
22 B(LdaGlobal), U8(0), U8(1), | 22 B(LdaGlobal), U8(0), U8(1), |
23 B(ToNumber), | |
24 B(Inc), | 23 B(Inc), |
25 B(StaGlobalSloppy), U8(0), U8(3), | 24 B(StaGlobalSloppy), U8(0), U8(3), |
26 B(Return), | 25 B(Return), |
27 ] | 26 ] |
28 constant pool: [ | 27 constant pool: [ |
29 "global", | 28 "global", |
30 ] | 29 ] |
31 handlers: [ | 30 handlers: [ |
32 ] | 31 ] |
33 | 32 |
(...skipping 23 matching lines...) Expand all Loading... |
57 ] | 56 ] |
58 | 57 |
59 --- | 58 --- |
60 snippet: " | 59 snippet: " |
61 unallocated = 1; | 60 unallocated = 1; |
62 function f() { 'use strict'; return --unallocated; } | 61 function f() { 'use strict'; return --unallocated; } |
63 f(); | 62 f(); |
64 " | 63 " |
65 frame size: 0 | 64 frame size: 0 |
66 parameter count: 1 | 65 parameter count: 1 |
67 bytecode array length: 10 | 66 bytecode array length: 9 |
68 bytecodes: [ | 67 bytecodes: [ |
69 B(StackCheck), | 68 B(StackCheck), |
70 B(LdaGlobal), U8(0), U8(1), | 69 B(LdaGlobal), U8(0), U8(1), |
71 B(ToNumber), | |
72 B(Dec), | 70 B(Dec), |
73 B(StaGlobalStrict), U8(0), U8(3), | 71 B(StaGlobalStrict), U8(0), U8(3), |
74 B(Return), | 72 B(Return), |
75 ] | 73 ] |
76 constant pool: [ | 74 constant pool: [ |
77 "unallocated", | 75 "unallocated", |
78 ] | 76 ] |
79 handlers: [ | 77 handlers: [ |
80 ] | 78 ] |
81 | 79 |
(...skipping 15 matching lines...) Expand all Loading... |
97 B(StaGlobalSloppy), U8(0), U8(3), | 95 B(StaGlobalSloppy), U8(0), U8(3), |
98 B(Ldar), R(0), | 96 B(Ldar), R(0), |
99 B(Return), | 97 B(Return), |
100 ] | 98 ] |
101 constant pool: [ | 99 constant pool: [ |
102 "unallocated", | 100 "unallocated", |
103 ] | 101 ] |
104 handlers: [ | 102 handlers: [ |
105 ] | 103 ] |
106 | 104 |
OLD | NEW |