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

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

Issue 1717293002: [Interpreter] Refactor bytecode generator test suite. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: std::vector instead of initializer_list, golden path as constant. Created 4 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
(Empty)
1 #
2 # Autogenerated by generate-bytecode-expectations
3 #
4
5 ---
6 pool type: string
7 execute: yes
8 wrap: yes
9
10 ---
11 snippet: "
12 var a = 1; try { a = 2; } finally { a = 3; }
13 "
14 frame size: 4 # in multiples of sizeof(void*)
15 parameter count: 1
16 bytecodes: [
17 B(StackCheck),
18 B(LdaSmi8), U8(1),
19 B(Star), R(0),
20 B(Mov), R(context), R(3),
21 B(LdaSmi8), U8(2),
22 B(Star), R(0),
23 B(LdaSmi8), U8(-1),
24 B(Star), R(1),
25 B(Jump), U8(7),
26 B(Star), R(2),
27 B(LdaZero),
28 B(Star), R(1),
29 B(CallRuntime), U16(185), R(0), U8(0),
30 B(Star), R(3),
31 B(LdaSmi8), U8(3),
32 B(Star), R(0),
33 B(CallRuntime), U16(186), R(3), U8(1),
34 B(LdaZero),
35 B(TestEqualStrict), R(1),
36 B(JumpIfTrue), U8(4),
37 B(Jump), U8(5),
38 B(Ldar), R(2),
39 B(ReThrow),
40 B(LdaUndefined),
41 B(Return),
42 ]
43 constant pool: [
44 ]
45 handlers: [
46 [8, 12, 18],
47 ]
48
49 ---
50 snippet: "
51 var a = 1; try { a = 2; } catch(e) { a = 20 } finally { a = 3; }
52 "
53 frame size: 9 # in multiples of sizeof(void*)
54 parameter count: 1
55 bytecodes: [
56 B(StackCheck),
57 B(LdaSmi8), U8(1),
58 B(Star), R(0),
59 B(Mov), R(context), R(4),
60 B(Mov), R(context), R(5),
61 B(LdaSmi8), U8(2),
62 B(Star), R(0),
63 B(Jump), U8(34),
64 B(Star), R(7),
65 B(LdaConstant), U8(0),
66 B(Star), R(6),
67 B(Ldar), R(closure),
68 B(Star), R(8),
69 B(CallRuntime), U16(463), R(6), U8(3),
70 B(Star), R(5),
71 B(CallRuntime), U16(185), R(0), U8(0),
72 B(Ldar), R(5),
73 B(PushContext), R(1),
74 B(LdaSmi8), U8(20),
75 B(Star), R(0),
76 B(PopContext), R(1),
77 B(LdaSmi8), U8(-1),
78 B(Star), R(2),
79 B(Jump), U8(7),
80 B(Star), R(3),
81 B(LdaZero),
82 B(Star), R(2),
83 B(CallRuntime), U16(185), R(0), U8(0),
84 B(Star), R(4),
85 B(LdaSmi8), U8(3),
86 B(Star), R(0),
87 B(CallRuntime), U16(186), R(4), U8(1),
88 B(LdaZero),
89 B(TestEqualStrict), R(2),
90 B(JumpIfTrue), U8(4),
91 B(Jump), U8(5),
92 B(Ldar), R(3),
93 B(ReThrow),
94 B(LdaUndefined),
95 B(Return),
96 ]
97 constant pool: [
98 "e",
99 ]
100 handlers: [
101 [8, 49, 55],
102 [11, 15, 17],
103 ]
104
105 ---
106 snippet: "
107 var a; try { try { a = 1 } catch(e) { a = 2 }} catch(e) { a = 20 } finally { a = 3; }
108 "
109 frame size: 10 # in multiples of sizeof(void*)
110 parameter count: 1
111 bytecodes: [
112 B(StackCheck),
113 B(Mov), R(context), R(4),
114 B(Mov), R(context), R(5),
115 B(Mov), R(context), R(6),
116 B(LdaSmi8), U8(1),
117 B(Star), R(0),
118 B(Jump), U8(34),
119 B(Star), R(8),
120 B(LdaConstant), U8(0),
121 B(Star), R(7),
122 B(Ldar), R(closure),
123 B(Star), R(9),
124 B(CallRuntime), U16(463), R(7), U8(3),
125 B(Star), R(6),
126 B(CallRuntime), U16(185), R(0), U8(0),
127 B(Ldar), R(6),
128 B(PushContext), R(1),
129 B(LdaSmi8), U8(2),
130 B(Star), R(0),
131 B(PopContext), R(1),
132 B(Jump), U8(34),
133 B(Star), R(7),
134 B(LdaConstant), U8(0),
135 B(Star), R(6),
136 B(Ldar), R(closure),
137 B(Star), R(8),
138 B(CallRuntime), U16(463), R(6), U8(3),
139 B(Star), R(5),
140 B(CallRuntime), U16(185), R(0), U8(0),
141 B(Ldar), R(5),
142 B(PushContext), R(1),
143 B(LdaSmi8), U8(20),
144 B(Star), R(0),
145 B(PopContext), R(1),
146 B(LdaSmi8), U8(-1),
147 B(Star), R(2),
148 B(Jump), U8(7),
149 B(Star), R(3),
150 B(LdaZero),
151 B(Star), R(2),
152 B(CallRuntime), U16(185), R(0), U8(0),
153 B(Star), R(4),
154 B(LdaSmi8), U8(3),
155 B(Star), R(0),
156 B(CallRuntime), U16(186), R(4), U8(1),
157 B(LdaZero),
158 B(TestEqualStrict), R(2),
159 B(JumpIfTrue), U8(4),
160 B(Jump), U8(5),
161 B(Ldar), R(3),
162 B(ReThrow),
163 B(LdaUndefined),
164 B(Return),
165 ]
166 constant pool: [
167 "e",
168 ]
169 handlers: [
170 [4, 82, 88],
171 [7, 48, 50],
172 [10, 14, 16],
173 ]
174
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698