OLD | NEW |
1 # | 1 # |
2 # Autogenerated by generate-bytecode-expectations. | 2 # Autogenerated by generate-bytecode-expectations. |
3 # | 3 # |
4 | 4 |
5 --- | 5 --- |
6 wrap: yes | 6 wrap: yes |
7 | 7 |
8 --- | 8 --- |
9 snippet: " | 9 snippet: " |
10 var a = {x:13, y:14}; return delete a.x; | 10 var a = {x:13, y:14}; return delete a.x; |
11 " | 11 " |
12 frame size: 2 | 12 frame size: 3 |
13 parameter count: 1 | 13 parameter count: 1 |
14 bytecode array length: 14 | 14 bytecode array length: 18 |
15 bytecodes: [ | 15 bytecodes: [ |
16 /* 30 E> */ B(StackCheck), | 16 /* 30 E> */ B(StackCheck), |
17 /* 42 S> */ B(CreateObjectLiteral), U8(0), U8(2), U8(1), R(1), | 17 /* 42 S> */ B(LdaConstant), U8(0), |
18 B(Mov), R(1), R(0), | 18 B(CreateObjectLiteral), U8(1), U8(2), U8(1), R(2), |
19 /* 56 S> */ B(LdaConstant), U8(1), | 19 B(Star), R(1), |
| 20 B(Mov), R(2), R(0), |
| 21 /* 56 S> */ B(LdaConstant), U8(2), |
20 B(DeletePropertySloppy), R(0), | 22 B(DeletePropertySloppy), R(0), |
21 /* 75 S> */ B(Return), | 23 /* 75 S> */ B(Return), |
22 ] | 24 ] |
23 constant pool: [ | 25 constant pool: [ |
| 26 ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"], |
24 FIXED_ARRAY_TYPE, | 27 FIXED_ARRAY_TYPE, |
25 ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"], | 28 ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"], |
26 ] | 29 ] |
27 handlers: [ | 30 handlers: [ |
28 ] | 31 ] |
29 | 32 |
30 --- | 33 --- |
31 snippet: " | 34 snippet: " |
32 'use strict'; var a = {x:13, y:14}; return delete a.x; | 35 'use strict'; var a = {x:13, y:14}; return delete a.x; |
33 " | 36 " |
34 frame size: 2 | 37 frame size: 3 |
35 parameter count: 1 | 38 parameter count: 1 |
36 bytecode array length: 14 | 39 bytecode array length: 18 |
37 bytecodes: [ | 40 bytecodes: [ |
38 /* 30 E> */ B(StackCheck), | 41 /* 30 E> */ B(StackCheck), |
39 /* 56 S> */ B(CreateObjectLiteral), U8(0), U8(2), U8(1), R(1), | 42 /* 56 S> */ B(LdaConstant), U8(0), |
40 B(Mov), R(1), R(0), | 43 B(CreateObjectLiteral), U8(1), U8(2), U8(1), R(2), |
41 /* 70 S> */ B(LdaConstant), U8(1), | 44 B(Star), R(1), |
| 45 B(Mov), R(2), R(0), |
| 46 /* 70 S> */ B(LdaConstant), U8(2), |
42 B(DeletePropertyStrict), R(0), | 47 B(DeletePropertyStrict), R(0), |
43 /* 89 S> */ B(Return), | 48 /* 89 S> */ B(Return), |
44 ] | 49 ] |
45 constant pool: [ | 50 constant pool: [ |
| 51 ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"], |
46 FIXED_ARRAY_TYPE, | 52 FIXED_ARRAY_TYPE, |
47 ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"], | 53 ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"], |
48 ] | 54 ] |
49 handlers: [ | 55 handlers: [ |
50 ] | 56 ] |
51 | 57 |
52 --- | 58 --- |
53 snippet: " | 59 snippet: " |
54 var a = {1:13, 2:14}; return delete a[2]; | 60 var a = {1:13, 2:14}; return delete a[2]; |
55 " | 61 " |
56 frame size: 2 | 62 frame size: 3 |
57 parameter count: 1 | 63 parameter count: 1 |
58 bytecode array length: 14 | 64 bytecode array length: 18 |
59 bytecodes: [ | 65 bytecodes: [ |
60 /* 30 E> */ B(StackCheck), | 66 /* 30 E> */ B(StackCheck), |
61 /* 42 S> */ B(CreateObjectLiteral), U8(0), U8(2), U8(1), R(1), | 67 /* 42 S> */ B(LdaConstant), U8(0), |
62 B(Mov), R(1), R(0), | 68 B(CreateObjectLiteral), U8(1), U8(2), U8(1), R(2), |
| 69 B(Star), R(1), |
| 70 B(Mov), R(2), R(0), |
63 /* 56 S> */ B(LdaSmi), I8(2), | 71 /* 56 S> */ B(LdaSmi), I8(2), |
64 B(DeletePropertySloppy), R(0), | 72 B(DeletePropertySloppy), R(0), |
65 /* 76 S> */ B(Return), | 73 /* 76 S> */ B(Return), |
66 ] | 74 ] |
67 constant pool: [ | 75 constant pool: [ |
| 76 ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"], |
68 FIXED_ARRAY_TYPE, | 77 FIXED_ARRAY_TYPE, |
69 ] | 78 ] |
70 handlers: [ | 79 handlers: [ |
71 ] | 80 ] |
72 | 81 |
73 --- | 82 --- |
74 snippet: " | 83 snippet: " |
75 var a = 10; return delete a; | 84 var a = 10; return delete a; |
76 " | 85 " |
77 frame size: 1 | 86 frame size: 2 |
78 parameter count: 1 | 87 parameter count: 1 |
79 bytecode array length: 7 | 88 bytecode array length: 11 |
80 bytecodes: [ | 89 bytecodes: [ |
81 /* 30 E> */ B(StackCheck), | 90 /* 30 E> */ B(StackCheck), |
82 /* 42 S> */ B(LdaSmi), I8(10), | 91 /* 42 S> */ B(LdaConstant), U8(0), |
| 92 B(Star), R(1), |
| 93 B(LdaSmi), I8(10), |
83 B(Star), R(0), | 94 B(Star), R(0), |
84 /* 46 S> */ B(LdaFalse), | 95 /* 46 S> */ B(LdaFalse), |
85 /* 63 S> */ B(Return), | 96 /* 63 S> */ B(Return), |
86 ] | 97 ] |
87 constant pool: [ | 98 constant pool: [ |
| 99 ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"], |
88 ] | 100 ] |
89 handlers: [ | 101 handlers: [ |
90 ] | 102 ] |
91 | 103 |
92 --- | 104 --- |
93 snippet: " | 105 snippet: " |
94 'use strict'; | 106 'use strict'; |
95 var a = {1:10}; | 107 var a = {1:10}; |
96 (function f1() {return a;}); | 108 (function f1() {return a;}); |
97 return delete a[1]; | 109 return delete a[1]; |
98 " | 110 " |
99 frame size: 2 | 111 frame size: 3 |
100 parameter count: 1 | 112 parameter count: 1 |
101 bytecode array length: 27 | 113 bytecode array length: 31 |
102 bytecodes: [ | 114 bytecodes: [ |
103 B(CreateFunctionContext), U8(1), | 115 B(CreateFunctionContext), U8(1), |
104 B(PushContext), R(0), | 116 B(PushContext), R(0), |
105 /* 30 E> */ B(StackCheck), | 117 /* 30 E> */ B(StackCheck), |
106 /* 56 S> */ B(CreateObjectLiteral), U8(0), U8(2), U8(1), R(1), | 118 /* 56 S> */ B(LdaConstant), U8(0), |
107 B(Ldar), R(1), | 119 B(CreateObjectLiteral), U8(1), U8(2), U8(1), R(2), |
| 120 B(Star), R(1), |
| 121 B(Ldar), R(2), |
108 /* 56 E> */ B(StaCurrentContextSlot), U8(4), | 122 /* 56 E> */ B(StaCurrentContextSlot), U8(4), |
109 /* 64 S> */ B(CreateClosure), U8(1), U8(3), U8(2), | 123 /* 64 S> */ B(CreateClosure), U8(2), U8(5), U8(2), |
110 /* 93 S> */ B(LdaImmutableCurrentContextSlot), U8(4), | 124 /* 93 S> */ B(LdaImmutableCurrentContextSlot), U8(4), |
111 B(Star), R(1), | 125 B(Star), R(1), |
112 B(LdaSmi), I8(1), | 126 B(LdaSmi), I8(1), |
113 B(DeletePropertyStrict), R(1), | 127 B(DeletePropertyStrict), R(1), |
114 /* 113 S> */ B(Return), | 128 /* 113 S> */ B(Return), |
115 ] | 129 ] |
116 constant pool: [ | 130 constant pool: [ |
| 131 ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"], |
117 FIXED_ARRAY_TYPE, | 132 FIXED_ARRAY_TYPE, |
118 SHARED_FUNCTION_INFO_TYPE, | 133 SHARED_FUNCTION_INFO_TYPE, |
119 ] | 134 ] |
120 handlers: [ | 135 handlers: [ |
121 ] | 136 ] |
122 | 137 |
123 --- | 138 --- |
124 snippet: " | 139 snippet: " |
125 return delete 'test'; | 140 return delete 'test'; |
126 " | 141 " |
127 frame size: 0 | 142 frame size: 0 |
128 parameter count: 1 | 143 parameter count: 1 |
129 bytecode array length: 3 | 144 bytecode array length: 3 |
130 bytecodes: [ | 145 bytecodes: [ |
131 /* 30 E> */ B(StackCheck), | 146 /* 30 E> */ B(StackCheck), |
132 /* 34 S> */ B(LdaTrue), | 147 /* 34 S> */ B(LdaTrue), |
133 /* 56 S> */ B(Return), | 148 /* 56 S> */ B(Return), |
134 ] | 149 ] |
135 constant pool: [ | 150 constant pool: [ |
136 ] | 151 ] |
137 handlers: [ | 152 handlers: [ |
138 ] | 153 ] |
139 | 154 |
OLD | NEW |