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