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

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

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

Powered by Google App Engine
This is Rietveld 408576698