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: mixed | 6 pool type: mixed |
7 execute: no | 7 execute: no |
8 wrap: no | 8 wrap: no |
9 top level: yes | 9 top level: yes |
10 | 10 |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 handlers: [ | 62 handlers: [ |
63 ] | 63 ] |
64 | 64 |
65 --- | 65 --- |
66 snippet: " | 66 snippet: " |
67 var a = 1; | 67 var a = 1; |
68 a=2; | 68 a=2; |
69 " | 69 " |
70 frame size: 4 | 70 frame size: 4 |
71 parameter count: 1 | 71 parameter count: 1 |
72 bytecode array length: 37 | 72 bytecode array length: 39 |
73 bytecodes: [ | 73 bytecodes: [ |
74 B(LdaConstant), U8(0), | 74 B(LdaConstant), U8(0), |
75 B(Star), R(1), | 75 B(Star), R(1), |
76 B(LdaZero), | 76 B(LdaZero), |
77 B(Star), R(2), | 77 B(Star), R(2), |
78 B(CallRuntime), U16(Runtime::kDeclareGlobals), R(1), U8(2), | 78 B(CallRuntime), U16(Runtime::kDeclareGlobals), R(1), U8(2), |
79 /* 0 E> */ B(StackCheck), | 79 /* 0 E> */ B(StackCheck), |
80 /* 8 S> */ B(LdaConstant), U8(1), | 80 /* 8 S> */ B(LdaConstant), U8(1), |
81 B(Star), R(1), | 81 B(Star), R(1), |
82 B(LdaZero), | 82 B(LdaZero), |
83 B(Star), R(2), | 83 B(Star), R(2), |
84 B(LdaSmi), U8(1), | 84 B(LdaSmi), U8(1), |
85 B(Star), R(3), | 85 B(Star), R(3), |
86 B(CallRuntime), U16(Runtime::kInitializeVarGlobal), R(1), U8(3), | 86 B(CallRuntime), U16(Runtime::kInitializeVarGlobal), R(1), U8(3), |
87 /* 11 S> */ B(LdaSmi), U8(2), | 87 /* 11 S> */ B(LdaSmi), U8(2), |
88 /* 12 E> */ B(StaGlobalSloppy), U8(1), U8(3), | 88 /* 12 E> */ B(StaGlobalSloppy), U8(1), U8(3), |
89 B(Star), R(0), | 89 B(Star), R(0), |
| 90 B(Ldar), R(0), |
90 /* 15 S> */ B(Return), | 91 /* 15 S> */ B(Return), |
91 ] | 92 ] |
92 constant pool: [ | 93 constant pool: [ |
93 InstanceType::FIXED_ARRAY_TYPE, | 94 InstanceType::FIXED_ARRAY_TYPE, |
94 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, | 95 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |
95 ] | 96 ] |
96 handlers: [ | 97 handlers: [ |
97 ] | 98 ] |
98 | 99 |
99 --- | 100 --- |
100 snippet: " | 101 snippet: " |
101 function f() {} | 102 function f() {} |
102 f(); | 103 f(); |
103 " | 104 " |
104 frame size: 3 | 105 frame size: 3 |
105 parameter count: 1 | 106 parameter count: 1 |
106 bytecode array length: 29 | 107 bytecode array length: 31 |
107 bytecodes: [ | 108 bytecodes: [ |
108 B(LdaConstant), U8(0), | 109 B(LdaConstant), U8(0), |
109 B(Star), R(1), | 110 B(Star), R(1), |
110 B(LdaZero), | 111 B(LdaZero), |
111 B(Star), R(2), | 112 B(Star), R(2), |
112 B(CallRuntime), U16(Runtime::kDeclareGlobals), R(1), U8(2), | 113 B(CallRuntime), U16(Runtime::kDeclareGlobals), R(1), U8(2), |
113 /* 0 E> */ B(StackCheck), | 114 /* 0 E> */ B(StackCheck), |
114 /* 16 S> */ B(LdaUndefined), | 115 /* 16 S> */ B(LdaUndefined), |
115 B(Star), R(2), | 116 B(Star), R(2), |
116 B(LdaGlobal), U8(1), U8(1), | 117 B(LdaGlobal), U8(1), U8(1), |
117 B(Star), R(1), | 118 B(Star), R(1), |
118 /* 16 E> */ B(Call), R(1), R(2), U8(1), U8(3), | 119 /* 16 E> */ B(Call), R(1), R(2), U8(1), U8(3), |
119 B(Star), R(0), | 120 B(Star), R(0), |
| 121 B(Ldar), R(0), |
120 /* 20 S> */ B(Return), | 122 /* 20 S> */ B(Return), |
121 ] | 123 ] |
122 constant pool: [ | 124 constant pool: [ |
123 InstanceType::FIXED_ARRAY_TYPE, | 125 InstanceType::FIXED_ARRAY_TYPE, |
124 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, | 126 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |
125 ] | 127 ] |
126 handlers: [ | 128 handlers: [ |
127 ] | 129 ] |
128 | 130 |
OLD | NEW |