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

Side by Side Diff: test/cctest/interpreter/bytecode_expectations/UnaryOperators.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: number 6 pool type: number
7 execute: yes 7 execute: yes
8 wrap: yes 8 wrap: yes
9 9
10 --- 10 ---
11 snippet: " 11 snippet: "
12 var x = 0; 12 var x = 0;
13 while (x != 10) { 13 while (x != 10) {
14 x = x + 10; 14 x = x + 10;
15 } 15 }
16 return x; 16 return x;
17 " 17 "
18 frame size: 2 18 frame size: 2
19 parameter count: 1 19 parameter count: 1
20 bytecode array length: 31 20 bytecode array length: 31
21 bytecodes: [ 21 bytecodes: [
22 B(StackCheck), 22 /* 30 E> */ B(StackCheck),
23 B(LdaZero), 23 /* 42 S> */ B(LdaZero),
24 B(Star), R(0), 24 /* 42 E> */ B(Star), R(0),
25 B(Ldar), R(0), 25 /* 54 S> */ B(Ldar), R(0),
26 B(Star), R(1), 26 B(Star), R(1),
27 B(LdaSmi), U8(10), 27 B(LdaSmi), U8(10),
28 B(TestEqual), R(1), 28 /* 54 E> */ B(TestEqual), R(1),
29 B(LogicalNot), 29 B(LogicalNot),
30 B(JumpIfFalse), U8(15), 30 B(JumpIfFalse), U8(15),
31 B(StackCheck), 31 /* 45 E> */ B(StackCheck),
32 B(Ldar), R(0), 32 /* 65 S> */ B(Ldar), R(0),
33 B(Star), R(1), 33 B(Star), R(1),
34 B(LdaSmi), U8(10), 34 B(LdaSmi), U8(10),
35 B(Add), R(1), 35 B(Add), R(1),
36 B(Star), R(0), 36 /* 67 E> */ B(Star), R(0),
37 B(Jump), U8(-22), 37 B(Jump), U8(-22),
38 B(Ldar), R(0), 38 /* 79 S> */ B(Ldar), R(0),
39 B(Return), 39 /* 89 S> */ B(Return),
40 ] 40 ]
41 constant pool: [ 41 constant pool: [
42 ] 42 ]
43 handlers: [ 43 handlers: [
44 ] 44 ]
45 45
46 --- 46 ---
47 snippet: " 47 snippet: "
48 var x = false; 48 var x = false;
49 do { 49 do {
50 x = !x; 50 x = !x;
51 } while(x == false); 51 } while(x == false);
52 return x; 52 return x;
53 " 53 "
54 frame size: 2 54 frame size: 2
55 parameter count: 1 55 parameter count: 1
56 bytecode array length: 22 56 bytecode array length: 22
57 bytecodes: [ 57 bytecodes: [
58 B(StackCheck), 58 /* 30 E> */ B(StackCheck),
59 B(LdaFalse), 59 /* 42 S> */ B(LdaFalse),
60 B(Star), R(0), 60 /* 42 E> */ B(Star), R(0),
61 B(StackCheck), 61 /* 49 E> */ B(StackCheck),
62 B(Ldar), R(0), 62 /* 56 S> */ B(Ldar), R(0),
63 B(LogicalNot), 63 B(LogicalNot),
64 B(Star), R(0), 64 /* 58 E> */ B(Star), R(0),
65 B(Ldar), R(0), 65 /* 74 S> */ B(Ldar), R(0),
66 B(Star), R(1), 66 B(Star), R(1),
67 B(LdaFalse), 67 B(LdaFalse),
68 B(TestEqual), R(1), 68 /* 74 E> */ B(TestEqual), R(1),
69 B(JumpIfTrue), U8(-13), 69 B(JumpIfTrue), U8(-13),
70 B(Ldar), R(0), 70 /* 85 S> */ B(Ldar), R(0),
71 B(Return), 71 /* 95 S> */ B(Return),
72 ] 72 ]
73 constant pool: [ 73 constant pool: [
74 ] 74 ]
75 handlers: [ 75 handlers: [
76 ] 76 ]
77 77
78 --- 78 ---
79 snippet: " 79 snippet: "
80 var x = 101; 80 var x = 101;
81 return void(x * 3); 81 return void(x * 3);
82 " 82 "
83 frame size: 2 83 frame size: 2
84 parameter count: 1 84 parameter count: 1
85 bytecode array length: 13 85 bytecode array length: 13
86 bytecodes: [ 86 bytecodes: [
87 B(StackCheck), 87 /* 30 E> */ B(StackCheck),
88 B(LdaSmi), U8(101), 88 /* 42 S> */ B(LdaSmi), U8(101),
89 B(Star), R(0), 89 /* 42 E> */ B(Star), R(0),
90 B(Star), R(1), 90 /* 47 S> */ B(Star), R(1),
91 B(LdaSmi), U8(3), 91 B(LdaSmi), U8(3),
92 B(Mul), R(1), 92 B(Mul), R(1),
93 B(LdaUndefined), 93 B(LdaUndefined),
94 B(Return), 94 /* 67 S> */ B(Return),
95 ] 95 ]
96 constant pool: [ 96 constant pool: [
97 ] 97 ]
98 handlers: [ 98 handlers: [
99 ] 99 ]
100 100
101 --- 101 ---
102 snippet: " 102 snippet: "
103 var x = 1234; 103 var x = 1234;
104 var y = void (x * x - 1); 104 var y = void (x * x - 1);
105 return y; 105 return y;
106 " 106 "
107 frame size: 4 107 frame size: 4
108 parameter count: 1 108 parameter count: 1
109 bytecode array length: 23 109 bytecode array length: 23
110 bytecodes: [ 110 bytecodes: [
111 B(StackCheck), 111 /* 30 E> */ B(StackCheck),
112 B(Wide), B(LdaSmi), U16(1234), 112 /* 42 S> */ B(Wide), B(LdaSmi), U16(1234),
113 B(Star), R(0), 113 /* 42 E> */ B(Star), R(0),
114 B(Star), R(2), 114 /* 56 S> */ B(Star), R(2),
115 B(Ldar), R(0), 115 /* 66 E> */ B(Ldar), R(0),
116 B(Mul), R(2), 116 B(Mul), R(2),
117 B(Star), R(3), 117 B(Star), R(3),
118 B(LdaSmi), U8(1), 118 B(LdaSmi), U8(1),
119 B(Sub), R(3), 119 B(Sub), R(3),
120 B(LdaUndefined), 120 B(LdaUndefined),
121 B(Star), R(1), 121 /* 56 E> */ B(Star), R(1),
122 B(Return), 122 /* 84 S> */ B(Return),
123 ] 123 ]
124 constant pool: [ 124 constant pool: [
125 ] 125 ]
126 handlers: [ 126 handlers: [
127 ] 127 ]
128 128
129 --- 129 ---
130 snippet: " 130 snippet: "
131 var x = 13; 131 var x = 13;
132 return ~x; 132 return ~x;
133 " 133 "
134 frame size: 2 134 frame size: 2
135 parameter count: 1 135 parameter count: 1
136 bytecode array length: 12 136 bytecode array length: 12
137 bytecodes: [ 137 bytecodes: [
138 B(StackCheck), 138 /* 30 E> */ B(StackCheck),
139 B(LdaSmi), U8(13), 139 /* 42 S> */ B(LdaSmi), U8(13),
140 B(Star), R(0), 140 /* 42 E> */ B(Star), R(0),
141 B(Star), R(1), 141 /* 46 S> */ B(Star), R(1),
142 B(LdaSmi), U8(-1), 142 B(LdaSmi), U8(-1),
143 B(BitwiseXor), R(1), 143 B(BitwiseXor), R(1),
144 B(Return), 144 /* 57 S> */ B(Return),
145 ] 145 ]
146 constant pool: [ 146 constant pool: [
147 ] 147 ]
148 handlers: [ 148 handlers: [
149 ] 149 ]
150 150
151 --- 151 ---
152 snippet: " 152 snippet: "
153 var x = 13; 153 var x = 13;
154 return +x; 154 return +x;
155 " 155 "
156 frame size: 2 156 frame size: 2
157 parameter count: 1 157 parameter count: 1
158 bytecode array length: 12 158 bytecode array length: 12
159 bytecodes: [ 159 bytecodes: [
160 B(StackCheck), 160 /* 30 E> */ B(StackCheck),
161 B(LdaSmi), U8(13), 161 /* 42 S> */ B(LdaSmi), U8(13),
162 B(Star), R(0), 162 /* 42 E> */ B(Star), R(0),
163 B(Star), R(1), 163 /* 46 S> */ B(Star), R(1),
164 B(LdaSmi), U8(1), 164 B(LdaSmi), U8(1),
165 B(Mul), R(1), 165 B(Mul), R(1),
166 B(Return), 166 /* 57 S> */ B(Return),
167 ] 167 ]
168 constant pool: [ 168 constant pool: [
169 ] 169 ]
170 handlers: [ 170 handlers: [
171 ] 171 ]
172 172
173 --- 173 ---
174 snippet: " 174 snippet: "
175 var x = 13; 175 var x = 13;
176 return -x; 176 return -x;
177 " 177 "
178 frame size: 2 178 frame size: 2
179 parameter count: 1 179 parameter count: 1
180 bytecode array length: 12 180 bytecode array length: 12
181 bytecodes: [ 181 bytecodes: [
182 B(StackCheck), 182 /* 30 E> */ B(StackCheck),
183 B(LdaSmi), U8(13), 183 /* 42 S> */ B(LdaSmi), U8(13),
184 B(Star), R(0), 184 /* 42 E> */ B(Star), R(0),
185 B(Star), R(1), 185 /* 46 S> */ B(Star), R(1),
186 B(LdaSmi), U8(-1), 186 B(LdaSmi), U8(-1),
187 B(Mul), R(1), 187 B(Mul), R(1),
188 B(Return), 188 /* 57 S> */ B(Return),
189 ] 189 ]
190 constant pool: [ 190 constant pool: [
191 ] 191 ]
192 handlers: [ 192 handlers: [
193 ] 193 ]
194 194
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698