OLD | NEW |
1 # | 1 # |
2 # Autogenerated by generate-bytecode-expectations. | 2 # Autogenerated by generate-bytecode-expectations. |
3 # | 3 # |
4 | 4 |
5 --- | 5 --- |
6 wrap: no | 6 wrap: no |
7 test function name: f | 7 test function name: f |
8 | 8 |
9 --- | 9 --- |
10 snippet: " | 10 snippet: " |
11 var global = 1; | 11 var global = 1; |
12 function f() { return ++global; } | 12 function f() { return ++global; } |
13 f(); | 13 f(); |
14 " | 14 " |
15 frame size: 0 | 15 frame size: 0 |
16 parameter count: 1 | 16 parameter count: 1 |
17 bytecode array length: 9 | 17 bytecode array length: 10 |
18 bytecodes: [ | 18 bytecodes: [ |
19 /* 26 E> */ B(StackCheck), | 19 /* 26 E> */ B(StackCheck), |
20 /* 31 S> */ B(LdaGlobal), U8(2), | 20 /* 31 S> */ B(LdaGlobal), U8(0), U8(2), |
21 B(Inc), U8(6), | 21 B(Inc), U8(6), |
22 /* 40 E> */ B(StaGlobalSloppy), U8(0), U8(4), | 22 /* 40 E> */ B(StaGlobalSloppy), U8(0), U8(4), |
23 /* 48 S> */ B(Return), | 23 /* 48 S> */ B(Return), |
24 ] | 24 ] |
25 constant pool: [ | 25 constant pool: [ |
26 ONE_BYTE_INTERNALIZED_STRING_TYPE ["global"], | 26 ONE_BYTE_INTERNALIZED_STRING_TYPE ["global"], |
27 ] | 27 ] |
28 handlers: [ | 28 handlers: [ |
29 ] | 29 ] |
30 | 30 |
31 --- | 31 --- |
32 snippet: " | 32 snippet: " |
33 var global = 1; | 33 var global = 1; |
34 function f() { return global--; } | 34 function f() { return global--; } |
35 f(); | 35 f(); |
36 " | 36 " |
37 frame size: 1 | 37 frame size: 1 |
38 parameter count: 1 | 38 parameter count: 1 |
39 bytecode array length: 15 | 39 bytecode array length: 16 |
40 bytecodes: [ | 40 bytecodes: [ |
41 /* 26 E> */ B(StackCheck), | 41 /* 26 E> */ B(StackCheck), |
42 /* 31 S> */ B(LdaGlobal), U8(2), | 42 /* 31 S> */ B(LdaGlobal), U8(0), U8(2), |
43 B(ToNumber), R(0), | 43 B(ToNumber), R(0), |
44 B(Ldar), R(0), | 44 B(Ldar), R(0), |
45 B(Dec), U8(6), | 45 B(Dec), U8(6), |
46 /* 44 E> */ B(StaGlobalSloppy), U8(0), U8(4), | 46 /* 44 E> */ B(StaGlobalSloppy), U8(0), U8(4), |
47 B(Ldar), R(0), | 47 B(Ldar), R(0), |
48 /* 48 S> */ B(Return), | 48 /* 48 S> */ B(Return), |
49 ] | 49 ] |
50 constant pool: [ | 50 constant pool: [ |
51 ONE_BYTE_INTERNALIZED_STRING_TYPE ["global"], | 51 ONE_BYTE_INTERNALIZED_STRING_TYPE ["global"], |
52 ] | 52 ] |
53 handlers: [ | 53 handlers: [ |
54 ] | 54 ] |
55 | 55 |
56 --- | 56 --- |
57 snippet: " | 57 snippet: " |
58 unallocated = 1; | 58 unallocated = 1; |
59 function f() { 'use strict'; return --unallocated; } | 59 function f() { 'use strict'; return --unallocated; } |
60 f(); | 60 f(); |
61 " | 61 " |
62 frame size: 0 | 62 frame size: 0 |
63 parameter count: 1 | 63 parameter count: 1 |
64 bytecode array length: 9 | 64 bytecode array length: 10 |
65 bytecodes: [ | 65 bytecodes: [ |
66 /* 27 E> */ B(StackCheck), | 66 /* 27 E> */ B(StackCheck), |
67 /* 46 S> */ B(LdaGlobal), U8(2), | 67 /* 46 S> */ B(LdaGlobal), U8(0), U8(2), |
68 B(Dec), U8(6), | 68 B(Dec), U8(6), |
69 /* 55 E> */ B(StaGlobalStrict), U8(0), U8(4), | 69 /* 55 E> */ B(StaGlobalStrict), U8(0), U8(4), |
70 /* 68 S> */ B(Return), | 70 /* 68 S> */ B(Return), |
71 ] | 71 ] |
72 constant pool: [ | 72 constant pool: [ |
73 ONE_BYTE_INTERNALIZED_STRING_TYPE ["unallocated"], | 73 ONE_BYTE_INTERNALIZED_STRING_TYPE ["unallocated"], |
74 ] | 74 ] |
75 handlers: [ | 75 handlers: [ |
76 ] | 76 ] |
77 | 77 |
78 --- | 78 --- |
79 snippet: " | 79 snippet: " |
80 unallocated = 1; | 80 unallocated = 1; |
81 function f() { return unallocated++; } | 81 function f() { return unallocated++; } |
82 f(); | 82 f(); |
83 " | 83 " |
84 frame size: 1 | 84 frame size: 1 |
85 parameter count: 1 | 85 parameter count: 1 |
86 bytecode array length: 15 | 86 bytecode array length: 16 |
87 bytecodes: [ | 87 bytecodes: [ |
88 /* 27 E> */ B(StackCheck), | 88 /* 27 E> */ B(StackCheck), |
89 /* 32 S> */ B(LdaGlobal), U8(2), | 89 /* 32 S> */ B(LdaGlobal), U8(0), U8(2), |
90 B(ToNumber), R(0), | 90 B(ToNumber), R(0), |
91 B(Ldar), R(0), | 91 B(Ldar), R(0), |
92 B(Inc), U8(6), | 92 B(Inc), U8(6), |
93 /* 50 E> */ B(StaGlobalSloppy), U8(0), U8(4), | 93 /* 50 E> */ B(StaGlobalSloppy), U8(0), U8(4), |
94 B(Ldar), R(0), | 94 B(Ldar), R(0), |
95 /* 54 S> */ B(Return), | 95 /* 54 S> */ B(Return), |
96 ] | 96 ] |
97 constant pool: [ | 97 constant pool: [ |
98 ONE_BYTE_INTERNALIZED_STRING_TYPE ["unallocated"], | 98 ONE_BYTE_INTERNALIZED_STRING_TYPE ["unallocated"], |
99 ] | 99 ] |
100 handlers: [ | 100 handlers: [ |
101 ] | 101 ] |
102 | 102 |
OLD | NEW |