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: no | 8 wrap: no |
9 test function name: f | 9 test function name: f |
10 | 10 |
11 --- | 11 --- |
12 snippet: " | 12 snippet: " |
13 var a = {x:13, y:14}; | 13 var a = {x:13, y:14}; |
14 function f() { | 14 function f() { |
15 return delete a.x; | 15 return delete a.x; |
16 }; | 16 }; |
17 f(); | 17 f(); |
18 " | 18 " |
19 frame size: 1 | 19 frame size: 1 |
20 parameter count: 1 | 20 parameter count: 1 |
21 bytecode array length: 11 | 21 bytecode array length: 10 |
22 bytecodes: [ | 22 bytecodes: [ |
23 /* 32 E> */ B(StackCheck), | 23 /* 32 E> */ B(StackCheck), |
24 /* 39 S> */ B(LdaGlobal), U8(0), U8(1), | 24 /* 39 S> */ B(LdrGlobal), U8(0), U8(1), R(0), |
25 B(Star), R(0), | |
26 B(LdaConstant), U8(1), | 25 B(LdaConstant), U8(1), |
27 B(DeletePropertySloppy), R(0), | 26 B(DeletePropertySloppy), R(0), |
28 /* 58 S> */ B(Return), | 27 /* 58 S> */ B(Return), |
29 ] | 28 ] |
30 constant pool: [ | 29 constant pool: [ |
31 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, | 30 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |
32 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, | 31 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |
33 ] | 32 ] |
34 handlers: [ | 33 handlers: [ |
35 ] | 34 ] |
36 | 35 |
37 --- | 36 --- |
38 snippet: " | 37 snippet: " |
39 a = {1:13, 2:14}; | 38 a = {1:13, 2:14}; |
40 function f() { | 39 function f() { |
41 'use strict'; | 40 'use strict'; |
42 return delete a[1]; | 41 return delete a[1]; |
43 }; | 42 }; |
44 f(); | 43 f(); |
45 " | 44 " |
46 frame size: 1 | 45 frame size: 1 |
47 parameter count: 1 | 46 parameter count: 1 |
48 bytecode array length: 11 | 47 bytecode array length: 10 |
49 bytecodes: [ | 48 bytecodes: [ |
50 /* 28 E> */ B(StackCheck), | 49 /* 28 E> */ B(StackCheck), |
51 /* 51 S> */ B(LdaGlobal), U8(0), U8(1), | 50 /* 51 S> */ B(LdrGlobal), U8(0), U8(1), R(0), |
52 B(Star), R(0), | |
53 B(LdaSmi), U8(1), | 51 B(LdaSmi), U8(1), |
54 B(DeletePropertyStrict), R(0), | 52 B(DeletePropertyStrict), R(0), |
55 /* 71 S> */ B(Return), | 53 /* 71 S> */ B(Return), |
56 ] | 54 ] |
57 constant pool: [ | 55 constant pool: [ |
58 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, | 56 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |
59 ] | 57 ] |
60 handlers: [ | 58 handlers: [ |
61 ] | 59 ] |
62 | 60 |
63 --- | 61 --- |
64 snippet: " | 62 snippet: " |
65 var a = {x:13, y:14}; | 63 var a = {x:13, y:14}; |
66 function f() { | 64 function f() { |
67 return delete a; | 65 return delete a; |
68 }; | 66 }; |
69 f(); | 67 f(); |
70 " | 68 " |
71 frame size: 2 | 69 frame size: 2 |
72 parameter count: 1 | 70 parameter count: 1 |
73 bytecode array length: 16 | 71 bytecode array length: 14 |
74 bytecodes: [ | 72 bytecodes: [ |
75 /* 32 E> */ B(StackCheck), | 73 /* 32 E> */ B(StackCheck), |
76 /* 39 S> */ B(LdaContextSlot), R(context), U8(3), | 74 /* 39 S> */ B(LdrContextSlot), R(context), U8(3), R(0), |
77 B(Star), R(0), | 75 B(LdrContextSlot), R(0), U8(2), R(1), |
78 B(LdaContextSlot), R(0), U8(2), | |
79 B(Star), R(1), | |
80 B(LdaConstant), U8(0), | 76 B(LdaConstant), U8(0), |
81 B(DeletePropertySloppy), R(1), | 77 B(DeletePropertySloppy), R(1), |
82 /* 56 S> */ B(Return), | 78 /* 56 S> */ B(Return), |
83 ] | 79 ] |
84 constant pool: [ | 80 constant pool: [ |
85 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, | 81 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |
86 ] | 82 ] |
87 handlers: [ | 83 handlers: [ |
88 ] | 84 ] |
89 | 85 |
90 --- | 86 --- |
91 snippet: " | 87 snippet: " |
92 b = 30; | 88 b = 30; |
93 function f() { | 89 function f() { |
94 return delete b; | 90 return delete b; |
95 }; | 91 }; |
96 f(); | 92 f(); |
97 " | 93 " |
98 frame size: 2 | 94 frame size: 2 |
99 parameter count: 1 | 95 parameter count: 1 |
100 bytecode array length: 16 | 96 bytecode array length: 14 |
101 bytecodes: [ | 97 bytecodes: [ |
102 /* 18 E> */ B(StackCheck), | 98 /* 18 E> */ B(StackCheck), |
103 /* 25 S> */ B(LdaContextSlot), R(context), U8(3), | 99 /* 25 S> */ B(LdrContextSlot), R(context), U8(3), R(0), |
104 B(Star), R(0), | 100 B(LdrContextSlot), R(0), U8(2), R(1), |
105 B(LdaContextSlot), R(0), U8(2), | |
106 B(Star), R(1), | |
107 B(LdaConstant), U8(0), | 101 B(LdaConstant), U8(0), |
108 B(DeletePropertySloppy), R(1), | 102 B(DeletePropertySloppy), R(1), |
109 /* 42 S> */ B(Return), | 103 /* 42 S> */ B(Return), |
110 ] | 104 ] |
111 constant pool: [ | 105 constant pool: [ |
112 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, | 106 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |
113 ] | 107 ] |
114 handlers: [ | 108 handlers: [ |
115 ] | 109 ] |
116 | 110 |
OLD | NEW |