Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Side by Side Diff: test/cctest/interpreter/bytecode_expectations/TryFinally.golden

Issue 2677163003: WIP: type profiling. (Closed)
Patch Set: Rebaseline. Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 = 1; 10 var a = 1;
11 try { a = 2; } finally { a = 3; } 11 try { a = 2; } finally { a = 3; }
12 " 12 "
13 frame size: 4 13 frame size: 5
14 parameter count: 1 14 parameter count: 1
15 bytecode array length: 47 15 bytecode array length: 59
16 bytecodes: [ 16 bytecodes: [
17 /* 30 E> */ B(StackCheck), 17 /* 30 E> */ B(StackCheck),
18 /* 42 S> */ B(LdaSmi), I8(1), 18 /* 42 S> */ B(LdaConstant), U8(0),
19 B(Star), R(1),
20 B(LdaSmi), I8(1),
19 B(Star), R(0), 21 B(Star), R(0),
20 B(Mov), R(context), R(3), 22 B(Mov), R(context), R(3),
21 /* 51 S> */ B(LdaSmi), I8(2), 23 /* 51 S> */ B(LdaConstant), U8(0),
24 B(Star), R(4),
25 B(LdaSmi), I8(2),
22 B(Star), R(0), 26 B(Star), R(0),
23 B(LdaSmi), I8(-1), 27 B(LdaSmi), I8(-1),
24 B(Star), R(1), 28 B(Star), R(1),
25 B(Jump), U8(7), 29 B(Jump), U8(7),
26 B(Star), R(2), 30 B(Star), R(2),
27 B(LdaZero), 31 B(LdaZero),
28 B(Star), R(1), 32 B(Star), R(1),
29 B(LdaTheHole), 33 B(LdaTheHole),
30 /* 53 E> */ B(SetPendingMessage), 34 /* 53 E> */ B(SetPendingMessage),
31 B(Star), R(3), 35 B(Star), R(3),
32 /* 70 S> */ B(LdaSmi), I8(3), 36 /* 70 S> */ B(LdaConstant), U8(0),
37 B(Star), R(4),
38 B(LdaSmi), I8(3),
33 B(Star), R(0), 39 B(Star), R(0),
34 B(Ldar), R(3), 40 B(Ldar), R(3),
35 /* 72 E> */ B(SetPendingMessage), 41 /* 72 E> */ B(SetPendingMessage),
36 B(LdaZero), 42 B(LdaZero),
37 B(TestEqualStrict), R(1), U8(0), 43 B(TestEqualStrict), R(1), U8(0),
38 B(JumpIfTrue), U8(4), 44 B(JumpIfTrue), U8(4),
39 B(Jump), U8(5), 45 B(Jump), U8(5),
40 B(Ldar), R(2), 46 B(Ldar), R(2),
41 B(ReThrow), 47 B(ReThrow),
42 B(LdaUndefined), 48 B(LdaUndefined),
43 /* 79 S> */ B(Return), 49 /* 79 S> */ B(Return),
44 ] 50 ]
45 constant pool: [ 51 constant pool: [
52 ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"],
46 ] 53 ]
47 handlers: [ 54 handlers: [
48 [8, 12, 18], 55 [12, 20, 26],
49 ] 56 ]
50 57
51 --- 58 ---
52 snippet: " 59 snippet: "
53 var a = 1; 60 var a = 1;
54 try { a = 2; } catch(e) { a = 20 } finally { a = 3; } 61 try { a = 2; } catch(e) { a = 20 } finally { a = 3; }
55 " 62 "
56 frame size: 7 63 frame size: 7
57 parameter count: 1 64 parameter count: 1
58 bytecode array length: 74 65 bytecode array length: 90
59 bytecodes: [ 66 bytecodes: [
60 /* 30 E> */ B(StackCheck), 67 /* 30 E> */ B(StackCheck),
61 /* 42 S> */ B(LdaSmi), I8(1), 68 /* 42 S> */ B(LdaConstant), U8(0),
69 B(Star), R(2),
70 B(LdaSmi), I8(1),
62 B(Star), R(0), 71 B(Star), R(0),
63 B(Mov), R(context), R(4), 72 B(Mov), R(context), R(4),
64 B(Mov), R(context), R(5), 73 B(Mov), R(context), R(5),
65 /* 51 S> */ B(LdaSmi), I8(2), 74 /* 51 S> */ B(LdaConstant), U8(0),
75 B(Star), R(6),
76 B(LdaSmi), I8(2),
66 B(Star), R(0), 77 B(Star), R(0),
67 B(Jump), U8(24), 78 B(Jump), U8(28),
68 B(Star), R(6), 79 B(Star), R(6),
69 B(Ldar), R(closure), 80 B(Ldar), R(closure),
70 /* 53 E> */ B(CreateCatchContext), R(6), U8(0), U8(1), 81 /* 53 E> */ B(CreateCatchContext), R(6), U8(1), U8(2),
71 B(Star), R(5), 82 B(Star), R(5),
72 B(LdaTheHole), 83 B(LdaTheHole),
73 B(SetPendingMessage), 84 B(SetPendingMessage),
74 B(Ldar), R(5), 85 B(Ldar), R(5),
75 B(PushContext), R(1), 86 B(PushContext), R(1),
76 /* 71 S> */ B(LdaSmi), I8(20), 87 /* 71 S> */ B(LdaConstant), U8(0),
88 B(Star), R(6),
89 B(LdaSmi), I8(20),
77 B(Star), R(0), 90 B(Star), R(0),
78 B(PopContext), R(1), 91 B(PopContext), R(1),
79 B(LdaSmi), I8(-1), 92 B(LdaSmi), I8(-1),
80 B(Star), R(2), 93 B(Star), R(2),
81 B(Jump), U8(7), 94 B(Jump), U8(7),
82 B(Star), R(3), 95 B(Star), R(3),
83 B(LdaZero), 96 B(LdaZero),
84 B(Star), R(2), 97 B(Star), R(2),
85 B(LdaTheHole), 98 B(LdaTheHole),
86 /* 73 E> */ B(SetPendingMessage), 99 /* 73 E> */ B(SetPendingMessage),
87 B(Star), R(4), 100 B(Star), R(4),
88 /* 90 S> */ B(LdaSmi), I8(3), 101 /* 90 S> */ B(LdaConstant), U8(0),
102 B(Star), R(5),
103 B(LdaSmi), I8(3),
89 B(Star), R(0), 104 B(Star), R(0),
90 B(Ldar), R(4), 105 B(Ldar), R(4),
91 /* 92 E> */ B(SetPendingMessage), 106 /* 92 E> */ B(SetPendingMessage),
92 B(LdaZero), 107 B(LdaZero),
93 B(TestEqualStrict), R(2), U8(0), 108 B(TestEqualStrict), R(2), U8(0),
94 B(JumpIfTrue), U8(4), 109 B(JumpIfTrue), U8(4),
95 B(Jump), U8(5), 110 B(Jump), U8(5),
96 B(Ldar), R(3), 111 B(Ldar), R(3),
97 B(ReThrow), 112 B(ReThrow),
98 B(LdaUndefined), 113 B(LdaUndefined),
99 /* 99 S> */ B(Return), 114 /* 99 S> */ B(Return),
100 ] 115 ]
101 constant pool: [ 116 constant pool: [
117 ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"],
102 ONE_BYTE_INTERNALIZED_STRING_TYPE ["e"], 118 ONE_BYTE_INTERNALIZED_STRING_TYPE ["e"],
103 FIXED_ARRAY_TYPE, 119 FIXED_ARRAY_TYPE,
104 ] 120 ]
105 handlers: [ 121 handlers: [
106 [8, 39, 45], 122 [12, 51, 57],
107 [11, 15, 17], 123 [15, 23, 25],
108 ] 124 ]
109 125
110 --- 126 ---
111 snippet: " 127 snippet: "
112 var a; try { 128 var a; try {
113 try { a = 1 } catch(e) { a = 2 } 129 try { a = 1 } catch(e) { a = 2 }
114 } catch(e) { a = 20 } finally { a = 3; } 130 } catch(e) { a = 20 } finally { a = 3; }
115 " 131 "
116 frame size: 8 132 frame size: 8
117 parameter count: 1 133 parameter count: 1
118 bytecode array length: 97 134 bytecode array length: 113
119 bytecodes: [ 135 bytecodes: [
120 /* 30 E> */ B(StackCheck), 136 /* 30 E> */ B(StackCheck),
121 B(Mov), R(context), R(4), 137 B(Mov), R(context), R(4),
122 B(Mov), R(context), R(5), 138 B(Mov), R(context), R(5),
123 B(Mov), R(context), R(6), 139 B(Mov), R(context), R(6),
124 /* 55 S> */ B(LdaSmi), I8(1), 140 /* 55 S> */ B(LdaConstant), U8(0),
141 B(Star), R(7),
142 B(LdaSmi), I8(1),
125 B(Star), R(0), 143 B(Star), R(0),
126 B(Jump), U8(24), 144 B(Jump), U8(28),
127 B(Star), R(7), 145 B(Star), R(7),
128 B(Ldar), R(closure), 146 B(Ldar), R(closure),
129 /* 57 E> */ B(CreateCatchContext), R(7), U8(0), U8(1), 147 /* 57 E> */ B(CreateCatchContext), R(7), U8(1), U8(2),
130 B(Star), R(6), 148 B(Star), R(6),
131 B(LdaTheHole), 149 B(LdaTheHole),
132 B(SetPendingMessage), 150 B(SetPendingMessage),
133 B(Ldar), R(6), 151 B(Ldar), R(6),
134 B(PushContext), R(1), 152 B(PushContext), R(1),
135 /* 74 S> */ B(LdaSmi), I8(2), 153 /* 74 S> */ B(LdaConstant), U8(0),
154 B(Star), R(7),
155 B(LdaSmi), I8(2),
136 B(Star), R(0), 156 B(Star), R(0),
137 B(PopContext), R(1), 157 B(PopContext), R(1),
138 B(Jump), U8(24), 158 B(Jump), U8(28),
139 B(Star), R(6), 159 B(Star), R(6),
140 B(Ldar), R(closure), 160 B(Ldar), R(closure),
141 /* 76 E> */ B(CreateCatchContext), R(6), U8(0), U8(2), 161 /* 76 E> */ B(CreateCatchContext), R(6), U8(1), U8(3),
142 B(Star), R(5), 162 B(Star), R(5),
143 B(LdaTheHole), 163 B(LdaTheHole),
144 B(SetPendingMessage), 164 B(SetPendingMessage),
145 B(Ldar), R(5), 165 B(Ldar), R(5),
146 B(PushContext), R(1), 166 B(PushContext), R(1),
147 /* 95 S> */ B(LdaSmi), I8(20), 167 /* 95 S> */ B(LdaConstant), U8(0),
168 B(Star), R(6),
169 B(LdaSmi), I8(20),
148 B(Star), R(0), 170 B(Star), R(0),
149 B(PopContext), R(1), 171 B(PopContext), R(1),
150 B(LdaSmi), I8(-1), 172 B(LdaSmi), I8(-1),
151 B(Star), R(2), 173 B(Star), R(2),
152 B(Jump), U8(7), 174 B(Jump), U8(7),
153 B(Star), R(3), 175 B(Star), R(3),
154 B(LdaZero), 176 B(LdaZero),
155 B(Star), R(2), 177 B(Star), R(2),
156 B(LdaTheHole), 178 B(LdaTheHole),
157 /* 97 E> */ B(SetPendingMessage), 179 /* 97 E> */ B(SetPendingMessage),
158 B(Star), R(4), 180 B(Star), R(4),
159 /* 114 S> */ B(LdaSmi), I8(3), 181 /* 114 S> */ B(LdaConstant), U8(0),
182 B(Star), R(5),
183 B(LdaSmi), I8(3),
160 B(Star), R(0), 184 B(Star), R(0),
161 B(Ldar), R(4), 185 B(Ldar), R(4),
162 /* 116 E> */ B(SetPendingMessage), 186 /* 116 E> */ B(SetPendingMessage),
163 B(LdaZero), 187 B(LdaZero),
164 B(TestEqualStrict), R(2), U8(0), 188 B(TestEqualStrict), R(2), U8(0),
165 B(JumpIfTrue), U8(4), 189 B(JumpIfTrue), U8(4),
166 B(Jump), U8(5), 190 B(Jump), U8(5),
167 B(Ldar), R(3), 191 B(Ldar), R(3),
168 B(ReThrow), 192 B(ReThrow),
169 B(LdaUndefined), 193 B(LdaUndefined),
170 /* 123 S> */ B(Return), 194 /* 123 S> */ B(Return),
171 ] 195 ]
172 constant pool: [ 196 constant pool: [
197 ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"],
173 ONE_BYTE_INTERNALIZED_STRING_TYPE ["e"], 198 ONE_BYTE_INTERNALIZED_STRING_TYPE ["e"],
174 FIXED_ARRAY_TYPE, 199 FIXED_ARRAY_TYPE,
175 FIXED_ARRAY_TYPE, 200 FIXED_ARRAY_TYPE,
176 ] 201 ]
177 handlers: [ 202 handlers: [
178 [4, 62, 68], 203 [4, 74, 80],
179 [7, 38, 40], 204 [7, 46, 48],
180 [10, 14, 16], 205 [10, 18, 20],
181 ] 206 ]
182 207
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698