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: yes | 7 execute: yes |
8 wrap: yes | 8 wrap: yes |
9 | 9 |
10 --- | 10 --- |
11 snippet: " | 11 snippet: " |
12 var a = 1; a += 2; | 12 var a = 1; a += 2; |
13 " | 13 " |
14 frame size: 2 | 14 frame size: 2 |
15 parameter count: 1 | 15 parameter count: 1 |
16 bytecode array length: 16 | 16 bytecode array length: 15 |
17 bytecodes: [ | 17 bytecodes: [ |
18 /* 30 E> */ B(StackCheck), | 18 /* 30 E> */ B(StackCheck), |
19 /* 42 S> */ B(LdaSmi), U8(1), | 19 /* 42 S> */ B(LdaSmi), U8(1), |
20 B(Star), R(0), | 20 B(Star), R(0), |
21 /* 45 S> */ B(LdaSmi), U8(2), | 21 /* 45 S> */ B(AddSmi), U8(2), R(0), |
22 B(Add), R(0), | |
23 B(Mov), R(0), R(1), | 22 B(Mov), R(0), R(1), |
24 B(Star), R(0), | 23 B(Star), R(0), |
25 B(LdaUndefined), | 24 B(LdaUndefined), |
26 /* 53 S> */ B(Return), | 25 /* 53 S> */ B(Return), |
27 ] | 26 ] |
28 constant pool: [ | 27 constant pool: [ |
29 ] | 28 ] |
30 handlers: [ | 29 handlers: [ |
31 ] | 30 ] |
32 | 31 |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 ] | 104 ] |
106 handlers: [ | 105 handlers: [ |
107 ] | 106 ] |
108 | 107 |
109 --- | 108 --- |
110 snippet: " | 109 snippet: " |
111 var a = 1; (function f() { return a; }); a |= 24; | 110 var a = 1; (function f() { return a; }); a |= 24; |
112 " | 111 " |
113 frame size: 2 | 112 frame size: 2 |
114 parameter count: 1 | 113 parameter count: 1 |
115 bytecode array length: 29 | 114 bytecode array length: 28 |
116 bytecodes: [ | 115 bytecodes: [ |
117 B(CallRuntime), U16(Runtime::kNewFunctionContext), R(closure), U
8(1), | 116 B(CallRuntime), U16(Runtime::kNewFunctionContext), R(closure), U
8(1), |
118 B(PushContext), R(0), | 117 B(PushContext), R(0), |
119 /* 30 E> */ B(StackCheck), | 118 /* 30 E> */ B(StackCheck), |
120 /* 42 S> */ B(LdaSmi), U8(1), | 119 /* 42 S> */ B(LdaSmi), U8(1), |
121 /* 42 E> */ B(StaContextSlot), R(context), U8(4), | 120 /* 42 E> */ B(StaContextSlot), R(context), U8(4), |
122 /* 45 S> */ B(CreateClosure), U8(0), U8(2), | 121 /* 45 S> */ B(CreateClosure), U8(0), U8(2), |
123 /* 75 S> */ B(LdrContextSlot), R(context), U8(4), R(1), | 122 /* 75 S> */ B(LdrContextSlot), R(context), U8(4), R(1), |
124 B(LdaSmi), U8(24), | 123 B(BitwiseOrSmi), U8(24), R(1), |
125 B(BitwiseOr), R(1), | |
126 /* 77 E> */ B(StaContextSlot), R(context), U8(4), | 124 /* 77 E> */ B(StaContextSlot), R(context), U8(4), |
127 B(LdaUndefined), | 125 B(LdaUndefined), |
128 /* 84 S> */ B(Return), | 126 /* 84 S> */ B(Return), |
129 ] | 127 ] |
130 constant pool: [ | 128 constant pool: [ |
131 InstanceType::SHARED_FUNCTION_INFO_TYPE, | 129 InstanceType::SHARED_FUNCTION_INFO_TYPE, |
132 ] | 130 ] |
133 handlers: [ | 131 handlers: [ |
134 ] | 132 ] |
135 | 133 |
OLD | NEW |